Repository navigation
v3.8.0
3.8.0 is about drift, found and fixed. Almost every change in this release is a place where behavior had silently drifted from what was configured or documented: an empty ai-temperature was sent as 0.0 and killed the tool loop on newer Anthropic models, an explicit 0 was rewritten to 0.1, the wall-clock deadline only applied to one tier, an exhausted provider quota burned thirteen minutes on retries before the configured fallback ever ran, and findings could vanish from a review when its inline comments raced a push. It's also an observability release — every model turn and every specialist attempt now reports latency and token usage from normal logs — and the review engine itself becomes a standalone library the Action and future self-hosted workers share.
If you've watched a review hang or wondered where the tokens went, this is the release to pin.
Every silent drift got found
- Terminal provider failures fail over immediately (#1126, closes #1080): an HTTP 429 that says the quota is exhausted, or a 4xx naming a retired model, is now classified once at the transport and routed straight to the configured fallback — one bounded log line, no retries a later attempt can't fix. Previously a terminal 429 looped the retry budget for 13m40s before failover. Classification is deliberately narrow: exact structured codes and decisive phrases, with any transient marker in the same body vetoing the match.
- Empty temperature stays empty; zero stays zero (#1209, #1246): a
?? 0.0fallback sent"temperature": 0on every native-loop round when the input was empty, and models that no longer accept the parameter (Sonnet/Opus 5.5) answered 400 — the loop died with no tool calls and the review fell through to corpus-only, finishing green. Omitted now means omitted. Separately, an explicitai-temperature: "0"survived|| 0.1rewriting and now reaches the wire as 0. tool-loop-wall-clock-secis a whole-exchange deadline on every native-loop tier (#1201, fixes #1198; #1239, closes #1216): previously only the smart tier carried the absolute deadline, so a primary-tier investigation could overrun the ceiling by a full per-turn timeout — observed at ~620s against a 600s limit, with the verdict turn unclamped on top. One deadline now covers the entire exchange.- Forgejo
gh_apihandles query strings (#1228, closes #1225):issues?state=openfailed segment matching and reported "endpoint not supported" where GitHub served the same call. The query string now splits before matching and re-attaches verbatim. platform: tangledvalidates (#1271, closes #1247): the contract documented it and the resolver implemented it, but the typed config schema rejected the enum — an explicit value failed before resolution. The missingTANGLED_REPO_DIDstill fails closed.- Specialists get their own Anthropic effort assertion (#1197): the specialist lane inherits the configured reasoning effort but had no
output_config.effortcapability flag of its own, so inherited effort silently never reached an Anthropic-format endpoint. - The documented empty
baseShasentinel works (#1206, fixes #1193): the acquisition workspace's own docs said""means "base not required"; the SHA validator rejected it anyway.
Claims about the action get verified before they can block
- Source-contradicted claims can no longer drive
request_changes(#1240, fixes #1238): the deterministic source-claim boundary now recognizes two shapes an incident exposed — fabricated claims about the reviewing action's own declared inputs, and metadata-derived gate-absence claims — at every severity, and verifies them against revision-bound witnesses: the executing revision from build-embedded bytes, and a consumer-pinned revision from a content-addressed fetch at the exact pinned commit. A claim the source contradicts neither survives as substantiated nor forces request-changes with zero blockers. - Claim units span path dots and semicolons (#1243, fixes #1242): scanners split finding messages into assertions before testing cue families, so "
The action never filters labels; metadata declares no label input" — one claim spread across a semicolon or a parenthesized path citation — is recognized whole instead of dissolving into unverifiable halves. - Contradiction can't hide unknown evidence (#1276, closes #1262): claim classification composes all kinds a message actually carries instead of first-match, so a message that is both source-contradicted and unknown-evidence gets both labels — neither can mask the other into a stricter outcome.
- Version-like tokens stop qualifying as revisions (#1270, closes #1263): every standalone
major.minor.patchor 7–40-hex token used to count as a revision qualifier, so an incidental "Node 20.11.1" left a claim unverified and forcedrequest_changes. Onlyv-prefixed versions, suffixed stamps, and full 40-hex SHAs qualify standalone; bare tokens need an introducer (at,pin, …).
Publishing keeps its promises
- Superseded managed reviews actually disappear (#1172, closes #1144): after a newer managed review is published and verified at the current head, every older managed review from the same publishing identity stops being visible — stale approvals and change-requests are dismissed, advisory bodies minimized — even when the replacement is partial, its trace incomplete, or it went out through the fallback path. Destructive cleanup (inline retirement, thread resolution) stays behind the unchanged complete-replacement gate.
- Forgejo can delete what it couldn't hide (#1181, closes #1176): GitHub hid superseded reviews via GraphQL minimization; Forgejo had no equivalent, so stale managed reviews piled up. The Forgejo adapter gains author-side review deletion — narrow by design: only note-based reviews with no code comments, only under the same verified-newer-checkpoint gate, owner-proven, with a route-level 404 treated as failure rather than assumed success. (This one never made the generated changelog; the commit type wasn't conventional.)
publish-review-commentis deprecated (#1224, closes #1158): two publication paths disagreed on whether the legacy v2 flag gatedcommentmode. It now gates nothing —publish-modealone decides — and setting it logs a deprecation warning pointing atpublish-mode: comment.- The body-only fallback keeps your findings (#1281, fixes #1249): when commit-bound inline review submission fails (anchors raced a push), the retry fell back to a body-only review — and under non-strict policy the findings table isn't in that body, so every finding silently dropped from publication. The fallback now appends the bounded findings summary.
- One trusted-owner proof per publish run (#1147, closes #1116): the outcomes contract's three new reads each re-resolved the trusted owner, so a Forgejo repo-scoped PAT drove up to three reaction-probe notification cycles per publish run. One resolution now threads through all of them.
- Sticky upsert fails closed on truncated enumeration (#1185, closes #1121): if comment pagination broke after older comments arrived, the upsert could patch a stale sticky or duplicate it. An incomplete enumeration now fails before any write. As a side effect, pagination follows
Link: rel="next", so PRs past 1000 issue comments stop reportingcomplete: falseforever.
Fences and transports hold
- Untrusted bytes can't close their own fence (#1261, refs #1258): the fixed
```diffwrapper around the PR diff was closable by PR-controlled context lines (a leading space is legal inside a diff fence) — hostile content could forge# Tool Harness Findingsheadings or swallow real sections. Every fence around untrusted bytes now picks its delimiter from the payload itself, through one canonical seam. web_fetchcan't reach non-public addresses (#1259): the tool's fetch now resolves hosts through a public-only resolver before connecting and re-gates every redirect hop — a 302 to an internal address is refused, and DNS can't smuggle a private IP past the host allowlist.- MCP stops at redirects and size ceilings (#1218, closes #1217; #1241, closes #1233): an MCP 307 previously forwarded the session header and repository-scoped tool arguments verbatim to an unapproved origin — every 3xx is now refused before headers are read. Separately, MCP response bodies stream under a 32 MiB cap instead of buffering unbounded JSON.
- PEM-shaped secrets join the redaction vocabulary (#1188, closes #1170):
private_key:/client_key:block scalars — how certificates ship in YAML — matched no key-name alternative, so a PEM body persisted verbatim into the diff artifact and the corpus. The flat masker is now derived from the vocabulary so the two can't drift apart. - Confidence notes can't be forged by the model (#1231, closes #1166; #1267, closes #1230; #1268): model-authored text ending in a
[deterministic cap: …]look-alike was published verbatim while the real caps stayed empty — claiming a ceiling never fired. Look-alikes are now reveal-stripped on every cut the publish path can make, and the action's own cap note is split off before masking so a redaction pass can never complete a half-written forgery. - NUL-bearing finding paths are rejected at every copy (#1211, closes #1163): three mirrored
safePathimplementations now share one predicate; a model-authored NUL infilecan no longer push a raw NUL byte into a workflow::errorannotation.
The model loop, observable and cache-friendly
- Per-round latency and token usage in native_loop (#1205, closes #1199): every model turn records bounded, content-free telemetry — elapsed request time, provider-reported prompt/completion/cached tokens (null when unreported, never inferred), tool counts, remaining budgets, streamed-vs-not — on the harness artifact and in normal workflow logs. Token accounting is format-aware: Anthropic's prompt total includes cache read/write, OpenAI's
prompt_tokensalready does. - Per-attempt retry telemetry for specialists (#1204, closes #1200): every actual provider attempt — initial, transport-retry, overrun-retry, wire-retry — records its own timing, usage, and stop reason, so cost overruns and transport recovery on the deep-review phase are measurable instead of invisible inside aggregate elapsed time.
- Malformed provider usage can't publish negatives (#1234, closes #1207; #1237, closes #1235): a negative token count from a broken provider body propagated into the artifact, the PR marker, and the cache-hit-ratio output. Negatives are now treated as "not reported", per field, on the loop aggregate and every specialist surface.
- Anthropic cache breakpoints advance through history (#1221, closes #1220; #1223, closes #1222): native_loop requests previously cached only the static system/tool prefix and left the growing transcript uncached; a moving breakpoint now advances through history. Budget notes became append-only historical state instead of replacing the previous note — which had the same prefix-destroying effect for OpenAI-style automatic caching. A regression pins that each request's messages begin with the previous request byte-for-byte.
- Cancellation can't outrun a gate launch (#1232, closes #1183): a gate fork registered only after
awaitcould leave the cancellation rejection observable while the child's termination wasn't yet awaited. Launches are now claimed synchronously and drained by finalize.
Toward the self-hosted controller
- The review engine stands alone (#1117, closes #726, parent #725): the v3 pipeline is extracted behind a canonical engine contract —
runReviewEngine(request, dependencies)— with a standalone engine CLI entry point, so the Action adapter and future self-hosted workers call the same engine instead of a second implementation drifting away from it. Stage order, artifact names, and decision points are unchanged. (Also absent from the generated changelog — the commit type wasn't conventional.) - Tangled degrades honestly (#1184, closes #589): native-review cleanup sweeps, inline builds, and feedback reads now run only on platforms that declare a native review surface. On Tangled the action publishes its managed record and emits exactly one deterministic note — zero native operations, no misleading "cleanup skipped" spam. Tangled publication itself stays fail-closed until a trustworthy current-head source lands (#1165).
- Acquisition hardening (#1219, closes #1194): stale-workspace sweeping now proves per-mirror ownership through the worktree's gitdir pointer before deleting — sweeping mirror A can no longer remove mirror B's aged checkout. (#1206 above fixes the same library's documented sentinel.)
Upgrading
Pin to v3.8.0, or the floating v3 tag, which now follows this build. Immutable-version and SHA pins must be bumped deliberately.
No inputs changed meaning, but several behaviors changed — all in the direction of doing what the configuration already said:
- Terminal provider errors fail over fast: exhausted quotas and retired models now route to the configured fallback immediately. Reviews that previously burned their retry budget (observed: 13+ minutes) complete via fallback instead.
- Empty
ai-temperatureomits the field, so native-loop tool reviews now work on models that reject the sampling parameter (Sonnet/Opus 5.5) — where they previously died mid-loop and finished as corpus-only reviews with zero tool calls. An explicit0is preserved. tool-loop-wall-clock-secnow bounds the whole exchange on the primary native-loop tier, not just the smart tier. Long investigations that previously overran the ceiling now stop at it.- The PR timeline gets cleaner: superseded managed reviews are hidden after a verified newer checkpoint even when the replacement is partial or fallback-submitted. If you audit old approvals, note they are dismissed, not deleted.
publish-review-commentis deprecated and ignored — publication is decided bypublish-modealone. Workflows still setting the flag should move topublish-mode: comment.- Artifact redaction widened again (following 3.7.0's wave):
private_key/client_keyblock scalars and provider-invented credential shapes are masked where they previously persisted verbatim.
Every input's current contract lives in docs/inputs.md.
Full changelog: v3.7.0...v3.8.0
Generated changelog (release-please)
Features
- #1199: log per-round model latency and provider token usage in native_loop (#1205) (4027e09)
- #1200: expose per-attempt retry timing and usage in specialist telemetry (#1204) (c686241)
- #589: gate native-review cleanup and inline builds on the platform review surface (#1184) (b9fdd3a)
Bug Fixes
- #1080: fast-fail exhausted quotas and retired models to configured fallback (#1126) (ecbfbb8)
- #1116: share one trusted-owner proof across the publish run (#1147) (0fdc281)
- #1121: fail the sticky upsert's patch-target selection closed on a truncated issue-comment enumeration (#1185) (31d0d8b)
- #1127: bound the feedback outcome count at MAX_FEEDBACK_COUNT, rejecting over-ceiling events fail-closed (#1192) (f582f8a)
- #1128: withhold the outcomes artifact when the envelope head is unproven (#1156) (106c81f)
- #1137: reserve Unicode-space-terminated suggestion info strings (fail closed on the unverified tail) (#1179) (82c3348)
- #1144: keep only the latest managed bot review visible on every published replacement (#1172) (7f128a8)
- #1151: reject control characters in an outcome event's
attimestamp (#1186) (4c162fd) - #1152: fingerprint lane credentials as one-way digests so rotation invalidates a cached review (#1173) (c25a846)
- #1155: fail confidence scorer to unscored on unresolved proof-context pins (#1187) (bdaa027)
- #1158: publish-mode comment publishes the sticky comment with no legacy flag (#1224) (87423f4)
- #1163: reject NUL-bearing finding paths in every safePath copy via one shared predicate (#1211) (2cf9621)
- #1166: strip model-authored deterministic-cap look-alike from confidence reason (#1231) (dc4e1b6)
- #1170: widen the secret key-name vocabulary and derive the flat masker from it (#1188) (4d9e8bb)
- #1178: reserve the multi-line suggestion opener spellings (fail closed on the range grammar) (#1180) (135737b)
- #1183: claim gate fork launches before awaiting them (#1232) (7b8c0e7)
- #1193: honor the documented empty baseSha sentinel in createReviewWorkspace (#1206) (9bc172c)
- #1194: isolate stale-workspace sweeping by mirror ownership (#1219) (799d93c)
- #1198: enforce tool-loop-wall-clock-sec as a whole-exchange deadline on both native-loop tiers (#1201) (1c6975f)
- #1207: clamp negative provider-reported token counts in the loop usage aggregate (#1234) (2f2165b)
- #1210: route native-loop gh_api and repo_contents through the configured forge capability (#1215) (c89e88e)
- #1216: remove dead deadline-null branches left by the #1198 tier-neutral deadline (CodeQL) (#1239) (6fe7ea5)
- #1217: refuse MCP redirects outside the configured server endpoint (#1218) (c1c3b58)
- #1220: advance Anthropic prompt cache through native-loop history (#1221) (0c1f6a7)
- #1222: preserve native-loop conversation prefixes across rounds (#1223) (bc27284)
- #1225: split the query string before Forgejo segment matching (#1228) (665854e)
- #1230: strip cap-note look-alikes the publish-side confidence cut reveals (#1267) (e0d5119)
- #1233: stream-cap MCP response bodies before buffering or parsing (#1241) (57d3aff)
- #1235: clamp negative provider-reported usage in the specialist/gate accounting (#1237) (c33bd08)
- #1238: refute source-contradicted input claims before they drive request_changes (#1240) (b882a28)
- #1242: rebase claim-unit path and semicolon handling onto current main (#1243) (a73a135)
- #1246: preserve explicit ai-temperature zero (f5c7151)
- #1247: accept explicit platform=tangled in typed config (#1271) (9cfc3d4)
- #1248: preserve enforcement verdict-source after relax-then-force (#1266) (a31fe13)
- #1249: keep findings in the body-only native review fallback (#1281) (4128abd)
- #1258: adaptively fence untrusted diff/manifest/evidence bytes (#1261) (3b2a224)
- #1259: secure web_fetch DNS and transport (126b251)
- #1262: rebase independent claim-kind decisions onto current main (#1276) (ff43184)
- #1263: narrow the revision-qualifier scan so incidental version-like tokens cannot block a refutation (#1270) (9c8ff4a)
- #1268: prevent forged confidence cap notes (0fb75e9)
- #1272: start the bootstrap-runtime stubs under a shell-less PATH (#1275) (fac1343)
- #1274: resolve the bootstrap's own directory without external dirname (#1277) (cde6ef9)
- deps: update dependency astro (7.4.1 → 7.4.2) (#1190) (29386e3)
- deps: update node.js (24.22.0 → v24.22.1) (#1189) (0808afd)
- review: enable specialist Anthropic effort support (#1197) (e647d9b)
- test: allow dogfood specialist effort assertion (#1212) (2a7c1d3)
- tool-loop: keep an omitted temperature omitted on native_loop turns (#1209) (46b6b7b)
Chores
Documentation
- #1124: document harness-unreadable and coverage:unknown in the telemetry field table (#1208) (deac6f1)
- eval: document semantic-fixture directory placement (#1167) (#1227) (76ac941)