How to review this PR
It is one PR by necessity — the areas share core files (plan_tool.go,
plan_exec.go, app.go are each touched by many commits), so they cannot be
cleanly split into separate PRs without breaking builds. But the changes are
independent by concern. Review area by area, top to bottom; each is
self-contained and these are the seams a split would follow.
| # | Area | Start here |
|---|---|---|
| 1 | Posture + orchestrate tool — the zeromaxing rung and the DAG tool, validated by one constructor | plan.go, plan_tool.go, plan_gate.go, plan_keyword.go |
| 2 | Executor + durability — one scheduler; plan state as a reduction over five events | plan_schedule.go, plan_exec.go, plan_events.go |
| 3 | Identity-aware resume — a completed task's output survives; an edited task (and its downstream) re-runs instead of replaying stale | plan_identity.go, plan_resume.go, orchestrate_saved.go |
| 4 | Read-grant propagation (sandbox) — sub-agents inherit the parent's request_permissions READ grants via a new --add-read-dir flag, applied read-only (never writable) | sandbox/scope.go, cli/exec.go, cli/exec_parse.go, plan_runner.go |
| 5 | Size-aware model routing — free providers tier by model size (not alphabet); a min_size decency floor; the router is shown size labels; providers models displays them | plan_model_size.go, plan_model_assign.go, plan_model_router.go, config/types.go |
| 6 | TUI plan surface + observability — right-column plan panel, per-agent rows, per-worker tokens/model | tui/orchestrate_*.go, sidebar*.go, specialist_card.go, worker_view.go |
Every production change has a regression test beside it (~61% of the diff is
tests); the tree builds and go test ./... passes; with the posture off the
orchestrate tool is unadvertised and no plan machinery runs (see Verification
for the precise additivity claim and its one documented exception).
Summary
Adds zeromaxing — an explicit, opt-in posture that lets a turn spend more to get a more exhaustive answer — and the plan orchestration it exists to drive.
The posture is a rung above high on the existing effort ladder, reached by
/effort zeromaxing, /profile zeromaxing, or --exec-profile zeromaxing. It
raises the turn budget, widens the sub-agent allowance, and advertises one new
tool: orchestrate, which takes a declared DAG of tasks and runs them as child
agents, in parallel where the dependency graph allows.
The whole feature is additive. With the posture off, nothing here executes. That is not an aspiration — it is the property every commit on this branch was checked against, and the check is in "Verification" below.
What landed
| Area | Change |
|---|---|
| Posture | New zeromaxing rung; lifecycle reminders injected below the cache breakpoint |
orchestrate tool | Declared DAG of tasks, validated by one constructor there is no way to bypass |
| Execution | One scheduler; max_workers 1–16 walks the validated topological order. Measured 40.0s → 27.0s at 4 workers |
| Plan size | small/medium/large/unrestricted tiers; project config may only tighten what user config sets |
| Durability | Plan state is a reduction over five ordinary session events — no new store |
| Resume | /plans verbs: list, save, run, resume, restart, stop, pause |
| Write-capable plans | Gated behind an approval prompt and run in a detached git worktree; the tree is left for review rather than deleted |
| Stall handling | A watchdog retries a child that has gone silent; retries are counted and reported |
| TUI | Plan lives in the right column — progress bar, task list, live task detail, per-agent rows |
Design notes worth review
No new store. Plan state is derived from five session events beside the
existing specialist ones. Resume is a reduction over them, which is why a plan
recorded by the TUI and one recorded by zero exec resume identically.
One scheduler, not two. The sequential path is the concurrent one with a single worker. Two executors would have been easier to write and impossible to keep in step — a duplicated rule drifts, and a duplicated executor drifts faster.
Optional interfaces over name switches. Control, per-task progress, isolation and concurrency each arrive through a type-asserted optional half, so a recorder that only records is unaffected and no existing signature changed.
One plan per surface. The panel holds one plan and the card table is keyed by
task id — unique within a plan, not between two. PlanSurfaceBusy enforces
that at the tool, on the path the model drives, matching the guard /plans restart already had on the path a user drives.
Verification
Additivity, the load-bearing claim. With the posture off, the orchestrate
tool is unadvertised and no plan machinery runs; for a write-capable run the first
HTTP request body is byte-identical to an origin/main binary. One documented
exception, orthogonal to the posture: a run holding no mutating tools omits the
~5 KB confirmation-policy block (runCanMutate), so a read-only run's prompt is
smaller than a pre-feature build — deliberate, fail-closed, and independent of
whether the posture is on. Re-proven after
every commit; both binaries built fresh, baseline from a clean origin/main
worktree:
auto-low IDENTICAL (33,549 bytes)
auto-medium IDENTICAL (37,918 bytes)
auto-high IDENTICAL (51,038 bytes)
auto-member IDENTICAL (38,500 bytes)
use-spec IDENTICAL (16,179 bytes)Gauntlet. go build ./..., go vet ./..., go test ./... all pass. gofmt
clean. Concurrency-sensitive packages run under -race with repeat counts.
Mutation checking. Every fix on this branch was verified by reverting the production change and confirming the test fails. Several tests passed initially for the wrong reason and were rebuilt until they bit — the misses are recorded in the commit messages rather than quietly fixed.
Fan-out measured end to end, not asserted: max_workers=1 → 40.0s,
max_workers=4 → 27.0s on the same plan.
Known gaps
- Remote/cloud sessions do not inherit the posture.
- No keyword trigger; activation is explicit only.
- The repo-wide exec-hardening sweep is out of scope here. The worktree git path is hardened; the remaining ~60 call sites are their own campaign.
Notes for the reviewer
This is a draft, and deliberately so: it is large. Per CONTRIBUTING.md a PR
needs an approved parent issue and one PR should carry one change — this carries
a feature. Happy to split it along the seams above (posture rung / orchestrate
tool + executor / durability + resume / TUI surface), each of which builds and
tests independently, if that is the preferred shape.
UI changes are best seen running; screenshots can be added on request.
Summary by CodeRabbit
- New Features
- Added the Zeromaxing execution posture with CLI and TUI controls.
- Introduced /plans orchestration with saved plans, pause/stop/resume, background execution, workspace isolation, retries, model selection, and live progress.
- Added configurable plan-size limits, bundled plans, model discovery, and verification.
- Added clearer permission details, adaptive confirmation prompts, and richer usage reporting.
- Bug Fixes
- Improved progress streaming, plan resumption, credential-store concurrency, sandbox grants, and Git cancellation.
- Tests
- Expanded coverage across orchestration, concurrency, durability, configuration, usage tracking, and TUI interactions.
Activity
262I found issues that need to be addressed before this is ready.
Merge readiness
-
[P1] Keep this PR behind its two unmerged package dependencies
internal/agent/loop.go:16At
b6b38238, this branch importsinternal/measurementsfrom the agent and specialist paths andinternal/memoryfrom the tool/CLI paths, but neither package exists on this head or on its currentmainbase. The required Ubuntu, macOS, Windows, performance, security, and review jobs consequently stop during package loading or compilation instead of validating the feature. The author's composed-stack runs are useful integration evidence, but GitHub would merge the standalone tree represented by this PR.This is an intentional stacked dependency rather than an accidental omission, so please do not restore duplicate copies here. Address the root dependency ordering: land #909 and #897 first, refresh #829 onto the resulting
main, resolve any integration drift, and require the ordinary standalone CI matrix to pass on the final head before merging.
Findings
-
[P1] Enforce read-only access to the plan scratchpad
internal/specialist/plan_exec.go:847The scratchpad stores prior tasks' full outputs, and downstream tasks are explicitly directed there when an in-prompt excerpt is truncated.
ExecutePlanInplaces that directory inretryPolicy.readRoots;NewPlanRunnerforwards it asTaskRunOptions.ExtraReadRoots; andBuildArgssends that field throughappendExtraWriteRootArgs, producing--add-dir. A write-capable task therefore receives write authority over the evidence produced by sibling tasks. Because the scratchpad is also created below the generally writable temporary root, changing only the argument name may not remove the effective permission. A compromised or mistaken child can rewrite or delete an earlier result before a dependent reads it, changing the plan's conclusions without changing the recorded upstream result.Please fix the authority model at its root: keep the executor as the only scratchpad writer and make the effective child sandbox grant read-only regardless of whether that child also has write tools for its isolated worktree. Add an end-to-end sandbox test with a write-capable child that can read a prior scratchpad entry but cannot modify, replace, delete, or create files in that directory.
-
[P1] Suspend the wall-budget timer while a plan is paused
internal/specialist/plan_wall_clock.go:91watcharms a timer for the current remaining budget. At a task boundary, the executor recordspausedAt, blocks inWaitWhilePaused, and callsaddPausedonly after that wait returns. If ten seconds remain and the user pauses for eleven seconds, the original timer fires while the plan is parked; because no pause credit has yet been recorded,remaining()reports exhaustion,expiredis set, and the plan context is permanently cancelled. The cancellation itself wakesWaitWhilePaused, after which the credit is applied too late to revive the run. The existing clock test callsaddPausedsynchronously and therefore cannot exercise this ordering.Please address the lifecycle rather than adjusting the arithmetic after the fact: pause/resume transitions need to suspend or reschedule the active watcher before blocking, with synchronization that prevents a timer firing concurrently with the pause transition. Add an executor-level regression that pauses longer than the pre-pause remainder, resumes, and proves the next task runs while actual running time still exhausts the budget normally.
-
[P1] Reject present non-array dependency and tool fields
internal/specialist/plan.go:896planStringsStrictdirectly assertsargs[key]to[]anyand returns(nil, nil)whenever that assertion fails. It therefore gives an absent optional field and a present malformed value identical semantics. For example,"depends_on":"setup","depends_on":null, or an object value is admitted as no dependencies, allowing the task to run before the prerequisite it attempted to declare. A malformedtoolscontainer similarly becomes the default inherited read-only grant rather than an admission error. Provider schemas reduce the chance of malformed model output, but the runtime does not locally enforce those schemas, and hand-edited saved-plan JSON reaches the same parser directly. This exact issue was previously marked addressed, but current head again contains the failing branch.Please fix the parser contract, not individual callers: distinguish a missing key from a present value of the wrong type and fail closed for every present non-array/null container. Keep omission and valid empty arrays behaving as designed, and add regressions for malformed containers—not only malformed elements inside otherwise valid arrays—through both inline and saved-plan admission.
-
[P1] Propagate dynamic read grants through ordinary Task launches and resumes
internal/specialist/task_tool.go:109The PR introduces
--add-read-dirso sub-agents can inherit parentrequest_permissionsread grants without gaining write access, but the livescope.ExtraReadRootssupplier is wired only intoOrchestrateTool. A fresh ordinaryTaskconstructsTaskRunOptionswithoutReadOnlyRoots, so it cannot inspect a path the parent was just authorized to read. Resume is narrower again:BuildResumeArgsInputhas no read-root field andBuildResumeArgsemits only the executor's extra write roots. A child can therefore read an external path during an orchestrated task yet fail on the same path when launched normally or resumed. Existing tests cover the plan-specific path, not these sibling entry points.Please fix the shared child-execution boundary: give
Executoraccess to the live read-root supplier just as it has the live write-root supplier, and have both fresh and resume argument builders emit those grants exclusively as--add-read-dir. Add end-to-end coverage for ordinaryTaskand resumedTasklaunches proving the path remains readable but not writable. -
[P2] Reject fractional budget values instead of truncating them
internal/specialist/plan.go:954Tool arguments and saved-plan JSON decode numbers as
float64, andplanIntSetconverts every such value with uncheckedint(value). This silently changes the caller's budget:max_workers: 1.9runs with one worker,max_retries: 0.9becomes an explicit zero, andmax_wall_seconds: 0.9becomes zero and disables the wall bound entirely. Declaring these fields as JSON Schema integers is not a runtime guarantee, particularly for hand-edited persisted plans; current tests cover negatives and large whole timeout values but not fractional input.Please centralize exact integer decoding for all integer-valued plan fields. Accept only finite, representable whole numbers, reject fractional values before conversion, and preserve the current absent-versus-explicit-zero semantics. Use that one conversion path for worker, retry, token, wall, and stall limits, with table tests that prove each field rejects fractions rather than rounding or disabling a bound.
-
[P2] Do not overwrite user plans when staging restart or resume
internal/tui/orchestrate_saved.go:452Bare resume stages to
last_run_resume, restart stages tolast_run, and named resume stages to<stored.Name>_resume. These are ordinary valid names in the same project/user-visible namespace used by/plans save. All paths callSavePlan, whose atomic rename intentionally replaces an existing destination, so/plans restartcan silently destroy a user-authoredlast_run, and/plans resume sweepcan replace an unrelatedsweep_resume. The current tests verify that the generated file appears but never seed a colliding user plan. The comments explain why generated names are reused, but not why the command owns pre-existing user data under those names.Please separate internal staging ownership from user-authored storage rather than weakening atomic replacement globally. Use a private/ephemeral namespace or collision-safe identifiers and clean them after admission; at minimum, detect an existing user plan and refuse to replace it. Cover all three collision forms and verify that the original bytes remain intact after the command.
-
[P2] Expire terminal results from the completed-session store
internal/execution/process_manager.go:448The new immutable completed-result cache fixes late polling, but its cleanup is disconnected from the configured retention.
removeCompletedLaterwaits forCompletedRetentionand callsmanager.Remove(process.id);Removedeletes onlymanager.processes, whilerememberstores the terminal result in the separatemanager.completedmap. Consequently, the ID remains addressable throughCompletedandContinueafter the advertised retention period, until 64 newer completions happen to evict it or the manager is destroyed. That also retains the bounded output plus request, enforcement, change, and metadata fields longer than configured. Existing tests verify the minimum retention relationship and FIFO count bound, but not time-based expiry.Please make completed-result ownership include its expiration lifecycle: remove the matching immutable record when its own retention window ends without deleting a newer replacement or racing terminal publication. Add a deterministic short-retention test proving late polls work before expiry, fail after expiry, and that FIFO eviction still behaves independently.
Two things are settled, so you can stop working on them.
Keep the restored trees. @jatmn asked you to hold this behind #897 and #909 rather than restore copies; you restored them on my advice, and those two instructions contradicted each other. Settling it with evidence rather than a third opinion: the restored trees are byte-identical to #897's and #909's (internal/memory tree 46e3b4615c, internal/measurements ea9dfecf14 on both sides), all four merge orders of {829, 897, 909} into main are conflict-free, and the combined tree builds and vets clean. The duplicate-copy objection does not materialise. No action needed.
The scratchpad answer is not "make the grant read-only". Rerouting readRoots through --add-read-dir would remove exactly zero write ability: the pad lives at os.MkdirTemp(""), and sandbox.NewScope adds the OS temp candidates as write roots unconditionally (scope.go:46-50). That is base behaviour, byte-identical on main. Building the child scope the way internal/cli/exec.go:457 does and writing into the pad returns block=nil on both trees. Don't spend a round on it.
Requesting changes on what follows. Every finding is judged against this PR's own stated contracts, since main has no plan subsystem at all.
jatmn's scratchpad P1, answered once
The integrity contract does not hold, but the defect is the missing producer binding, not the write grant. The deliberate grant at plan_exec.go:842 is fine and I am not asking you to remove it.
What is false is plan_scratchpad.go:31-35: "NO TASK WRITES HERE... Write contention is not locked against; it cannot arise, because there is exactly one writer." Its premise at :22-26, "A READ-ONLY PLAN TASK HAS NO WRITE TOOL", is true, and is falsified as a basis for the invariant by the write-capable plan tasks this same PR introduces. Driven through a real ExecutePlanIn with ParentTools = PlanGrantableToolNames():
RequiresIsolation=true; Failed=0 status=completed
beta tools = [read_file write_file]
beta listed pad = [alpha.md]
beta write err = <nil>
synth read back = "FORGED" (alpha had produced 18349 bytes)Nothing binds a record to the task that produced it: the filename is the bare task id, the directory is listable from inside a task, and the pointer states an expected length that nothing compares at read time.
Two things bound it honestly, so this is smaller than it looks: the only actor that can do it already holds write_file over the same shared worktree as its victim, which is a strictly larger target than a temp .md; and the dependent's prompt still carries the real excerpt inline. A read-only plan cannot do it at all.
The ask is small: correct the invariant comment, and give Record O_EXCL. That one change makes "exactly one writer" true and also closes finding 7 below.
P1. A budget number that arrives as a string silently erases the bound
internal/specialist/plan.go, planIntSet (~:954). The default branch returns (0,false) for a string, so planBudget reads a present key as absent:
numbers: max_tokens=(500000,true) per_task=(100000,true) retries=(1,true)
strings: max_tokens=(0,false) per_task=(0,false) retries=(0,false)End to end through OrchestrateTool.RunWithOptions, a requested 500k plan bound reaches the live meter as 0 and a requested 100k per-task cap reaches the runner as MaxTaskTokens=0, which your own struct comment defines as unbounded. No error anywhere, and the bound is erased from Args(), so a saved plan loses it permanently.
This is reachable rather than theoretical: internal/agent/loop.go:1231 unmarshals tool args into map[string]any with no coercion, nothing validates args against Parameters() anywhere in the repo, and this repo already asserts that models do exactly this. internal/tools/args.go:105 reads "Some models send numbers as strings" and is pinned by a passing test. planIntSet does not use that layer.
Narrowing it fairly: max_wall_seconds "600" degrades to the 1h backstop and max_stall_seconds "600" degrades tighter, both safe directions. The genuinely unbounded pair is max_tokens and max_tokens_per_task, which are the two fields a user only ever sets because they wanted a spending limit. Note max_workers: "4" errors on the same input, so the class is visible for one field and silent for five.
planBudget's own comment at :702-712 names this failure and closes it for a negative max_wall_seconds, and planTask already uses planStringsStrict because a silently dropped depends_on ran a task before its precondition. Same treatment, or route through intArg.
P1. An ancestor write root defeats worktree isolation
internal/specialist/exec.go:525. appendExtraWriteRootArgs skips a root only when it is byte-equal to --cwd, never checking containment. The guard has the same gap: plan_isolation_test.go:57 compares only root == parentWorkspace. Reproduced through the real launch path, with TEMP/TMP/TMPDIR redirected so the automatic temp roots could not confound it:
child --add-dir = [<decoy-temp> <base>\dev]
child --cwd = [<base>\worktrees\plan-a]
write_file status=ok "Created <base>\dev\zero\internal\pwned.go (1 lines)."The approval card says "worktree <name> at <path>", and this writes into the parent tree instead, with no branch and no diff. Precondition is a run holding a write root that is an ancestor of the workspace (config additionalWriteRoots, a root-level --add-dir ~/dev, or a session-scope grant) plus an approved write-capable plan. resolvePlanWorkspace correctly refuses rather than degrades when isolation is unavailable, which is what makes this the one way through.
Same function, second half. Scope.ExtraRoots() returns AddTemporaryWrite entries with no temp-versus-permanent distinction, so a turn-scoped grant leaves as a plain --add-dir and is permanent for the child's whole life:
during turn: parent ExtraRoots() = [<decoy-temp> <base>\secrets]
after turn: parent ExtraRoots() = [<decoy-temp>]
child write after release: status=ok "Created <base>\secrets\written-after-the-turn.txt"The parent releases correctly; the child's argv already carried it. Bounded to children that outlive the turn. Both halves are one decision about what ExtraRoots may hand a child.
P2, five of them
max_tokens_per_task bounds one attempt, not one task (plan_exec.go:1012 + plan_runner.go:146). runTaskWithRetries passes the unreduced cap every iteration and NewPlanRunner allocates a fresh counter per call. Real path, cap 60,000, child emits one 50,000 event then goes silent: max_retries=0 → 1 child / 50,000; =1 → 2 / 100,000; =3 → 4 / 200,000, caps never reduced. Ceiling is (max_retries+1)x for the stall-only case, 2x at the shipped default. It bites hardest in exactly the configuration plan_tool.go:337 prescribes, "use it ALONE", because with max_tokens unset nothing bounds the sum but an hour of wall. Contradicts plan.go:81, plan_exec.go:282 and plan_tool.go:337, all of which say ONE TASK.
The live meter drops the event that trips the per-task cap, and every event after it (plan_runner.go:151). req.Spend.add(...) is a side effect inside the second switch case's condition, and Go stops at the first true case. Measured: cap set → spend.upstream = 40000; same child, cap omitted → 80000. Not cosmetic: plan_exec.go:788 gates downstream dispatch on limit - upstream, so an undercount inflates that ceiling for the rest of the plan (320,000 → 360,000 in a probe). plan_exec.go:1174 states the contract this breaks, "Both sum the same usage events, so they agree at the end." Hoisting the add out of the case condition fixes it.
A pause longer than the remaining wall budget kills the plan mid-pause (plan_wall_clock.go:83-107). The credit is applied only after waitWhilePaused returns and the clock has no notion of "currently paused", so watch wakes on the original deadline and cancels. That is the regression the comment at :725-730 says was fixed. Three identical runs with max_wall_seconds=1 and a 2s pause: elapsed=1.001s status=cancelled succeeded=0 cancelled=4, the pause itself cut short, zero tasks ever ran. Time-scale invariant: a 30-minute budget paused for 40 minutes fails the same way. TestPausedTimeIsNotChargedToTheWallBudget passes because it is a pure unit test with an injected now() that never starts the watch goroutine. Second half of the same line: the credit is unconditional but the pause blocks only the dispatch walk, so with max_workers=2 a 1.9s pause while a task was in flight refunded time in which real work happened.
Case-variant task ids collide to one scratchpad file (plan_scratchpad.go:95). ParsePlan's uniqueness check is an exact-string map and planIDPattern permits both cases, so Alpha and alpha are admitted as distinct tasks; Record joins taskID+".md" with no folding. Full plan run, Alpha emitting 18349 'U' and alpha 18349 'l': files in pad = [Alpha.md], and synth reads Alpha's pointer to get alpha's answer with a character count that matches, so nothing looks wrong. No adversary needed. plan_scratchpad.go:41-44 says the allow-list exists "because a task id becomes a filename", which is the property that fails here.
Record writes through a link already at the destination (plan_scratchpad.go:96). Bare os.WriteFile, no O_EXCL, no lstat, so a link planted under a not-yet-run task's id redirects the executor's write, which is the unsandboxed parent process. Unelevated Windows, victim outside every default write root: os.Link err=<nil>, Record returned normally, victim settings.json now holds model-chosen content. Worth knowing before choosing a fix: internal/pathjail would not catch this variant, since a hard link is not a reparse point and os.Root.OpenFile passed it through. O_EXCL does. Honest gap: nobody drove a real sandboxed child planting the link through its own tools.
Smaller, confirmed, none gating on its own
A failed task's full output is recorded to the shared pad and reachable by unrelated tasks (plan_exec.go:562), while the briefing deliberately refuses to pass it on. refuseUnreachablePerTaskCap fails open on int overflow (plan.go:424) sixty lines above refuseUnrepresentableSeconds, which already rules on exactly that hazard. Non-stall retries spend the stall budget (plan_exec.go:1127), so a decline-then-stall gets zero stall retries against a documented one. terminalStatus reports PlanCancelled for a plan whose tasks genuinely failed (:1148-1152), reaching Meta["plan_status"] and the durable event. And budgetLeft is a dead store: I poisoned it and multiplied its decrement by a million and the whole package still passed, including every budget test, while three comments still describe it as authoritative.
What I checked and found correct
Recording this so the next pass does not re-spend the time. The read/write channel split for parent grants is genuinely sound, and plan_read_roots_test.go is a real assertion rather than a name. The task-id allow-list is a true allow-list and nothing escapes by pathname. Release() does not recurse through a planted junction, which given this repo's junction history was my strongest suspicion going in. The pad root is MkdirTemp + 0700 per run, not a derived shared path. The scheduler held up under 120 randomised -race iterations of 4 to 11 task DAGs mixing panics, failures and concurrent cancels: outcome counts always summed, no task ever ran while a dependency was in flight, peak concurrency never exceeded the worker count, and slots cannot leak or double-return. The retry loop cannot spawn unbounded. The two-pool reserve holds apart from the leak above. NaN, +Inf, 1e300 and 2^63 are refused across every budget field. Grant derivation intersects against the parent unconditionally, depth is capped correctly, and the tool is not advertised under plan mode.
One consequence recorded without an ask, since per-plan isolation is your documented choice: nothing couples max_workers to write capability, so two tasks each granted write_file run concurrently in one tree with no locking. Two tasks holding bash would contend on .git/index.lock. Not asking you to change it here.
@kevincodex1 one question about gnanam's open work, since nothing has moved on it since about 21 September. @gnanam1990, no pressure, this is only so it doesn't sit unnoticed.
- His PRs #829, #878, #897, #909 and #912 each have a change request waiting on him, #829 since 29 August and the others since 21 September.
- His change requests are the last human block on #504, which jatmn and I have approved, and on #808 and #901. The findings were addressed, and he was pinged on all three on 16 October.
Could you decide how you'd like these handled? I won't dismiss or close anything myself.
@kevincodex1 one correction to my 29 October note, with no new ask: gnanam's change requests also hold #693, #726, #987 and #988, as well as #504, #808 and #901. All seven were made on older heads, and each of those PRs has an approval on its current head, so the same decision covers them all.
Superseded by #1205.
#1205 brings this branch onto current main from a new branch on this repo, not the fork. All 195 commits are carried unchanged, with your authorship, and the conflict resolution is in a single merge commit. It also resyncs the internal/memory and internal/measurements copies with the current heads of #897 and #909, and fixes the findings that were still open from the 28 Aug and 29 Aug reviews on this PR's last heads. Each finding has its own commit and regression test.
Thanks @gnanam1990 for the work. Leaving this open for maintainers to close.
🤖 Generated with Claude Code
@jatmn I addressed the current-head review on
b6b38238.What changed:
write_stdinnow reaches completed sessions without losing cwd/TTY/truncation/interruption/request/enforcement/change/sandbox metadata/newand/resumerefuse the launch-to-admission windowRegression coverage includes concurrent terminal collectors, production late
write_stdin, session reattach ownership, per-session last plans, launch-window session switching, panic finalization, durability failures in production order, linked saved-plan ancestors, higher-scope precedence failures, abort-vs-retain cleanup, overlapping model IDs across providers, and comma-only sweep targets.Validation on the composed dependency stack (
#909head40ac694e+#897head81472e52):make fmt-checkpassedgo vet ./...passedgo run ./cmd/zero-release buildpassedgo run ./cmd/zero-release smokepassedmake lint-staticpassed with 0 issuesmake vulncheckpassed with no vulnerabilitiesA full
go test ./...passed after the lifecycle fixes. The final rerun after the shell-guidance cleanup was interrupted only because the host temp volume reachedno space left on device; the changed tools/agent/CLI packages had already passed, and the exact final head passed the remaining gates above.The merge-order blocker remains intentionally unchanged: this PR is not standalone-buildable until #909 and #897 land on
main. Please rereview the code findings on this head; after those dependencies merge, I will refresh this branch and require the ordinary standalone matrix to pass.No new dependency or third-party module was added;
go.mod,go.sum, andthird_party/are unchanged.