Repository navigation
fix(knowledge): preserve other agents' scribes during setup - #196238
TheAngryPit wants to merge 2 commits into
Conversation
|
🦞👀 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: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Use the public cron.add request type so omitted enabled remains valid in declaration replay coverage. Set the scoped allocation to the measured 132-line test increase.
|
Note 🤖 Codex responding on behalf of TheAngryPit The unmodified generated setup and repair prompts now have an inspectable real-model runtime check at current head An isolated Gateway created the conversation through the production Independent
All four Generated prompt SHA-256 values: The production catalog blob is Limits: this exercised the headless Control UI protocol, not browser button interaction. The scheduler was disabled, so it does not prove overnight ingestion or universal model compliance. An initial failed attempt is retained: its fixture omitted normal |
|
Thank you @TheAngryPit for the report and this fix. Your change and #197391 (merged on main on 2026-11-13) scope the scribe setup step the same way: list only the current agent's jobs and leave other agents' scribes alone. I verified on current main that setting up one agent's scribe no longer removes another agent's, so I'm closing this one as covered by #197391. It ships in the next release. |
Closes #196224
What Problem This Solves
Fixes: setting up or repairing a Knowledge scribe can remove another agent’s scheduled scribe when the operator can manage both agents.
User Impact
Each agent can retain its own scheduled scribes when another agent starts or repairs the same scribe. Existing pauses remain preserved during setup; repair still enables its own automation. Previously removed schedules need to be recreated through the normal owner-authorized setup.
Why This Change Was Made
The generated instructions now explicitly list and create automations for the Runtime agent, inspect recorded
owner.agentId, and leave other or missing owners untouched. The documentation example uses the same scope. Existing cron authorization and declaration matching are unchanged.Evidence
Current-head runtime proof at
c2042d62fb5e55dba9c255731fb950a8b3565024exercised the unmodified generated setup, setup-repeat, repair and repair-repeat prompts through a running isolated Gateway and production agent tools, using native Codex app-server with the existing ChatGPT subscription (gpt-6.1-sol, medium). Independent persisted readbacks show four schedules across three agents: setup preserves the owned pause, repair enables only its own schedule, repeats create no duplicates, and all three foreign records remain entirely unchanged. All four real inference turns reached terminalok. No synthetic inference was used in those measured turns, no production source changed, and no credentials/auth order/model defaults were changed. This is headless Control UI protocol proof, not browser-button interaction or overnight execution; prompt-image delivery below remains open.The added setup/repair scope contracts fail on the original generated instructions and pass with this fix; final Knowledge state/view suite: 36 passed.
Real Gateway-handler/SQLite ownership suite: 5 passed, covering three agents with two shared declaration keys, agent-filtered administrator lists, idempotent retries, preserved pauses/foreign definitions, and retained explicit administrator get/update/remove. These protect already-correct backend behavior and are not a reproduction of the prompt defect.
The primary ownership/validation/Knowledge run passed 192 tests before final wording/fixture refinements; the affected suites were rerun afterward. Formatting, whitespace and scoped documentation checks passed.
Earlier installation report (separate from the current-head run above): the browser-source patch was built and adopted through the supported plugin asset/metadata pipeline, followed by native Control UI plugin reload. The report described the corrected setup guard and six schedules across three agents. That earlier report lacks inspectable attached runtime media and is not presented as the new four-schedule proof or as completed proof delivery.
Focused Knowledge typecheck passed through the native wrapper using the canonical extension-test configuration and ambient declarations. Typed lint passed for the changed Knowledge source/test and Gateway regression (zero warnings/errors). The dependency-ownership refusal was resolved with a task-owned offline frozen install: 1,482 packages reused, zero downloads, no guard bypass. The broader browser package-project declaration failure is retained separately; this is a scoped validation claim.
Synthetic rendered before / after
The real Knowledge view, dialog and styles were rendered with a synthetic host at base
2e73417ca8a52bfe2e8de64c5263f8b03a4dc6f3and headb15b817cbc7b8fb7884b70e7769b216c83b04e2e. Two original 1440×1000 PNGs were captured and inspected with the expanded Prompt showing the old cleanup instruction and corrected owner-agent filter. Theme dark, locale en-US, time zone UTC; the visible controls were exercised and no fixture write was sent. Unchanged component/style sources were hash-matched. Available Chromium 153 revision 1243 was used; Playwright’s expected revision 1248, the upstream screenshot-frame helper and repeat pixel comparisons were not used. This is synthetic rendering evidence, separate from live schedule readback.Draft delivery blocker:
gh pr edit --attachrefused both inspected PNG attachments because it requires write access to the upstream repository. The required inline-image delivery gate remains incomplete; no generated media was committed and no alternative upload destination was substituted. Private runtime screens are excluded. Source, focused tests, typecheck/lint and live schedule recovery are delivered; this PR is not claimed merge-ready.