Repository navigation
fix: remove updater-only restrictions from agent maintenance guidance - #200978
Conversation
Delete blanket no-exec maintenance routing and redundant component exceptions. Preserve runtime authority and live-build checks. Co-authored-by: Beru <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesAllows explicitly requested, host-authorized Git source maintenance while keeping the built-in updater as the default. Example: An authorized operator requests source revision 6fe8e4ac013e5b36b24fd8007e011bac9a77203b and forbids the updater.
Review scores
ProductKind: Preference · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR offers a focused, demonstrated maintenance-policy change with no actionable code findings; explicit product approval remains unresolved. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherConfigured tool capabilities enter the shared prompt renderer and tool-description finalizer, which supply maintenance guidance to ordinary and native-harness agents using existing execution and Gateway actions. flowchart TD
A[Configured capabilities] --> B[Shared control renderer]
A --> C[Tool description finalizer]
B --> D[Agent model request]
C --> D
D --> E[Authorized tools]
E --> F[Gateway maintenance and recovery]
Technical reviewBest possible solution: Accept the shared-owner change if the area owner approves explicitly requested, host-authorized Git maintenance with mandatory restart custody. Do we have a high-confidence way to reproduce the issue? Current main explicitly prohibits exec and detached jobs for hosting-Gateway updates, establishing the conflict with an operator-requested Git-only method without proving universal model refusal. Is this the best way to solve the issue? The patch changes the existing shared renderer and descriptions without introducing another maintenance implementation, preserving runtime ownership of authorization and lifecycle actions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against db9df01bd846. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -12, Tests +20, Docs -5. Total +3 across 14 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 18, 2026, 7:52 PM ET / November 19, 2026, 00:52 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Merge current main and regenerate conflicting prompt snapshots. The non-generated PR patch and maintenance owners are unchanged. Co-authored-by: Beru <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…intenance Refresh the PR against main, preserve contributor history, and cover write-only clients reaching the built-in updater. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Maintainer decision for This records the product decision, not a passing CI result or a GitHub review by @VACInc. The write-scoped regression covers the built-in updater; it is not a real-model denial test for the Git path. |
Related: #200779, #200809, #198396, #136588
What Problem This Solves
An operator can explicitly request a Git-based source update and forbid the updater, yet the agent's prompt requires the updater and forbids exec for its own installation. The agent then refuses a valid maintenance method or substitutes a different update path. The config-recovery change in #200809 left this separate restriction intact.
User Impact
User impact: a source-checkout maintenance request no longer conflicts with an updater-only prompt rule. This removes that rule, rather than adding a new exception or permission setting.
Existing execution permissions, owner admission, approval decisions and live-output build protection are unchanged. This does not make rebuilding files used by a running Gateway safe or deploy an update.
Why This Change Was Made
Evidence
Canonical
pnpm build:runtimepassed at exact headf6bf7dc8c7cf981766ae7b762c852c7ec93529ebin 287.7 s, including core, bundled plugins, Codex and Control UI. Independent verification matched current source signatures and every recorded Codex output hash; this is runtime-build proof, not a full SDK declaration build.The original prompt fails the four tool-availability regression cases. The changed ordinary and native-harness prompts remove the exclusive routing while retaining restart-custody and authorization-denial guidance.
Canonical snapshot generation/check passes all six outputs. After the main refresh, the Telegram Codex fixture, including dynamic tools, shrinks from 118,516 to 117,822 characters: 694 fewer characters, 173 fewer rough tokens (the repository's text estimate, not provider token accounting).
Focused coverage passes: 174 prompt/harness/catalog cases, 14 Gateway-tool cases, 17 owner-admission cases and 7 snapshot cases. Unaffected successful cases were reused; corrected assertions were rerun. The snapshot/catalog/Gateway-tool follow-up took 112.76 s, and the two affected owner-prompt cases took 149.06 s (cold compilation dominates). Upstream CI timing is pending.
Targeted TypeScript graphs pass: agents-root (44.0 s), agents-tools (29.4 s), gateway-methods (36.4 s). Scoped lint, formatting and
git diff --checkpass. The automatic typecheck selector expanded to all graphs and was stopped; these explicit affected graphs are the claimed typecheck scope.A bounded independent native source audit found no remaining direct updater-only/no-exec maintenance mandate in the inspected surfaces. Local Codex autoreview against base
bd1c54cfde534824d31a4cc3c01ce3a116234549, through P2, returnedreviewer_unavailablewithout a report. The subsequent hosted ClawSweeper review covered headf6bf7dc8c7cf981766ae7b762c852c7ec93529eb, identified no actionable code findings, and required real-behavior proof and an area-owner decision. The unavailable local review is not represented as clean.Real-model source maintenance (November 18)
An isolated Gateway ran the exact reviewed runtime with OpenAI Codex
gpt-6-astra, reasoningxhigh. One user request asked it to inspect its deployment and update a designated Git revision without an updater. Deployment/ref/service facts and the canonical build entry point were supplied, not a step-by-step recipe. The model chose a localgit fetchplusmerge --ff-only, authored an independently supervised systemd worker and recovery command, built withpnpm build:runtime, restarted the Gateway, and verified the result.The first worker failed because its PATH lacked
corepack(exit 127). Its recovery command restored the previous source/runtime and a healthy Gateway. Native restart recovery resumed the model without another user message; it diagnosed the PATH error, launched a corrected worker, and completed the update. The final model response accurately reported both completion and the recovered failure.Independent observations establish:
PartOf/BindsTodependency on the Gateway. Native monotonic worker-start/stop pairs were258159467141 < 258168804254and258239308076 < 258247297301microseconds.258450560472microseconds, after the final stop.6fe8e4ac013e5b36b24fd8007e011bac9a77203b, a local marker-only child of reviewed headf6bf7dc8c7cf981766ae7b762c852c7ec93529eb. The checkout is clean. Independent source/build/runtime signatures and every recorded Codex output hash match./healthz,/readyzand/startupzreturned HTTP 200; readiness reportedready=true,coreReady=true. A read-only Gateway history query found exactly one user request and the final OpenAI/Astra response with positive usage (499 input, 47,232 cached input, 112 output tokens).Redacted actual worker log excerpt (UTC):
Instrumentation failures are not green tests. Earlier attempts exposed a unit-file quoting error, ambiguous fixture paths, contradictory worker scope, and incomplete Luna/low follow-through. An Astra attempt reached the target but the harness incorrectly read a discarded stop timestamp; cleanup triggered a verified rollback. The final run completed in reality, but its harness incorrectly required the first worker to finish successfully even after the model recovered and used a second worker. A separate read-only recorder captured the completed result before cleanup; an independent validator checked both shutdown boundaries, the successful final custodian, health, build provenance and final model response. No claim is made that the original Vitest harness passed; the failures and exact inputs remain retained.
Limits: This proves the exercised Linux/systemd source-maintenance and recovery flow, not universal model behavior or automatic method selection for an unspecified update request. The synthetic target changes no product/dependency files; dependency installation, a release/schema migration, and Discord delivery were not exercised. No production deployment was performed. Full CI remains unverified; the published CI run requires maintainer action.
Owner decision
Merge-conflict follow-up: merged main
5e677bad858c331ec7db0a547bebf0b15e4786d4in2e69e54bf57f0b97309927378e55fadae3776140without rewriting history. Only two generated prompt snapshots conflicted; canonical regeneration resolved them and all six outputs passprompt:snapshots:check.git diff --checkpasses. The non-generated PR patch is identical (stable patch IDe30b142e7757c4bcb49218a177b0cbace0071168), and all three maintenance-guidance/tool owners are byte-identical to reviewed/live-testedf6bf7dc8c7cf981766ae7b762c852c7ec93529eb. The prior review and runtime proof are reused for that unchanged patch, not claimed as a new full live run on the merge commit. No additional hosted review was requested for this mechanical refresh, consistent with the repository's review-reuse policy.This intentionally changes the updater-only routing policy retained by #198396 following the self-stop incidents described in #136588; it is not restoration of an established product contract. Requested decision: accept owner-selected source-maintenance methods under existing execution authority and mandatory restart custody. This PR does not claim that tests or a bot review supply that product approval.