S00-013: Bound runner prompts with explicit required task input reads

Changes: Keep startup instructions and exact context packets inline while listing supplementary task inputs as mandatory project reads. Preserve root containment, missing-artifact guidance and budget failures. Add S21-006 exact UI context regression and cover claim/review budgets for all tasks; leave stdin delivery unchanged.
Validation: make check passed all 68 tests, including delayed UTF-8 stdin/EOF, timeout and terminal-transition checks. All 556 current prompts fit 80000 characters; largest 77693. git diff --check passed. Foundation checks do not establish application readiness.

Task: S00-013
Agent: auto-ci-cd-5f68f03dd33b
Role: ci-cd
Action: claim
Status: review

Task title: Bound oversized S21-006 runner context without truncating requirements
This commit is contained in:
wt committed 2026-10-15 01:40:32 +07:00
1 parent c28412ae8f
commit b1014f36c9
9 files changed
+114 -12

No files matched your search

@@ -0,0 +1,4 @@
Bound runner prompts with explicit required task input reads
Changes: Keep startup instructions and exact context packets inline while listing supplementary task inputs as mandatory project reads. Preserve root containment, missing-artifact guidance and budget failures. Add S21-006 exact UI context regression and cover claim/review budgets for all tasks; leave stdin delivery unchanged.
Validation: make check passed all 68 tests, including delayed UTF-8 stdin/EOF, timeout and terminal-transition checks. All 556 current prompts fit 80000 characters; largest 77693. git diff --check passed. Foundation checks do not establish application readiness.
@@ -0,0 +1,27 @@
# S00-013 executor evidence
Agent: auto-ci-cd-5f68f03dd33b; role: ci-cd; date: 2026-10-15.
Result: bounded context preparation; pending independent QA review.
Input: assigned task/card/context, NFR-007, workflow/role instructions, S00-012/013 blocker reports, accepted scope ADR and S00-001/S00-011 dependency evidence/reviews/handoffs. Output: one runner context correction and focused regressions. No contracts or stack decisions changed.
## Actual change and reasoning
S21-006 packet is 41660 characters and includes all 26 exact UI Kit sections. The old runner additionally embedded entire input documents, including the 11760-character stack ADR. Startup documents plus this packet and task inputs exceeded the 80000-character budget.
Runner now keeps assignment/startup instructions, exact packet, previous handoff and review evidence inline. Other task inputs are listed explicitly as required project reads before implementation/review, preserving their path annotations and missing-artifact blocker instruction. This also makes missing upstream inputs visible instead of silently omitting them. Project-root path checking remains enforced for referenced inputs. No text is sliced, no spec/packet is edited, and both packet and prompt budget guards remain active. The stdin transport implementation is untouched.
The S21-006 regression checks both executor and reviewer prompts, the whole exact packet, every verbatim UI Kit section, required input references and fresh-session/exit instructions. The all-current-prompts check now covers both actions for every task.
## Actual commands and results
- `python3 scripts/tasks.py resume --agent auto-ci-cd-5f68f03dd33b` and `show S00-013`: exit 0; already assigned in_progress, no repeat claim.
- `python3 scripts/tasks.py packet S00-013 --agent auto-ci-cd-5f68f03dd33b > /private/tmp/luma-S00-013-packet.md`: exit 0.
- Initial automation run of the first draft: exit 1, 23/24 tests passed; review prompt still exceeded budget when only upstream-annotated artifacts were deferred. Corrected by consistently referencing all supplementary task inputs, keeping startup instructions inline.
- Read-only Python enumeration using Runner with default config: exit 0; all 556 claim/review prompts for 278 tasks fit; largest S21-006 review 77693 characters, claim 77669 (agent auto-preview).
- `make check`: exit 0, 68 tests passed. Final rerun after project-root guard: exit 0, 68 tests in 16.124s; validated 278 tasks, 22 stages, 221 requirements, 211 allocated Web requirements, revision 15. Includes delayed large UTF-8 stdin/EOF delivery, timeout, terminal-transition, orchestration, snapshot and CLI checks. Log: temporary /private/tmp/luma-S00-013-check.log.
- `git diff --check`: exit 0; source diff inspected, limited to scripts/runner.py and tests/tooling/test_automation.py. Initial state/tasks.json change was coordinator claim metadata.
## Limits
These are foundation/harness checks, not app readiness or S00-002 acceptance. Agents must actually read the explicitly listed project inputs; references do not claim those artifacts were read automatically. Budget coverage describes current task/state artifacts; future larger evidence/handoffs still fail explicitly rather than truncate. No dependencies, credentials, production transports or immutable spec snapshots changed. Coordinator owns commit and the next fresh reviewer process.
+8
View File
@@ -0,0 +1,8 @@
# S00-013 handoff
Executor: auto-ci-cd-5f68f03dd33b (ci-cd).
Result: runner references supplementary task inputs as explicit required project reads, retaining startup instructions, exact context packet, handoff and review evidence inline. No truncation or budget increase; stdin transport unchanged.
Ready for QA review. Inspect scripts/runner.py and tests/tooling/test_automation.py, compare commit message/evidence, run `make check`. Focus on S21-006 executor/reviewer preserving all exact requirements and 26 UI Kit sections, explicit read-before-work/missing-artifact instructions, and all-current-prompts budget check (now both actions). All 556 current prompts fit 80000; maximum 77693. Final make check: 68 tests passed, exit 0, including delayed UTF-8 stdin, timeout and terminal-transition checks.
Evidence: state/evidence/S00-013-auto-ci-cd-5f68f03dd33b.md. Task-specific documents remain mandatory reads from disk. Future larger handoffs/evidence remain subject to fail-fast budgets. No app readiness or parent-task acceptance claimed. Reviewer must independently approve/reject; coordinator commits transition and launches next fresh session. Executor does not set done or continue S00-012.
+31 -4
View File
@@ -1,6 +1,6 @@
{
"schema_version": 1,
"revision": 14,
"revision": 16,
"tasks": {
"S00-001": {
"status": "done",
@@ -1150,10 +1150,14 @@
"handoff": "state/handoffs/S00-012.md"
},
"S00-013": {
"status": "todo",
"owner": null,
"status": "review",
"owner": "auto-ci-cd-5f68f03dd33b",
"external_wait": false,
"reason": null
"reason": null,
"started_at": "2026-10-14T18:37:37+00:00",
"updated_at": "2026-10-14T18:40:32+00:00",
"evidence": "state/evidence/S00-013-auto-ci-cd-5f68f03dd33b.md",
"handoff": "state/handoffs/S00-013.md"
}
},
"events": [
@@ -1324,6 +1328,29 @@
"from": "in_progress",
"to": "blocked",
"reason": "Required automation suite fails in existing all-prompts budget test: S21-006 exceeds even a diagnostic 90000-character prompt limit. This blocks verification of the stdin remediation; production limit remains 80000."
},
{
"revision": 15,
"at": "2026-10-14T18:37:37+00:00",
"action": "claim",
"task": "S00-013",
"agent": "auto-ci-cd-5f68f03dd33b",
"role": "ci-cd",
"from": "todo",
"to": "in_progress",
"reason": null
},
{
"revision": 16,
"at": "2026-10-14T18:40:32+00:00",
"action": "submit",
"task": "S00-013",
"agent": "auto-ci-cd-5f68f03dd33b",
"role": null,
"from": "in_progress",
"to": "review",
"reason": null,
"evidence": "state/evidence/S00-013-auto-ci-cd-5f68f03dd33b.md"
}
],
"retired_agents": [