Repository navigation
release: v0.14.0 — access roles, structured repair loop, verify check, merge queue - #81
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ath with a lead Mission Control answer box for answer_lead_input items, handoff and request_input comment styles, lead offer audience, readable lead refusal codes, lead names on activity; happy_path case for a root with a lead; CLI and API docs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eue docs corrected against the code Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nto fix/waiters-and-docs
The Task page offered "Launch run" on a coordination root in in_progress (Overview always, Diff by status alone). The server refuses any run on such a root but its lead in planning and its aggregate reviewer in review. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…xplained, a withdrawn question says so Two submits in one tick sent the answer twice (the second 409 replaced the success with an error). A 409 showed the server's "resource version conflict"; the form now says the question changed and that the draft is kept, and the error is described on the field. A question closed under a draft (root cancelled, lead removed) keeps the draft visible and says it was not sent. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, not the Project's Co-Authored-By: Claude Opus 5.5 <[email protected]>
…try_limits (there is no budgets field) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…archy does not admit An action that needs the hierarchy's admission (a role launch, or any action whose replay the hierarchy refused) parks the subtask on its parent for every cause and keeps its intent; an action that needs no admission is replayed. This replaces both the planning-only park of every queued action and the SubtaskDispatchWait error variant, whose missing arms changed the status of a refused move (422 invalid_transition) and of native tool refusals: the hierarchy's refusals are InvalidOperation again and recognised by the constants their messages are built from. Gate-budget recovery by the spent ledger is narrowed to a subtask in lead_check, so no other gate's offer changes. An owner's manual send-back from lead_check charges no return (tested). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts a resolved item needs_attention excludes resolved rows, so the card leaves the feed with the refetch and the note could not be shown. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…command that ran is never re-run or answered with a settlement error The inline claim of a Task step (db drive_mutation_head, services start_inline_head) was awaited by the waiter: a waiter dropped while the claim's commit was in flight left the step claimed for a 60 s lease with no runner, and the next write answered task_busy (the CI failure in dropped_waiter_does_not_wedge_the_next_write_of_its_task). The claim, the activity witness and the runner now live in one spawned job. Command steps: a busy database at settlement no longer re-queues a command whose effect already ran; a failed release no longer replaces the committed result; a released step's typed reply is awaited briefly before the stored summary is used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t; the Task list ETag carries the exact merge-queue member set Two of the five suspected bugs from the docs read were real: - the deletion guard named the queue target's daemon although the outstanding rebase receipt is on the daemon that owns the Task's checkout (witness.effect_owner); - LIST_REVISION's sums cancel when one member leaves and another joins with equal revision and queue_seq while MAX(updated_at) does not move. Also corrects doc correction 31 (a canonical check without a whole-run deadline is refused, not unbounded). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ult, not the failed attempt's error A command attempt that failed before it ran was re-queued and its waiter was answered with the attempt's transient error; the command then ran later with nobody waiting, and a caller that asked again got it applied twice. The waiter now keeps its registration, drives the retry when its back-off is due and returns that answer, or task_busy at its deadline. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ery into db Pure move: same statements, binds, connections, transaction modes and fetch cardinality, now typed db functions. Production code of the three services files holds no SQL. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ot, withdrawn-question draft kept, subtask board exits from its own workflow, stale events never overwrite a newer Task Co-Authored-By: Claude Opus 5.5 <[email protected]>
…me and escalation, environment placement, auth and governance into db Pure move: same statements, binds, connections, transaction modes and fetch cardinality. Production code of these services files holds no SQL. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…del; question wait, crash and pause paths; daemon step diff Two model tests are red on real findings (see the fix commits that follow). Product: a failed asking run no longer reads as a manual stop after the answer; releasing a held pending question keeps the wait. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Retry; a start with nothing to recover writes nothing Co-Authored-By: Claude Opus 5.5 <[email protected]>
Startup recovery covers gate states with a running role; a lead's recovery opens a new step-check window; removing or replacing the lead stops its planning run; a paused Project is a visible park; Hold on a lead's question; a failed planner run retries by the execution budget; model digest is schedule-independent. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nto test/root-lead-model-ops
… sweeps; adversarial Retry tests The sweep asked for admission of a parked quarantined import at every pass (two command steps and six scheduler generations per pass, the Task left dirty). It now asks only while the park is not stated or is stale. Tests: already-landed commit, second Retry, hold/release/cancel, deleted branch, unpinned execution, another corrupt_import cause. docs/api.md: the paragraph that split the operations table moved below it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…oject, not a withheld retry The upgrade rehearsal's two quarantined Tasks are in a paused Project: the summary said action_hint=retry while available_actions had no retry and the action answered 409 action_unavailable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sive A check that exited 0 with a report Forge could not use (invalid JSON, not an object, oversized, a symlink or other non-regular file) or with a verdict outside pass/passed/fail/failed/inconclusive was recorded as a pass, so a broken verifier waved the candidate through to the reviewer. Such a check is now inconclusive (re-run once, then the review_blocked verify park). A report without a verdict still lets the exit code decide; verdict words are matched case-insensitively. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…a new start The verify app runs in the background with its output in app.log, so nothing ties it to Forge: a server crash or restart mid-verify left the app (and its port) running, and the restarted owner deleted start.pid and started the next evaluation beside it. An app that ignores FORGE_VERIFY_PORT then failed V-start on every later attempt. The start step now records its process group (start.pgid) before it starts the app. Before a verify starts anything, the owner looks at every attempt directory of the Task root and stops a recorded group whose leader is gone but whose members still run (the id stays reserved while members exist; a live process with that id means the recorded group is gone, and nothing is signalled). The preparation runs off the async runtime because the stop blocks for a few seconds. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on ::1 The verify port came from a probe listener that is closed before the app binds, so the system could offer the same free port to a second Task's verify meanwhile; one Task's readiness probe and checks could then reach the other Task's app (an app that moves to the next port when its own is taken never fails V-start). Ports handed out are now held by this server for the longest verify wall limit, and a port that something already serves on the IPv6 loopback is skipped, since an app that binds localhost may take ::1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The two check upgrade tests build a database without the check migrations and then upgrade it. The new review_verify purpose rebuild needs check_consumer, its identity purpose column and the slot-release trigger, so it failed in their pre-upgrade set (db --lib red). It now runs with the upgrade, which also exercises it on populated rows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…migration The placement-migration fixtures hold back the slot-wait age migration and apply it later; the review_verify purpose rebuild drops and re-creates that migration's trigger, so it failed in the historical set (services --lib red). It now follows the held-back migrations in version order. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Verify read the worktree path from the raw placement handle (ResolvedWorkspace::embedded_path), a getter the workspace-manager guard forbids new callers of (services --lib red). The path now comes from the manager's read-only inspection, which also confirms it is a worktree of the recorded repository; an unusable one is an infrastructure interruption, as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… teardown StopDescendants sends SIGKILL but run() does not wait for the kernel to reap the member, and on Linux a zombie still answers kill -0. Tests now poll for death with a bounded deadline and treat a Linux zombie as dead. A Linux-only test pins that stop_group stays conservative while a zombie keeps the group visible. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Verify directories are named by Review id so children sharing a Task root cannot overwrite each other's request or reports. - start.pgid is deleted once the run tree is confirmed stopped. - FORGE_VERIFY_* runtime values are not redacted; Project secrets are. - review_verify_rerun is charged through the budget ledger. - 64 MiB evidence cap per verify evaluation. - An app exit during readiness records only V-ready. - After a run, an occupied verify port is a non-blocking warning in Review notes and the reviewer prompt; the setsid limit is documented. - Phase 6.1-6.3 of both repair loop changes: architecture docs, CHANGELOG consolidation, two named happy_path cases. The on-disk app.log cap is not met yet (ignored regression kept). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Coordination children share a Task root, and every verify prepare sweeps all Review directories of that root for groups a crashed owner left behind. A running verify's start step exits right after launching the app, so its group has a gone leader and live members: the orphan signature. A sibling's prepare therefore killed the other child's app mid-run. The server now marks a verify run live for the whole execution (a dropped execution unmarks it, as a crash does) and the sweep skips live Reviews, checking liveness after reading the record so a record written by a live run is never acted on. The start.pgid removal moves into the same wrapper. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The start step keeps writing app.log itself, now appending, so short startup lines are visible at once and readiness/log-tail behaviour is unchanged. The server owner that already runs the bundle cuts the file back to its first 16 MiB every 200 ms while the run lasts and once more after settlement, before the receipt is recorded: the file exceeds the cap by at most one interval of app output and is never recorded above it. A symlinked, hard-linked or replaced app.log is never truncated, and the open cannot block on a FIFO. Review notes say when the cap was reached. The ignored cap regression now runs; its check also asserts the cap while the app is still running. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The post-run port probe reads Forge's `port` record from the verify directory, which the candidate controls. Reading it with `?` let a check that rewrote the record (9 bytes, a symlink, a hard link) refuse the whole verify and cancel the Review attempt, so a non-blocking diagnostic could block. An unreadable record now skips the probe with a note. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Prepare swept the Task root for orphaned start groups, then deleted this Review's start.pgid unconditionally, and the new start step overwrites the record anyway. When the sweep could not confirm that group stopped, the record was lost and the new app started beside the orphan, which no later sweep could find. Prepare now refuses (an infrastructure outcome the check runner retries and parks) while this Review's own record is unconfirmed; other Reviews' unconfirmed records are kept for a later sweep. Docs also describe the live-run skip from the previous commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…/Changed Verify and the findings API are unreleased (absent from v0.13.12), so the Unreleased `### Breaking` bullets for verify directories, the review_verify_rerun ledger and the findings-read cap described changes against behaviour no release shipped. The cap bullet duplicated the Changed entry; the verify bullets now live in one Added verify entry that replaces the separate follow-up paragraph. The hand-maintained web RetryBudgets type gains review_verify_rerun to match the generated binding, and docs/api.md documents the Project setting. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ge under tini Review budgets (verify rerun, progress, gate rejections, rerun entry) compared the Task status to the literal "review", so a custom workflow whose review gate has another name could not use verify reruns and got gate-style accounting. A review gate is now the gate state with the reviewer role (or the built-in name). The container image ran forge as PID 1, which never reaps orphaned check/verify descendants; their zombies kept process groups visible and stop_group reported them not stopped. The image now starts forge under tini. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ir own gate budget A review gate was any gate with the reviewer role. A reviewer-role gate in another phase (a plan or design check) runs no Review, so it lost its gate:<state> entry cap to the shared review budget and nothing parked it at verdict time either; it also inherited the Project default review config. A renamed review gate is now a reviewer-role gate in the review phase, the gate the engine runs Review for; the built-in name keeps every rule it had, whatever its kind. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The changelog said only that verification reruns accept renamed review states. Renamed review gates also moved their gate rejections from gate:<state> to the review budgets, lost the entry park on the gate cap and started projecting review_gate; existing gate:<state> spending is not carried over. The API budget projection notes say how such a gate is projected. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… comments - The config file is <data dir>/forge.yaml, where the data dir comes from --data-dir, then FORGE_DATA_DIR, then ~/.forge. A --data-dir ./test server no longer loads (or writes) ~/.forge/forge.yaml. - CI triage no longer labels a candidate failure pre_existing_unverified when the base failed with comparable test signatures the candidate does not share (e.g. a build break the candidate introduced). - Forge comments when a repair round leaves HEAD unchanged, both on the send-back and on the park. - Live check 6.4 of both repair loop changes passed (2026-10-16). Co-Authored-By: Claude Opus 5.5 <[email protected]>
A candidate whose test signatures all fail on the red base, with a rerun that reported none, was labelled introduced and told the coder it broke tests the base already fails. It is pre_existing_unverified again (still blocking), with a reason saying the rerun could not confirm it. A partial overlap stays introduced, and its reason names the signatures the base does not fail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both no-change comments were keyed by the failed Review alone, the park sharing the key of every other park comment on that Review. When the owner sent a parked Task back and the coder again changed nothing, the second park of the same Review was silently deduplicated, as was a no-change park after a repeated-finding park. The send-back and park comments now carry the durable review entry step in their idempotency kind: a replay of that entry still posts nothing new. Tests also assert that a round which moved HEAD posts neither comment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A server whose ~/.forge/forge.yaml set forge.data_dir printed `forge --data-dir <that dir> --migrate-workspace-root` on a refused start. Since --data-dir now also selects the config file, that command read <that dir>/forge.yaml instead, losing workspace.root and every other setting, and moved the root to the wrong default. The printed command now names the directory config lookup used (--data-dir, FORGE_DATA_DIR, or the plain command for ~/.forge). Co-Authored-By: Claude Opus 5.5 <[email protected]>
GET /api/v1/settings loaded the pending config from the launch's forge.yaml without the --data-dir that launch used. With no forge.data_dir in the file it resolved ~/.forge and reported forge.data_dir and workspace.root as needing a restart on every --data-dir server (make dev). The server now hands its --data-dir to AppState and the settings read applies it, as the next start would. CHANGELOG also notes the migrate-command fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
mai1015
marked this pull request as ready for review
October 17, 2026 02:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Forge v0.14.0. Full notes, including every breaking change, are in CHANGELOG.md under
## [0.14.0].Highlights
404s).F-*,CI-*,V-*), the coder gets a bounded repair brief, Task comments track findings across rounds, and an extra round is granted when a round makes progress.V-*findings before any reviewer runs.lead_check, replan bridge).mergingmeans "in the merge queue"; review-entry and queue-head CI run on one durable check runner with process-group stop; parked merges resume when an offline machine returns.forge.yamlis read from the data directory in use (--data-dir, thenFORGE_DATA_DIR, then~/.forge).Upgrade notes
### Breakingin the 0.14.0 section, notably: access roles,mergingsemantics, workspace root adoption, config file location under--data-dir, consolidated test target names.~/.forge/forge.dbbefore upgrading as usual.🤖 Generated with Claude Code