chore: retarget check-sync to the sourced worker contract; delete unconsumed in-repo prompt copies #487

Closed
opened 2026-08-09 06:27:56 +00:00 by igor · 1 comment
Collaborator

RESCOPED (the original bundling tripped the 1000-line runaway guard -- the prose deletions moved to their own ticket #488): this ticket is now ONLY the check-sync retarget and the #486 review nits. Do NOT delete any in-repo prompt file here.

Deliverables

  1. Retarget check-sync's sentinel gate to the document the worker actually receives: when the context cache is seeded, validate the sourced worker-contract body (via context_surface); when unseeded (CI containers), validate in-repo AGENTS.md and SAY SO in the output. The agent-*.sh existence checks run against whichever document was validated.
  2. Nits from #486's review: fix the atomicity comment in lib/context-source.sh (old generations do NOT survive the swap -- the find -exec rm -rf below deletes them); move bin/install.sh's set -a; . .env; set +a into the seeding block that needs it; set AGENT_STATE_DIR to the tmp dir in bin/test-feedback.sh as its comment already claims.

Out of scope

  • Deleting ANY in-repo prompt copy (AGENTS.md, bin/lib/*.md) -- that is #488, a human decision.
  • The negative wiring assertion (grep for bin/lib readers) -- it belongs with the deletions in #488.

Verification

  • make test green; check-sync passes in both modes (cache seeded locally, cache absent) and its output names which document it validated.
**RESCOPED (the original bundling tripped the 1000-line runaway guard -- the prose deletions moved to their own ticket #488):** this ticket is now ONLY the check-sync retarget and the #486 review nits. Do NOT delete any in-repo prompt file here. ## Deliverables 1. **Retarget check-sync's sentinel gate** to the document the worker actually receives: when the context cache is seeded, validate the sourced `worker-contract` body (via `context_surface`); when unseeded (CI containers), validate in-repo `AGENTS.md` and SAY SO in the output. The `agent-*.sh` existence checks run against whichever document was validated. 2. **Nits from #486's review:** fix the atomicity comment in `lib/context-source.sh` (old generations do NOT survive the swap -- the `find -exec rm -rf` below deletes them); move `bin/install.sh`'s `set -a; . .env; set +a` into the seeding block that needs it; set `AGENT_STATE_DIR` to the tmp dir in `bin/test-feedback.sh` as its comment already claims. ## Out of scope - Deleting ANY in-repo prompt copy (AGENTS.md, bin/lib/*.md) -- that is #488, a human decision. - The negative wiring assertion (grep for bin/lib readers) -- it belongs with the deletions in #488. ## Verification - `make test` green; check-sync passes in both modes (cache seeded locally, cache absent) and its output names which document it validated.
igor self-assigned this 2026-08-09 06:28:12 +00:00
igor added spent time 2026-08-09 06:39:53 +00:00
11 minutes 36 seconds
igor removed their assignment 2026-08-09 06:39:53 +00:00
igor self-assigned this 2026-08-09 06:41:21 +00:00
igor added spent time 2026-08-09 06:51:59 +00:00
10 minutes 34 seconds
igor removed their assignment 2026-08-09 06:51:59 +00:00
igor self-assigned this 2026-08-09 06:53:48 +00:00
Author
Collaborator

Scope exceeded: this branch reached 0 commits / 1288 non-test changed lines, over the per-issue runaway guard (10 commits / 1000 lines, excluding test files).

Files touched (first 30):

  • AGENTS.md
  • CLAUDE.md
  • bin/check-sync.sh
  • bin/ideation-pipeline.sh
  • bin/install.sh
  • bin/lib/feedback-directive.md
  • bin/lib/now-directive.md
  • bin/lib/review-directive.md
  • bin/lib/site-work-directive.md
  • bin/lib/sports-digest-directive.md
  • bin/lib/voice.md
  • bin/reading-pipeline.sh
  • bin/test-agents-security.sh
  • bin/test-context-source.sh
  • bin/test-review-directive.sh
  • bin/tick.sh
  • docs/agents-md-spec.md
  • docs/ai-writing-tells.md
  • docs/architecture.md
  • lib/context-source.sh
  • lib/http-reap.sh
  • lib/scope-gate.sh
  • lib/sports-digest.sh

Split this into smaller issues, then remove Status/Blocked and the next tick will re-claim what's left.

(Appended to the issue description above -- removing Status/Blocked re-queues the ticket with this context already in hand.)

Scope exceeded: this branch reached **0 commits / 1288 non-test changed lines**, over the per-issue runaway guard (10 commits / 1000 lines, excluding test files). Files touched (first 30): - AGENTS.md - CLAUDE.md - bin/check-sync.sh - bin/ideation-pipeline.sh - bin/install.sh - bin/lib/feedback-directive.md - bin/lib/now-directive.md - bin/lib/review-directive.md - bin/lib/site-work-directive.md - bin/lib/sports-digest-directive.md - bin/lib/voice.md - bin/reading-pipeline.sh - bin/test-agents-security.sh - bin/test-context-source.sh - bin/test-review-directive.sh - bin/tick.sh - docs/agents-md-spec.md - docs/ai-writing-tells.md - docs/architecture.md - lib/context-source.sh - lib/http-reap.sh - lib/scope-gate.sh - lib/sports-digest.sh Split this into smaller issues, then remove `Status/Blocked` and the next tick will re-claim what's left. _(Appended to the issue description above -- removing `Status/Blocked` re-queues the ticket with this context already in hand.)_
igor removed their assignment 2026-08-09 07:00:36 +00:00
igor self-assigned this 2026-08-09 07:03:31 +00:00
igor added spent time 2026-08-09 07:14:39 +00:00
10 minutes 39 seconds
igor removed their assignment 2026-08-09 07:14:39 +00:00
igor closed this issue 2026-08-09 07:31:34 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Total time spent: 32 minutes 49 seconds
igor
32 minutes 49 seconds
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
joshtronic/igor#487
No description provided.