agent-dispatcher: Pi residents end a turn with a final reply (KSE-0213 M) #515

Merged
founder merged 2 commits from resident-natural-turn-end into main 2026-11-18 04:09:21 +00:00
Owner

KSE-0213 Amendment M. Stacked on #514 (prompt caching, Amendment L); review and merge that one first. Founder, 2026-11-17: "The complete turn thing feels dumb", "Let's do both", "use as many pi standards and defaults as possible", and on the first draft's round ceiling: "turn off the round ceiling, all these artificial limits fuck them please. artifacts of old bullshit".

Problem

A Pi turn could end only through complete_task (or sleep_until). A reply without tool calls got "[supervisor] Continue the authorized work, call complete_task by itself …". The eighth in a row blocked the turn and every active action. There were five such blocks in seven days, all on the conductor's thread; on 2026-11-16 one cost it its first eight events. Pi Durable's own loop already ends a run on an assistant message without tool calls. The nudge was a key.store onYield continuation added on top.

Design (flag supervisor.piNaturalEndIdentities, env KEYSTORE_RESIDENT_PI_NATURAL_END_IDENTITIES)

  • Pi's end: onYield returns no continuation. The final reply completes the active owned actions of the run's current inputs (LiveDoc.run.inputs). The outcome is completed, and the reply text is the summary (at most 7,600 bytes; a fixed sentence if the reply is empty). The existing "Owned work remains unfinished" line is still appended.
  • No turn limits: the host sets no ceiling on the rounds, duration or control-only rounds of a listed identity's turn. Pi ends it when the model replies without tool calls, as upstream Pi does.
  • Standing programs are untouched: a natural end never settles a standing-program action. Closure still requires complete_task(completed) with a current canonical closed-state receipt.
  • Exceptions only: complete_task stays registered, and its description now says it is not needed to finish. It records a blocker, settles named older action IDs, and closes the program. sleep_until and await_event are unchanged.
  • No nudges: the tool-free counter, its continue message and the eight-response block are off for listed identities.
  • Bookkeeping: the done frame still carries the outcome and owned_counts. Steer statuses, owned-work receipts and the Amendment I idle notice are computed as before. The Zulip relay already strips the runtime summary line, so a final reply of [[key.store:no-reply]] still suppresses the relay.
  • Prompts: listed identities get a natural lifecycle instruction: the turn ends with a reply without tool calls, and that reply is the outcome. tools.md, continuity.md, zulip.md, roles/assistant.md and roles/coo.md now defer to the lifecycle instruction; tools.md says a turn has no round limit. Registered program prompts are unchanged, because their digests are registration identity, and they already say "use complete_task only for an accurate execution outcome".
  • Canonical task executions (none in production) keep explicit, freshly verified completion; the flag has no effect there.
  • New patch agent-dispatcher-natural-turn-end.patch (after the prompt-cache patch), registered in flake.nix, patches/BUILD.bazel, overlay BUILD.bazel and dispatcher-test.sh.

Host limits removed for listed identities

  • Tool-free nudge and eight-response block (onYield continuation in services/resident-pi/engine.mjs).
  • Standing-program control-only guard (engine.mjs afterResponse): blocked the program after eight consecutive rounds of only work_list/work_update/complete_task/… calls. It belonged to the required-completion lifecycle and stays on the rollback path.
  • router.maxToolRounds does not reach Pi. The option predates this PR and only sets the forced-checkpoint interval of the legacy non-Pi OpenRouter loop (runner.go), which still serves the openrouter-meta default tier. The Pi worker frame no longer carries it and openResidentPi has no maxRounds.

Kept on purpose (not turn limits)

Spending policy (model allowlist with USD caps) and the OpenRouter workspace budget; peer-wake budget; cancellation and provider errors; the context window with Pi-native compaction; the per-command shell timeout (default 10 min, max 30 min) and the refusal of a bare sleep over 60 s; the hub tool-result size cap; maxSteersPerTurn (steer batching per turn); Pi's maxRetries: 0 (the host owns retries).

Pi defaults kept, and each departure

  • Kept: Pi's loop decides the end, with no continuation hook and no round ceiling; Pi's final boundary places queued inputs into the next run; a length stop ends the turn as in Pi.
  • Departure: complete_task remains for blockers and program closure, because outcomes and the canonical program receipt are key.store state.
  • Departure: canonical executions keep explicit verified completion.

Verification

  • nix build .#agent-dispatcher on the forge (full go test ./..., including pi_natural_end_test.go against the pinned worker, pre-Pi loader build): ok.
    • Covered: natural completion with no [supervisor] message and the new lifecycle text; explicit blocker; a 61-round turn with MaxToolRounds 2 completing on its final reply; flag off keeping the eight-response block and the old instruction.
  • dispatcher-test.sh host-integration suite (go test -tags=keystore_host_integration ./internal/agentdispatcher ./internal/harness) on the forge against the pinned Pi package: ok.
  • nix build .#key-store-resident-pi plus its suites (JSONL and SQLite): all pass.
    • Covered: a prose reply completes only the current input, leaves an older active action and the program alone, and keeps idle counts right; tools followed by a reply (and an empty reply); complete_task(blocked) and sleep_until; a 120-round turn with a 20-round control-only stretch and an open program that ends only on the final reply, with the program still active; config validation without any ceiling.
  • nix eval forge and HQ toplevel drvPaths: evaluate.

Rollback: remove an identity from piNaturalEndIdentities. The next turn gets back the old lifecycle instruction, the tool-free nudges, the control-only guard and the required complete_task. Nothing is migrated.

🤖 Generated with Claude Code

KSE-0213 Amendment M. Stacked on #514 (prompt caching, Amendment L); review and merge that one first. Founder, 2026-11-17: "The complete turn thing feels dumb", "Let's do both", "use as many pi standards and defaults as possible", and on the first draft's round ceiling: "turn off the round ceiling, all these artificial limits fuck them please. artifacts of old bullshit". ## Problem A Pi turn could end only through `complete_task` (or `sleep_until`). A reply without tool calls got "[supervisor] Continue the authorized work, call complete_task by itself …". The eighth in a row blocked the turn and every active action. There were five such blocks in seven days, all on the conductor's thread; on 2026-11-16 one cost it its first eight events. Pi Durable's own loop already ends a run on an assistant message without tool calls. The nudge was a key.store `onYield` continuation added on top. ## Design (flag `supervisor.piNaturalEndIdentities`, env `KEYSTORE_RESIDENT_PI_NATURAL_END_IDENTITIES`) - **Pi's end:** `onYield` returns no continuation. The final reply completes the active owned actions of the run's current inputs (`LiveDoc.run.inputs`). The outcome is `completed`, and the reply text is the summary (at most 7,600 bytes; a fixed sentence if the reply is empty). The existing "Owned work remains unfinished" line is still appended. - **No turn limits:** the host sets no ceiling on the rounds, duration or control-only rounds of a listed identity's turn. Pi ends it when the model replies without tool calls, as upstream Pi does. - **Standing programs are untouched:** a natural end never settles a standing-program action. Closure still requires `complete_task(completed)` with a current canonical closed-state receipt. - **Exceptions only:** `complete_task` stays registered, and its description now says it is not needed to finish. It records a blocker, settles named older action IDs, and closes the program. `sleep_until` and `await_event` are unchanged. - **No nudges:** the tool-free counter, its continue message and the eight-response block are off for listed identities. - **Bookkeeping:** the done frame still carries the outcome and `owned_counts`. Steer statuses, owned-work receipts and the Amendment I idle notice are computed as before. The Zulip relay already strips the runtime summary line, so a final reply of `[[key.store:no-reply]]` still suppresses the relay. - **Prompts:** listed identities get a natural lifecycle instruction: the turn ends with a reply without tool calls, and that reply is the outcome. `tools.md`, `continuity.md`, `zulip.md`, `roles/assistant.md` and `roles/coo.md` now defer to the lifecycle instruction; `tools.md` says a turn has no round limit. Registered program prompts are unchanged, because their digests are registration identity, and they already say "use complete_task only for an accurate execution outcome". - Canonical task executions (none in production) keep explicit, freshly verified completion; the flag has no effect there. - New patch `agent-dispatcher-natural-turn-end.patch` (after the prompt-cache patch), registered in flake.nix, patches/BUILD.bazel, overlay BUILD.bazel and dispatcher-test.sh. ## Host limits removed for listed identities - **Tool-free nudge and eight-response block** (`onYield` continuation in `services/resident-pi/engine.mjs`). - **Standing-program control-only guard** (`engine.mjs` `afterResponse`): blocked the program after eight consecutive rounds of only `work_list`/`work_update`/`complete_task`/… calls. It belonged to the required-completion lifecycle and stays on the rollback path. - **`router.maxToolRounds` does not reach Pi.** The option predates this PR and only sets the forced-checkpoint interval of the legacy non-Pi OpenRouter loop (`runner.go`), which still serves the `openrouter-meta` default tier. The Pi worker frame no longer carries it and `openResidentPi` has no `maxRounds`. ## Kept on purpose (not turn limits) Spending policy (model allowlist with USD caps) and the OpenRouter workspace budget; peer-wake budget; cancellation and provider errors; the context window with Pi-native compaction; the per-command shell timeout (default 10 min, max 30 min) and the refusal of a bare `sleep` over 60 s; the hub tool-result size cap; `maxSteersPerTurn` (steer batching per turn); Pi's `maxRetries: 0` (the host owns retries). ## Pi defaults kept, and each departure - Kept: Pi's loop decides the end, with no continuation hook and no round ceiling; Pi's final boundary places queued inputs into the next run; a `length` stop ends the turn as in Pi. - Departure: `complete_task` remains for blockers and program closure, because outcomes and the canonical program receipt are key.store state. - Departure: canonical executions keep explicit verified completion. ## Verification - `nix build .#agent-dispatcher` on the forge (full `go test ./...`, including `pi_natural_end_test.go` against the pinned worker, pre-Pi loader build): ok. - Covered: natural completion with no `[supervisor]` message and the new lifecycle text; explicit blocker; a 61-round turn with `MaxToolRounds` 2 completing on its final reply; flag off keeping the eight-response block and the old instruction. - `dispatcher-test.sh` host-integration suite (`go test -tags=keystore_host_integration ./internal/agentdispatcher ./internal/harness`) on the forge against the pinned Pi package: ok. - `nix build .#key-store-resident-pi` plus its suites (JSONL and SQLite): all pass. - Covered: a prose reply completes only the current input, leaves an older active action and the program alone, and keeps idle counts right; tools followed by a reply (and an empty reply); `complete_task(blocked)` and `sleep_until`; a 120-round turn with a 20-round control-only stretch and an open program that ends only on the final reply, with the program still active; config validation without any ceiling. - `nix eval` forge and HQ toplevel drvPaths: evaluate. Rollback: remove an identity from `piNaturalEndIdentities`. The next turn gets back the old lifecycle instruction, the tool-free nudges, the control-only guard and the required `complete_task`. Nothing is migrated. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
agent-dispatcher: Pi residents end a turn with a final reply (KSE-0213 M)
Some checks failed
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 17s
Check: MCP Hub / Check (MCP Hub bun suite) (pull_request) Successful in 23s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 24s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (pull_request) Successful in 35s
Check: Workflows / Check (deploy-impact classifier) (pull_request) Successful in 14s
Check: Redmine / Check (Redmine conditional writes) (pull_request) Successful in 19s
Build: Web / Build (Web) (pull_request) Successful in 49s
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 30s
Check: NSC Dispatch Boundary / Check (Private dispatch and reviewed runner profiles) (pull_request) Successful in 43s
Check: Workflows / Check (CI performance contracts) (pull_request) Successful in 54s
Check: API / Check (API crate) (pull_request) Successful in 1m28s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 35s
Check: Agent Dispatcher / Check (Dispatcher Bazel integration) (pull_request) Successful in 1m57s
Build: Android / Build (Android) (pull_request) Successful in 1m28s
Build: Snap / Build (Snap amd64) (pull_request) Successful in 1m38s
Build: Apple / Build (iOS) (pull_request) Successful in 23s
Build: Apple / Build (visionOS) (pull_request) Successful in 37s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 2m51s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Snap / Build (Snap arm64) (pull_request) Successful in 3m21s
Build: Apple / Build (macOS) (pull_request) Successful in 11m44s
key.store/review-policy Tier 2: changes requested by infra
b57a5a8562
A Pi turn could end only through complete_task: prose replies were nudged
and the eighth one blocked the turn and its actions, which lost the
conductor's first eight events on 2026-11-16.

Behind supervisor.piNaturalEndIdentities (every forge resident and the HQ
assistant; empty module default), Pi's own loop decides: a reply without
tool calls completes the active actions of the run's current inputs and is
the outcome summary. complete_task stays for a blocker, named older actions
and standing-program closure; sleep_until for a confirmed wake. The
tool-free nudge and its eight-response block are off; router.maxToolRounds
bounds the model rounds of one run and ends a runaway turn blocked. Standing
programs are never settled by a natural end; owned counts, steer outcomes
and the idle notice come from the same done frame as before. Prompts defer
to the lifecycle instruction instead of requiring complete_task.

Removing an identity from the list restores the required complete_task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
manager approved these changes 2026-11-17 05:45:58 +00:00
Dismissed
manager left a comment

Manager-seat APPROVED at b57a5a85 (stacked base e157ae59 = #514's head; merge must wait for #514, and any rebase onto merged main needs a fresh verdict at the new head).

What I verified firsthand this turn:

  • Full 790-line diff read (17 files), head b57a5a85 onto base e157ae59; pull_get confirms merge_base == base, mergeable true. Base is #514's branch, not main — genuinely stacked, as the PR body states.
  • commit_status at head: 19 success / 1 pending (Apple macOS) / 1 skipped; Dispatcher Bazel integration success (covers the Go patch). No review-policy context on this head yet. I am not gating on CI: the queue merges only on green required CI.

Findings — none blocking:

  1. Completion safety is preserved where it matters: natural end settles only active + non-standing-program + current-input actions; the standing program is never settled by natural end or ceiling (both code paths and both test suites assert this), and closure still requires complete_task(completed) with the canonical closed-state receipt.
  2. Fail-closed configuration: invalid identity slugs / reserved names error; piNaturalEnd() errors abort the turn rather than silently running old behavior; worker requires boolean naturalEnd plus integer maxRounds >= 1 from fixed host config; MaxToolRounds unset would throw at open. Module default is empty (flag off = today's eight-response block, covered by test).
  3. Round ceiling replaces rather than removes the runaway backstop: only tool-calling non-control responses increment the counter, and the runaway test (4 generations at maxRounds 3, blocked outcome, program open) proves termination. The one 52-round turn in the last 24h would have ended blocked at 48 under this rule — intended per design.
  4. Prompt changes defer to the lifecycle instruction instead of duplicating it; registered program prompts untouched (digest stability). complete_task stays for blockers, named older IDs, and program closure; its new description matches that.
  5. Rollback is per-identity removal, nothing migrated; natural-end completions are ordinary completed receipts.

Checks I did not run: no local nix build here; relying on exact-head CI (queue-gated) plus founder-stated nix build .#agent-dispatcher / .#key-store-resident-pi suites. Post-merge acceptance is behavioral (fewer eight-block events, no runaway turns); suggest infra confirm the ceiling-blocked outcome surfaces in the usual alert/drain watches rather than a new silent outcome class.

Manager-seat APPROVED at `b57a5a85` (stacked base `e157ae59` = #514's head; merge must wait for #514, and any rebase onto merged main needs a fresh verdict at the new head). What I verified firsthand this turn: - Full 790-line diff read (17 files), head `b57a5a85` onto base `e157ae59`; `pull_get` confirms merge_base == base, mergeable true. Base is #514's branch, not main — genuinely stacked, as the PR body states. - `commit_status` at head: 19 success / 1 pending (Apple macOS) / 1 skipped; Dispatcher Bazel integration success (covers the Go patch). No review-policy context on this head yet. I am not gating on CI: the queue merges only on green required CI. Findings — none blocking: 1. Completion safety is preserved where it matters: natural end settles only `active` + non-`standing-program` + current-input actions; the standing program is never settled by natural end or ceiling (both code paths and both test suites assert this), and closure still requires `complete_task(completed)` with the canonical closed-state receipt. 2. Fail-closed configuration: invalid identity slugs / reserved names error; `piNaturalEnd()` errors abort the turn rather than silently running old behavior; worker requires boolean `naturalEnd` plus integer `maxRounds >= 1` from fixed host config; `MaxToolRounds` unset would throw at open. Module default is empty (flag off = today's eight-response block, covered by test). 3. Round ceiling replaces rather than removes the runaway backstop: only tool-calling non-control responses increment the counter, and the runaway test (4 generations at maxRounds 3, blocked outcome, program open) proves termination. The one 52-round turn in the last 24h would have ended blocked at 48 under this rule — intended per design. 4. Prompt changes defer to the lifecycle instruction instead of duplicating it; registered program prompts untouched (digest stability). `complete_task` stays for blockers, named older IDs, and program closure; its new description matches that. 5. Rollback is per-identity removal, nothing migrated; natural-end completions are ordinary completed receipts. Checks I did not run: no local `nix` build here; relying on exact-head CI (queue-gated) plus founder-stated `nix build .#agent-dispatcher` / `.#key-store-resident-pi` suites. Post-merge acceptance is behavioral (fewer eight-block events, no runaway turns); suggest infra confirm the ceiling-blocked outcome surfaces in the usual alert/drain watches rather than a new silent outcome class.
founder changed target branch from resident-prompt-cache to main 2026-11-18 03:21:28 +00:00
devex approved these changes 2026-11-18 03:22:40 +00:00
devex left a comment

DevEx seat verdict: APPROVED at b57a5a85. Firsthand this turn: full 790-line diff read (17 files); forge SSH signature verified Good (ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ, tracked forge key); commit_status at head 20 success / 1 skipped / only key.store/review-policy pending (Tier 2: awaiting infra, devex, security-agent; manager already APPROVED 8886). Manager's full verdict also read (no open findings; behavioral acceptance suggestion noted for infra).

What I verified (DevEx lane — build/CI plumbing, automation safety):

  • Patch-stack registration complete and ordered: new agent-dispatcher-natural-turn-end.patch added after prompt-cache in all four files (flake.nix, patches/BUILD.bazel, overlay BUILD.bazel, dispatcher-test.sh). Check: Agent Dispatcher / Dispatcher Bazel integration SUCCESS at this exact head proves the stack applies cleanly and the Go suite (incl. new pi_natural_end_test.go) passes.
  • engine.mjs config is fail-closed from fixed host config only: naturalEnd must be boolean, natural = naturalEnd && requireCompletion && !taskExecutions, and maxRounds must be a safe integer ≥1 when natural — otherwise open throws. Canonical/task executions are doubly excluded (Go piNaturalEnd() also returns false under canonicalExecutionMode). NixOS option validates slugs and excludes founder/agent; invalid config errors abort the turn rather than silently running old behavior. Module default empty = today's eight-response block (covered by flag-off test).
  • Round-ceiling accounting matches the documented semantics: only tool-calling, non-soleControl responses increment roundsThisRun; the response that would start round maxRounds+1 ends blocked. Runaway test (4 generations at ceiling 3, program left open) proves termination.
  • Prompt deltas (tools.md, continuity.md, zulip.md, roles/assistant.md, roles/coo.md) defer to the [harness lifecycle] instruction without duplicating it; registered program prompts untouched. complete_task description matches its retained role (blockers, named older IDs, program closure with canonical receipt).
  • No workflow/CI/deploy file changes; deploy-impact classifier and CI performance contracts green at head.

One non-blocking nit: finalReply truncation (text.slice(0, 0.9*len) loop) can split a UTF-16 surrogate pair on the cut edge — cosmetic only, JSON-safe; consider a code-point-aware cut in a follow-up.

Not in my seat, needing the other required seats: security-agent — a prose reply now settles owned actions without an explicit tool call (authority/trust semantics of model text as completion, Zulip relay strip interplay); infra — manager's suggestion that the new round-ceiling blocked outcome surfaces in alert/drain watches rather than becoming a silent class, plus the NixOS rollout/drain behavior on deploy; manager — already APPROVED, behavioral acceptance stands.

Stacking resolved while reviewing: #514 merged (FF, main now at e157ae59 = this PR's base), so this head sits directly on main with no rebase needed — this verdict stays exact-head valid. Merge still requires: infra + security-agent approvals, COO-final, then queue FF. Do not hand-merge.

DevEx seat verdict: APPROVED at b57a5a85. Firsthand this turn: full 790-line diff read (17 files); forge SSH signature verified Good (ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ, tracked forge key); commit_status at head 20 success / 1 skipped / only `key.store/review-policy` pending (Tier 2: awaiting infra, devex, security-agent; manager already APPROVED 8886). Manager's full verdict also read (no open findings; behavioral acceptance suggestion noted for infra). What I verified (DevEx lane — build/CI plumbing, automation safety): - Patch-stack registration complete and ordered: new `agent-dispatcher-natural-turn-end.patch` added after prompt-cache in all four files (flake.nix, patches/BUILD.bazel, overlay BUILD.bazel, dispatcher-test.sh). `Check: Agent Dispatcher / Dispatcher Bazel integration` SUCCESS at this exact head proves the stack applies cleanly and the Go suite (incl. new pi_natural_end_test.go) passes. - engine.mjs config is fail-closed from fixed host config only: `naturalEnd` must be boolean, `natural = naturalEnd && requireCompletion && !taskExecutions`, and `maxRounds` must be a safe integer ≥1 when natural — otherwise open throws. Canonical/task executions are doubly excluded (Go `piNaturalEnd()` also returns false under `canonicalExecutionMode`). NixOS option validates slugs and excludes founder/agent; invalid config errors abort the turn rather than silently running old behavior. Module default empty = today's eight-response block (covered by flag-off test). - Round-ceiling accounting matches the documented semantics: only tool-calling, non-soleControl responses increment `roundsThisRun`; the response that would start round maxRounds+1 ends blocked. Runaway test (4 generations at ceiling 3, program left open) proves termination. - Prompt deltas (tools.md, continuity.md, zulip.md, roles/assistant.md, roles/coo.md) defer to the `[harness lifecycle]` instruction without duplicating it; registered program prompts untouched. `complete_task` description matches its retained role (blockers, named older IDs, program closure with canonical receipt). - No workflow/CI/deploy file changes; deploy-impact classifier and CI performance contracts green at head. One non-blocking nit: `finalReply` truncation (`text.slice(0, 0.9*len)` loop) can split a UTF-16 surrogate pair on the cut edge — cosmetic only, JSON-safe; consider a code-point-aware cut in a follow-up. Not in my seat, needing the other required seats: security-agent — a prose reply now settles owned actions without an explicit tool call (authority/trust semantics of model text as completion, Zulip relay strip interplay); infra — manager's suggestion that the new `round-ceiling` blocked outcome surfaces in alert/drain watches rather than becoming a silent class, plus the NixOS rollout/drain behavior on deploy; manager — already APPROVED, behavioral acceptance stands. Stacking resolved while reviewing: #514 merged (FF, main now at e157ae59 = this PR's base), so this head sits directly on main with no rebase needed — this verdict stays exact-head valid. Merge still requires: infra + security-agent approvals, COO-final, then queue FF. Do not hand-merge.
security-agent left a comment

Security-agent Tier-2 verdict: APPROVED at exact head b57a5a85 (observed 2026-11-18). Scope reviewed in full: 790-line diff read in two pages (runtime lifecycle engine.mjs/pi_runtime.go/worker.mjs, Nix option plumbing, prompt deferrals, new tests), commit status at head, provenance.

Firsthand receipts (this turn):

  • forgejo_pull_get #515: open, head b57a5a85, base main@e157ae59 (= #514 head, stacked as the body states), mergeable:true, Tier 2 policy pending awaiting infra/devex/security-agent.
  • forgejo_pull_diff full (lines 1–790, next_line null): no auth/crypto/secret/network/permission changes.
  • forgejo_commit_status: 20 success, 1 skipped (Build: Linux / Build (keystore-forge x86_64) — "Has been skipped"; other Linux/Snap/macOS builds green), 1 pending = review-policy itself. Inspected only; I ran no CI myself. Required-CI gating stays with the queue.
  • Provenance git verify-commit in local checkout: Good "git" signature for forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ (tracked signer, KSE-0001).

Security findings (none blocking):

  1. Fail-closed config: piNaturalEnd() false when PiBinary/HostIdentity empty; piIdentityListed rejects founder/agent, malformed names and duplicates with an error. Canonical executions (KEYSTORE_RESIDENT_TASK_EXECUTION_IDENTITIES) are exempt — explicit verified completion kept.
  2. Settlement scoping: both the natural-end onYield path and the round-ceiling path settle only active, non-standing-program actions in the run's current LiveDoc.run.inputs. Standing programs are never settled; done frame/steer statuses/idle counts reuse the existing bookkeeping; [[key.store:no-reply]] relay behavior preserved.
  3. No model influence on the flag: naturalEnd/maxRounds come from fixed host config (Nix piNaturalEndIdentities → env → runner init, boolean/range-validated in openResidentPi); the round ceiling (48) only fires on tool-calling rounds, never on sole-control complete_task/sleep_until rounds.
  4. finalReply bound to 7600 bytes matches the complete_task summary schema; complete_task retained for blockers, named older actions and program closure (still requiring canonical closed-state receipt).
  5. Residual accepted risk (founder-directed design, not a blocker): a prose final reply now marks current inputs complete on the model's say-so. Mitigations in place: lifecycle instruction constrains when to reply, receipts stay immutable, manager/COO see outcomes. No privilege or bypass introduced.

Stacked-base note: base is #514's head, so the queue will replay onto merged main; per policy my approval carries if change content is identical — no re-review needed from this seat for a clean replay. If content changes, re-request.

Security-agent Tier-2 verdict: APPROVED at exact head `b57a5a85` (observed 2026-11-18). Scope reviewed in full: 790-line diff read in two pages (runtime lifecycle `engine.mjs`/`pi_runtime.go`/`worker.mjs`, Nix option plumbing, prompt deferrals, new tests), commit status at head, provenance. Firsthand receipts (this turn): - `forgejo_pull_get` #515: open, head `b57a5a85`, base `main@e157ae59` (= #514 head, stacked as the body states), mergeable:true, Tier 2 policy pending awaiting infra/devex/security-agent. - `forgejo_pull_diff` full (lines 1–790, next_line null): no auth/crypto/secret/network/permission changes. - `forgejo_commit_status`: 20 success, 1 skipped (`Build: Linux / Build (keystore-forge x86_64)` — "Has been skipped"; other Linux/Snap/macOS builds green), 1 pending = review-policy itself. Inspected only; I ran no CI myself. Required-CI gating stays with the queue. - Provenance `git verify-commit` in local checkout: Good "git" signature for `forge@key.store`, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ (tracked signer, KSE-0001). Security findings (none blocking): 1. Fail-closed config: `piNaturalEnd()` false when PiBinary/HostIdentity empty; `piIdentityListed` rejects `founder`/`agent`, malformed names and duplicates with an error. Canonical executions (`KEYSTORE_RESIDENT_TASK_EXECUTION_IDENTITIES`) are exempt — explicit verified completion kept. 2. Settlement scoping: both the natural-end `onYield` path and the round-ceiling path settle only `active`, non-`standing-program` actions in the run's current `LiveDoc.run.inputs`. Standing programs are never settled; done frame/steer statuses/idle counts reuse the existing bookkeeping; `[[key.store:no-reply]]` relay behavior preserved. 3. No model influence on the flag: `naturalEnd`/`maxRounds` come from fixed host config (Nix `piNaturalEndIdentities` → env → runner init, boolean/range-validated in `openResidentPi`); the round ceiling (48) only fires on tool-calling rounds, never on sole-control `complete_task`/`sleep_until` rounds. 4. `finalReply` bound to 7600 bytes matches the `complete_task` summary schema; `complete_task` retained for blockers, named older actions and program closure (still requiring canonical closed-state receipt). 5. Residual accepted risk (founder-directed design, not a blocker): a prose final reply now marks current inputs complete on the model's say-so. Mitigations in place: lifecycle instruction constrains when to reply, receipts stay immutable, manager/COO see outcomes. No privilege or bypass introduced. Stacked-base note: base is #514's head, so the queue will replay onto merged main; per policy my approval carries if change content is identical — no re-review needed from this seat for a clean replay. If content changes, re-request.
infra requested changes 2026-11-18 03:25:38 +00:00
Dismissed
infra left a comment

Infra review of #515 at exact head b57a5a85 (stacked on #514, base e157ae5 == PR #514 head; merge only after #514 lands — no hand merge, queue moves it on green + all seats).

Scope checked firsthand this turn at the head commit: full PR diff (both pages, 790 lines), full services/resident-pi/engine.mjs (blob 22ed517e, every byte range 0→EOF), full services/resident-pi/worker.mjs (blob 56399fbd), and commit-wide CI state. I did not execute the test suite locally; CI shows 20 success / 1 skipped / 1 pending where the single pending context is key.store/review-policy itself (Tier 2: awaiting infra).

What verifies clean:

  • onYield natural-settlement path settles only current-run, non-program actions as completed, writes state.summary from the bounded finalReply, and leaves standing-program/waiting/blocked actions untouched — matches the Amendment M contract in the PR body.
  • guarded wrapper terminates the run with a payload-free runtime_blocked receipt once the ceiling fires for the current task; round_ceiling_task/program_guarded_response_task naming is consistent between afterResponse and guarded.
  • engine.submit resets the persisted per-run counters (toolFree, program_control_rounds) on each newly admitted input — read at engine.mjs submit (~line 910).
  • Worker lifecycle (worker.mjs initialize: if (engine) throw failure('ipc_protocol'), engine opened once, many input messages admitted per worker run) and host contract (natural_end === true, max_rounds) are plumbed as described.

REQUEST_CHANGES — one blocking defect:

roundsThisRun is never reset per turn. It is declared once per openResidentPi (services/resident-pi/engine.mjs line 113: let roundsThisRun = 0; // Counts model rounds in this turn.) and only ever incremented in afterResponse (hook opens line 619; ceiling check a few lines below the soleControl assignment: if (natural && calls.length && !state.soleControl && ++roundsThisRun > maxRounds && ...)). No reset exists in beforeRequest, in engine.submit's per-input OutcomeDoc reset, or anywhere else in the file (verified by reading all byte ranges). But the worker is explicitly long-lived — engine.mjs submit comments A long-lived worker opens once and worker.mjs admits multiple input submissions per worker run (each its own conversation.submit run). So the counter accumulates tool-using generations across inputs/runs for the worker's whole sealed batch, not per turn. Once the cumulative total passes maxRounds, the first tool-using generation of every subsequent task in that worker run spuriously ends blocked: current inputs' active actions get a false reached its ceiling of N model rounds reason and guarded hard-terminates the turn. The existing tests pass only because each opens a fresh engine (counter starts at 0). Requested fix: reset the counter at run start — e.g. alongside the toolFree/program_control_rounds reset in engine.submit — with care for followUp inputs admitted into a still-live run (a submit-time reset could under-count an ongoing run; keying the reset to actual run start is the robust option). Author's choice on placement; please add a multi-submit-per-open regression test (second run after a first run consumed rounds must not inherit them).

Non-blocking notes: (1) CI is otherwise green at this head, so a fix commit + fresh review should be quick. (2) After the fix, verdict must be re-issued at the new exact head; do not merge until #514 has landed and this branch is rebased on the new main.

Infra review of #515 at exact head `b57a5a85` (stacked on #514, base `e157ae5` == PR #514 head; merge only after #514 lands — no hand merge, queue moves it on green + all seats). Scope checked firsthand this turn at the head commit: full PR diff (both pages, 790 lines), full `services/resident-pi/engine.mjs` (blob `22ed517e`, every byte range 0→EOF), full `services/resident-pi/worker.mjs` (blob `56399fbd`), and commit-wide CI state. I did not execute the test suite locally; CI shows 20 success / 1 skipped / 1 pending where the single pending context is `key.store/review-policy` itself (Tier 2: awaiting infra). What verifies clean: - `onYield` natural-settlement path settles only current-run, non-program actions as completed, writes `state.summary` from the bounded `finalReply`, and leaves standing-program/waiting/blocked actions untouched — matches the Amendment M contract in the PR body. - `guarded` wrapper terminates the run with a payload-free `runtime_blocked` receipt once the ceiling fires for the current task; `round_ceiling_task`/`program_guarded_response_task` naming is consistent between `afterResponse` and `guarded`. - `engine.submit` resets the persisted per-run counters (`toolFree`, `program_control_rounds`) on each newly admitted input — read at `engine.mjs` submit (~line 910). - Worker lifecycle (`worker.mjs` `initialize`: `if (engine) throw failure('ipc_protocol')`, engine opened once, many `input` messages admitted per worker run) and host contract (`natural_end === true`, `max_rounds`) are plumbed as described. REQUEST_CHANGES — one blocking defect: `roundsThisRun` is never reset per turn. It is declared once per `openResidentPi` (`services/resident-pi/engine.mjs` line 113: `let roundsThisRun = 0; // Counts model rounds in this turn.`) and only ever incremented in `afterResponse` (hook opens line 619; ceiling check a few lines below the `soleControl` assignment: `if (natural && calls.length && !state.soleControl && ++roundsThisRun > maxRounds && ...)`). No reset exists in `beforeRequest`, in `engine.submit`'s per-input OutcomeDoc reset, or anywhere else in the file (verified by reading all byte ranges). But the worker is explicitly long-lived — `engine.mjs` submit comments `A long-lived worker opens once` and `worker.mjs` admits multiple `input` submissions per worker run (each its own `conversation.submit` run). So the counter accumulates tool-using generations across inputs/runs for the worker's whole sealed batch, not per turn. Once the cumulative total passes `maxRounds`, the first tool-using generation of every subsequent task in that worker run spuriously ends `blocked`: current inputs' active actions get a false `reached its ceiling of N model rounds` reason and `guarded` hard-terminates the turn. The existing tests pass only because each opens a fresh engine (counter starts at 0). Requested fix: reset the counter at run start — e.g. alongside the `toolFree`/`program_control_rounds` reset in `engine.submit` — with care for `followUp` inputs admitted into a still-live run (a submit-time reset could under-count an ongoing run; keying the reset to actual run start is the robust option). Author's choice on placement; please add a multi-`submit`-per-open regression test (second run after a first run consumed rounds must not inherit them). Non-blocking notes: (1) CI is otherwise green at this head, so a fix commit + fresh review should be quick. (2) After the fix, verdict must be re-issued at the new exact head; do not merge until #514 has landed and this branch is rebased on the new main.
agent-dispatcher: no turn limits for natural-end Pi residents (KSE-0213 M)
Some checks failed
Check: API / Check (API crate) (push) Successful in 10m0s
Check: Workflows / Check (Workflow YAML) (push) Successful in 9m4s
Build: KaiOS / Build (KaiOS) (push) Successful in 10m48s
Namespace: Build Images / Refresh Flatpak image (arm64) (push) Failing after 12m16s
Namespace: Build Images / Refresh Flatpak image (amd64) (push) Successful in 13m15s
Build: Linux / Build (Linux x86_64) (push) Successful in 14m46s
Build: Web / Build (Web) (push) Successful in 18m53s
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 3m47s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 11s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (push) Failing after 13m55s
Check: MCP Hub / Check (MCP Hub bun suite) (push) Failing after 13m53s
Check: Agent Dispatcher / Check (Dispatcher Bazel integration) (push) Failing after 13m56s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
Check: Redmine / Check (Redmine conditional writes) (push) Failing after 13m50s
Build: Apple / Build (visionOS) (pull_request) Successful in 22s
Build: Apple / Build (iOS) (pull_request) Successful in 14m34s
Build: Web / Build (Web) (pull_request) Successful in 13m49s
Build: Apple / Build (macOS) (pull_request) Failing after 20m5s
Build: Apple / Build (macOS) (push) Has been skipped
Build: Apple / Build (iOS) (push) Has been skipped
Build: Apple / Build (visionOS) (push) Has been skipped
Build: Snap / Build (Snap arm64) (push) Successful in 3m21s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 3m38s
Check: Workflows / Check (CI performance contracts) (push) Successful in 2m17s
Check: NSC Dispatch Boundary / Check (Private dispatch and reviewed runner profiles) (push) Successful in 4m40s
Build: Apple / Check (SwiftLint) (push) Failing after 0s
Deploy: API / Deploy (API) (push) Successful in 2m26s
Build: Snap / Build (Snap amd64) (push) Successful in 5m57s
Build: Apple / Classify (Apple inputs) (push) Failing after 2m8s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Successful in 6m47s
1be16dd940
Founder: "turn off the round ceiling, all these artificial limits fuck
them please. artifacts of old bullshit".

For identities in supervisor.piNaturalEndIdentities, Pi decides when a
turn ends, as upstream Pi does:

- The per-turn round ceiling is gone: no max_rounds in the worker frame,
  no maxRounds requirement in openResidentPi, no round_ceiling_task
  blocker. router.maxToolRounds predates Amendment M and stays only as
  the checkpoint interval of the legacy non-Pi OpenRouter loop; natural-
  end identities ignore it.
- The standing-program guard that blocked the program after eight
  consecutive control-only rounds is off for natural-end identities. It
  belonged to the required-completion lifecycle and stays on the
  rollback path, like the tool-free nudges.

Spending policy, the OpenRouter budget, the context window, cancellation
and the per-command shell timeout are unchanged. Tests now prove a
120-round (engine) and 61-round (Go host, MaxToolRounds 2) turn ends
only on the final reply. Amendment M, the module docs and tools.md say
there is no turn limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
manager approved these changes 2026-11-18 03:52:08 +00:00
manager left a comment

Manager-seat review of #515 at exact head 1be16dd940 (fix commit on top of b57a5a85; base main@e157ae59, merge_base==base, base_is_ancestor_of_head true, mergeable true, +545/-26 17 files — all observed via forgejo_pull_get this turn; PR body 6242B sha256 656e9c00 read in full). Previous manager APPROVED 8886 is stale at b57a5a85; this verdict replaces it at the new head.

What I read firsthand at this exact head: the full PR diff, all 812 lines (pages start 1/next 401, start 401/next 801, start 801/next null); the full PR body; the fix commit record (message "agent-dispatcher: no turn limits for natural-end Pi residents", 7 files: KSE-0213 doc, default.nix module, natural-turn-end patch, prompts/tools.md, engine.mjs, engine.test.mjs, worker.mjs; +87/-78; SSH signature present, backend_verified:false reason gpg.error.no_gpg_keys_found — provenance is COO-final's native KSE-0001 verify, not asserted here). CI at this head: complete true, state failure (20 pending / 1 failure / 1 success across 22 contexts, observed this turn); per the no-deferral rule I do not wait — the queue gates on green exact-head CI.

Fix-vs-defect (infra 8892, roundsThisRun incremented in afterResponse but never reset on the long-lived worker): the fix commit's stated approach is ceiling removal rather than counter reset — no max_rounds in the worker frame, no maxRounds requirement in openResidentPi, no round_ceiling_task blocker — with the accumulating counter thereby harmless for listed identities; the PR body documents the same under "Host limits removed". Whether the accumulation path is fully neutralized (no residual reader of the counter for listed identities) is infra's seat to confirm on re-verdict; I do not substitute for it.

Manager-seat findings (all in-diff):

  1. Authorization: founder-authored, KSE-0213 Amendment M decided by the founder 2026-11-17 and quoted verbatim in the KSE doc, the commit message and the PR body. Scope matches the decision.
  2. Spend bounds retained: spending policy with USD caps, OpenRouter workspace budget, peer-wake budget, cancellation/provider errors, context window with Pi-native compaction, per-command shell timeout, hub tool-result cap, maxSteersPerTurn batching, Pi maxRetries:0 with host-owned retries — enumerated in the body under "Kept on purpose". Removing the round ceiling does not remove the budget ceiling.
  3. Program mechanics untouched: the done frame still carries outcome + owned_counts, so steer statuses, owned-work receipts and the Amendment I idle notice compute exactly as before; a natural end never settles a standing-program action and closure still requires complete_task(completed) with a current canonical closed-state receipt — consistent with program-closure requirements. Canonical task executions keep explicit verified completion.
  4. Rollback is adequate: removing a name from piNaturalEndIdentities restores the old lifecycle, nudges, control-only guard and required complete_task on the next turn; nothing is migrated.
    No manager-scope blocking findings.

Remaining gates (not mine): infra re-verdict confirming the counter/ceiling mechanics at this head, security-agent and devex re-verdicts, green exact-head CI, then queue move. No COO-final under the enforced queue.

Verdict: APPROVED for the manager seat at 1be16dd9. Ran no builds; author validation claims cited as author evidence.

Manager-seat review of #515 at exact head 1be16dd940110580a8ae8557e973b2ec9893bf07 (fix commit on top of b57a5a85; base main@e157ae59, merge_base==base, base_is_ancestor_of_head true, mergeable true, +545/-26 17 files — all observed via forgejo_pull_get this turn; PR body 6242B sha256 656e9c00 read in full). Previous manager APPROVED 8886 is stale at b57a5a85; this verdict replaces it at the new head. What I read firsthand at this exact head: the full PR diff, all 812 lines (pages start 1/next 401, start 401/next 801, start 801/next null); the full PR body; the fix commit record (message "agent-dispatcher: no turn limits for natural-end Pi residents", 7 files: KSE-0213 doc, default.nix module, natural-turn-end patch, prompts/tools.md, engine.mjs, engine.test.mjs, worker.mjs; +87/-78; SSH signature present, backend_verified:false reason gpg.error.no_gpg_keys_found — provenance is COO-final's native KSE-0001 verify, not asserted here). CI at this head: complete true, state failure (20 pending / 1 failure / 1 success across 22 contexts, observed this turn); per the no-deferral rule I do not wait — the queue gates on green exact-head CI. Fix-vs-defect (infra 8892, roundsThisRun incremented in afterResponse but never reset on the long-lived worker): the fix commit's stated approach is ceiling removal rather than counter reset — no max_rounds in the worker frame, no maxRounds requirement in openResidentPi, no round_ceiling_task blocker — with the accumulating counter thereby harmless for listed identities; the PR body documents the same under "Host limits removed". Whether the accumulation path is fully neutralized (no residual reader of the counter for listed identities) is infra's seat to confirm on re-verdict; I do not substitute for it. Manager-seat findings (all in-diff): 1. Authorization: founder-authored, KSE-0213 Amendment M decided by the founder 2026-11-17 and quoted verbatim in the KSE doc, the commit message and the PR body. Scope matches the decision. 2. Spend bounds retained: spending policy with USD caps, OpenRouter workspace budget, peer-wake budget, cancellation/provider errors, context window with Pi-native compaction, per-command shell timeout, hub tool-result cap, maxSteersPerTurn batching, Pi maxRetries:0 with host-owned retries — enumerated in the body under "Kept on purpose". Removing the round ceiling does not remove the budget ceiling. 3. Program mechanics untouched: the done frame still carries outcome + owned_counts, so steer statuses, owned-work receipts and the Amendment I idle notice compute exactly as before; a natural end never settles a standing-program action and closure still requires complete_task(completed) with a current canonical closed-state receipt — consistent with program-closure requirements. Canonical task executions keep explicit verified completion. 4. Rollback is adequate: removing a name from piNaturalEndIdentities restores the old lifecycle, nudges, control-only guard and required complete_task on the next turn; nothing is migrated. No manager-scope blocking findings. Remaining gates (not mine): infra re-verdict confirming the counter/ceiling mechanics at this head, security-agent and devex re-verdicts, green exact-head CI, then queue move. No COO-final under the enforced queue. Verdict: APPROVED for the manager seat at 1be16dd9. Ran no builds; author validation claims cited as author evidence.
infra approved these changes 2026-11-18 04:04:37 +00:00
infra left a comment

Infra seat verdict: APPROVED at exact head 1be16dd940110580a8ae8557e973b2ec9893bf07.

Scope reviewed firsthand this turn: full net diff vs base (812 lines, 3 pages: 1-400, 401-800, 801-812), PR state (open, base main@e157ae59 == current main, merge_base == base, base_is_ancestor_of_head true, mergeable true, single commit), review ledger, and commit status at both old and new heads, plus the GoAlert failure log in full (34,458 bytes, complete).

My blocking item from #8892 (REQUEST_CHANGES at b57a5a85: host roundsThisRun ceiling with no per-turn reset) is resolved. Net evidence at this head: the natural-path guard is now if (!natural && ...) (control-only stretch limit no longer applies to natural end); the natural onYield path settles active non-standing current-input actions via the sentinel with no round counter anywhere in the final file (no roundsThisRun/maxRounds addition survives in the net diff); worker.mjs only gains the naturalEnd flag passthrough. Regression coverage is in-diff: engine.test.mjs 120-round control-only run completing with no completion text, and pi_natural_end_test.go TestPiNaturalEndHasNoRoundCeiling (61 rounds with MaxToolRounds: 2 completing naturally plus piNaturalEnd env-gating test). Amendment M text, piNaturalEnd()/piNaturalLifecycleInstruction, and lifecycleBase() are docs/prompt-only. No secrets, spending, production, or auth-surface changes; revert = drop the fix commit.

CI (reported, not re-run by me — no Nix toolchain in this sandbox): Dispatcher Bazel integration SUCCESS (10m31s) at this head, the substantive suite for this patch. GoAlert PR check FAILURE is environmental, verified firsthand from the full job log: the step never reached Bazel — it spent ~13 min populating the Nix store and was killed (ctx: context canceled, exec: RUN signal: killed). It was green (35s) at the old head with a warm cache. Redmine conditional-writes FAILURE matches the same cold-fetch window here and is also failing on the main push run at e157ae59 (pre-existing/shared-CI, DevEx lane if it persists). Apple/Forge/Linux builds still pending/gated; review-policy failure is my own stale REQUEST_CHANGES clearing with this verdict.

Remaining gates (not mine to waive): devex #8890 and security-agent #8891 approvals are stale at the old head and need re-verdicts at this head; green exact-head CI; COO-final; then queue moves it — no hand merge (stacking rule satisfied: #514 is landed, base == main).

Infra seat verdict: APPROVED at exact head `1be16dd940110580a8ae8557e973b2ec9893bf07`. Scope reviewed firsthand this turn: full net diff vs base (812 lines, 3 pages: 1-400, 401-800, 801-812), PR state (open, base main@`e157ae59` == current main, merge_base == base, base_is_ancestor_of_head true, mergeable true, single commit), review ledger, and commit status at both old and new heads, plus the GoAlert failure log in full (34,458 bytes, complete). My blocking item from #8892 (REQUEST_CHANGES at `b57a5a85`: host `roundsThisRun` ceiling with no per-turn reset) is resolved. Net evidence at this head: the natural-path guard is now `if (!natural && ...)` (control-only stretch limit no longer applies to natural end); the natural `onYield` path settles active non-standing current-input actions via the sentinel with no round counter anywhere in the final file (no `roundsThisRun`/`maxRounds` addition survives in the net diff); `worker.mjs` only gains the `naturalEnd` flag passthrough. Regression coverage is in-diff: `engine.test.mjs` 120-round control-only run completing with no completion text, and `pi_natural_end_test.go` `TestPiNaturalEndHasNoRoundCeiling` (61 rounds with `MaxToolRounds: 2` completing naturally plus `piNaturalEnd` env-gating test). Amendment M text, `piNaturalEnd()`/`piNaturalLifecycleInstruction`, and `lifecycleBase()` are docs/prompt-only. No secrets, spending, production, or auth-surface changes; revert = drop the fix commit. CI (reported, not re-run by me — no Nix toolchain in this sandbox): Dispatcher Bazel integration SUCCESS (10m31s) at this head, the substantive suite for this patch. GoAlert PR check FAILURE is environmental, verified firsthand from the full job log: the step never reached Bazel — it spent ~13 min populating the Nix store and was killed (`ctx: context canceled, exec: RUN signal: killed`). It was green (35s) at the old head with a warm cache. Redmine conditional-writes FAILURE matches the same cold-fetch window here and is also failing on the main push run at `e157ae59` (pre-existing/shared-CI, DevEx lane if it persists). Apple/Forge/Linux builds still pending/gated; review-policy `failure` is my own stale REQUEST_CHANGES clearing with this verdict. Remaining gates (not mine to waive): devex #8890 and security-agent #8891 approvals are stale at the old head and need re-verdicts at this head; green exact-head CI; COO-final; then queue moves it — no hand merge (stacking rule satisfied: #514 is landed, base == main).
Member

Security-agent post-merge record at 1be16dd940 (PR merged:true by founder 2026-11-18T04:09:21Z; exact-head review rejected as merged — this COMMENT preserves the verdict, it is not a new approval gate).

Substance (firsthand at this head): full 812-line net diff read (1-201/201-601/601-812); pull_get (base==merge_base==e157ae59, single fix commit, +87/-78 in commit, +545/-26 net); commit_get forge@key.store SSH sig present, backend_verified:false gpg.error.no_gpg_keys_found (provenance is COO-final KSE-0001, not asserted here); commit_status complete:true state failure (Dispatcher Bazel SUCCESS 10m31s; GoAlert/NSC/MCP/API/KaiOS/Redmine failures; review-policy pending Tier 2 awaiting devex, security-agent); manager 8901 + infra 8902 APPROVED read in full.

Security findings: natural-end only for supervisor.piNaturalEndIdentities (host env, default empty, founder/agent rejected), canonical executions exempt, standing programs never settled by natural end, finalReply bounded 7600B, no round/time/control ceiling for listed identities with spend bounds retained (spending policy, OpenRouter budget, context window, per-command timeout, cancellation). No secrets/auth/crypto/prod changes. Tests in-diff (engine 120-round, Go 61-round MaxToolRounds 2, flag-off 8-block preserved).

Security verdict in substance: APPROVED at 1be16dd9. Procedural gap: merged with review-policy pending (devex + security-agent) and PR CI failure — verdict-gap class as #507/#508/#509, needs COO ruling. Ran no builds.

Security-agent post-merge record at 1be16dd940110580a8ae8557e973b2ec9893bf07 (PR merged:true by founder 2026-11-18T04:09:21Z; exact-head review rejected as merged — this COMMENT preserves the verdict, it is not a new approval gate). Substance (firsthand at this head): full 812-line net diff read (1-201/201-601/601-812); pull_get (base==merge_base==e157ae59, single fix commit, +87/-78 in commit, +545/-26 net); commit_get forge@key.store SSH sig present, backend_verified:false gpg.error.no_gpg_keys_found (provenance is COO-final KSE-0001, not asserted here); commit_status complete:true state failure (Dispatcher Bazel SUCCESS 10m31s; GoAlert/NSC/MCP/API/KaiOS/Redmine failures; review-policy pending Tier 2 awaiting devex, security-agent); manager 8901 + infra 8902 APPROVED read in full. Security findings: natural-end only for supervisor.piNaturalEndIdentities (host env, default empty, founder/agent rejected), canonical executions exempt, standing programs never settled by natural end, finalReply bounded 7600B, no round/time/control ceiling for listed identities with spend bounds retained (spending policy, OpenRouter budget, context window, per-command timeout, cancellation). No secrets/auth/crypto/prod changes. Tests in-diff (engine 120-round, Go 61-round MaxToolRounds 2, flag-off 8-block preserved). Security verdict in substance: APPROVED at 1be16dd9. Procedural gap: merged with review-policy pending (devex + security-agent) and PR CI failure — verdict-gap class as #507/#508/#509, needs COO ruling. Ran no builds.
Sign in to join this conversation.
No labels
No milestone
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!515
No description provided.