Learn from missing task-context identity
Status: Ready
Article ID: 115
Truth label: Historical
Audience: Worker and prompt engineer
Reader outcome: Include stable task and project identity in execution prompts.
Related articles: 035, 036, 049
Target week: 46
Last verified: 2026-09-13
Technical reviewer: Codex incident evidence audit
Editorial reviewer: Codex editorial audit
Problem
Execution prompts could describe work without placing stable task and project identity in front of the body. The agent had less reliable context for logs, handoffs, repository naming, and related evidence.
Misleading success signal
Simple tasks still ran because the working directory and prose often implied the project. That success hid ambiguity in multi-project, resumed, or remotely routed work.
Evidence
Repository history records the task-context test group: task ID, project, and engine appear when present; explicit project name wins; identity-free shapes remain byte-compatible.
Correction
The prompt builder adds stable run identity before the task body while preserving legacy output when identity is absent. The project label is explicit instead of being inferred only from a path.
Mechanical prevention
Test full identity, explicit-name precedence, task-only identity, and legacy identity-free cases. Include task and project IDs in trace and result correlation, but never put run or bearer secrets in the prompt.
Current status
Current worker prompts include the supported identity context. Identity improves traceability but does not prove the worker has the correct checkout or path.
Current limits
Stable labels are metadata, not authorization, scope isolation, or repository identity proof. The task can still contain an incorrect project assignment.
Next lesson
Continue with The honest QA experiment.
Derivative map
- Weekly package: WEEK-46
- Long video: VIDEO-W46-LONG
- Shorts: SHORT-W46-PROBLEM, SHORT-W46-MECHANISM, SHORT-W46-WARNING
- Email: EMAIL-W46
- LinkedIn: LI-W46-A, LI-W46-B
- X: X-W46-A, X-W46-B
- Visual: VISUAL-W46
Review record
- Historical prompt gap and current identity behavior remain separate.
- Test cases trace to recorded repository evidence.
- Secrets are excluded from identity context.
- Identity, checkout, authorization, and scope limits remain explicit.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13