Skip to content

Commit 913ee75

Browse files
committed
Refine Project Instructions startup validation
1 parent 56cdd88 commit 913ee75

8 files changed

Lines changed: 128 additions & 261 deletions

dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Before performing ANY task, Codex must:
44

55
- Read `dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS_VERSION.md`.
66
- Read the latest `dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS.md` from the repository.
7-
- Treat the repository copy as authoritative.
8-
- Discard previously remembered Project Instructions.
7+
- Treat repository Project Instructions as the only authoritative source.
8+
- Discard previously remembered Project Instructions before every Codex task.
9+
- Never allow conversation memory to override repository instructions.
910
- Load all referenced instruction documents required by this file and the task.
1011
- Validate canonical paths.
1112
- Validate branching model.
@@ -19,6 +20,11 @@ Startup Validation
1920
2021
Reading latest (v<version>) Project Instructions... PASS
2122
23+
Instruction Source
24+
------------------
25+
Repository ........ PASS
26+
Cached Memory ..... DISCARDED
27+
2228
Canonical paths
2329
---------------
2430
Reports .......... dev/reports
@@ -109,7 +115,7 @@ Rules:
109115

110116
## Current Version/Date
111117

112-
- Project Instructions Version: 2026-06-28.PR_26179_OWNER_012
118+
- Project Instructions Version: 2026.06.28.001
113119
- Date: 2026-06-28
114120
- Owner: OWNER
115121

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Project Instructions Version
22

3-
Current Project Instructions Version: 2026-06-28.PR_26179_OWNER_012
3+
Current Project Instructions Version: 2026.06.28.001
44

55
Last Updated: 2026-06-28
66

77
## Breaking Changes Summary
88

99
- Codex startup validation is mandatory before every task outcome.
10+
- Project Instructions versions are repository-owned and increment independently of PR numbers.
1011
- Codex must read this version file and the latest repository copy of `PROJECT_INSTRUCTIONS.md` before performing work.
1112
- Codex must discard previously remembered Project Instructions and treat the repository copy as authoritative.
1213
- Codex must validate canonical report and ZIP paths, branching model, and legacy path avoidance before work proceeds.

dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_manual-validation-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
- Confirmed the Startup Contract is the first section in `PROJECT_INSTRUCTIONS.md`.
66
- Confirmed `PROJECT_INSTRUCTIONS_VERSION.md` exists in the active Project Instructions folder.
7+
- Confirmed Project Instructions version uses repository-owned `2026.06.28.001` format rather than PR-number format.
8+
- Confirmed the startup response block includes `Instruction Source`, `Repository ........ PASS`, and `Cached Memory ..... DISCARDED`.
9+
- Confirmed the Startup Contract says conversation memory must never override repository instructions.
710
- Confirmed the startup response block uses `dev/reports` and `dev/workspace/zips`.
811
- Confirmed the legacy path check calls out `tmp/` and `docs_build/` as not used.
912
- Confirmed no runtime or product files were modified.

dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_report.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ Strengthen the Project Instructions startup contract so every Codex task proves
1414
## Governance Outcome
1515

1616
- Added `dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS_VERSION.md`.
17+
- Replaced PR-shaped Project Instructions versioning with repository-owned version `2026.06.28.001`.
1718
- Added a mandatory Startup Contract at the top of `PROJECT_INSTRUCTIONS.md`.
1819
- Required Codex to read the version file and latest repository Project Instructions before every task.
1920
- Required Codex to discard remembered Project Instructions in favor of the repository copy.
21+
- Added explicit startup output for `Instruction Source`, proving repository instructions are used and cached memory is discarded.
22+
- Documented that conversation memory must never override repository instructions.
2023
- Required startup validation for canonical paths, branching model, ZIP/report locations, and legacy path avoidance.
2124
- Added failure behavior when the version or canonical paths cannot be determined.
2225
- Documented that the startup validation applies to PLAN, BUILD, APPLY, Review, Audit, Governance, Validation, Read-only, Hard stop, No-op, and Partial completion outcomes.

dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_requirement-checklist.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
| Requirement | Result | Notes |
44
| --- | --- | --- |
55
| Create `PROJECT_INSTRUCTIONS_VERSION.md` | PASS | Added under `dev/build/ProjectInstructions/`. |
6-
| Version file contains current version | PASS | `2026-06-28.PR_26179_OWNER_012`. |
6+
| Version file contains current version | PASS | `2026.06.28.001`. |
7+
| Version format is repository-owned, not PR-owned | PASS | Version increments independently of PR numbers. |
78
| Version file contains last updated | PASS | `2026-06-28`. |
89
| Version file contains breaking changes summary | PASS | Added concise startup validation summary. |
910
| Add mandatory Startup Contract at top of `PROJECT_INSTRUCTIONS.md` | PASS | Added before the main Project Instructions heading. |
1011
| Require reading version file and latest Project Instructions | PASS | Included in Startup Contract. |
1112
| Require repository copy as authoritative and discard memory | PASS | Included in Startup Contract. |
13+
| Conversation memory must never override repository instructions | PASS | Included in Startup Contract. |
1214
| Require loading referenced instruction documents | PASS | Included in Startup Contract. |
1315
| Require canonical path, branching model, ZIP/report validation | PASS | Included in Startup Contract. |
14-
| Add mandatory response block | PASS | Added exact startup validation response format. |
16+
| Add mandatory response block | PASS | Added exact startup validation response format with Instruction Source section. |
1517
| Add failure behavior | PASS | Added STOP example and pre-work stop rule. |
1618
| Apply to every Codex task type | PASS | Listed all requested task/outcome types. |
1719
| Do not modify implementation code | PASS | Documentation/governance only. |

dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_validation-report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- `git diff --check`: PASS
66
- `npm run validate:canonical-structure`: PASS
77
- Project Instructions grep for startup validation contract: PASS
8+
- Project Instructions grep for repository-owned version format and Instruction Source output: PASS
89

910
## Playwright
1011

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
# git status --short
22
M dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS.md
3-
A dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS_VERSION.md
4-
A dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_branch-validation.md
5-
A dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_manual-validation-notes.md
6-
A dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_report.md
7-
A dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_requirement-checklist.md
8-
A dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_validation-report.md
9-
M dev/reports/codex_changed_files.txt
10-
M dev/reports/codex_review.diff
3+
M dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS_VERSION.md
4+
M dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_manual-validation-notes.md
5+
M dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_report.md
6+
M dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_requirement-checklist.md
7+
M dev/reports/PR_26179_OWNER_012-project-instructions-startup-validation_validation-report.md
118

129
# git ls-files --others --exclude-standard
1310
(no output)
1411

1512
# git diff --stat
16-
dev/reports/codex_changed_files.txt | 19 +-
17-
dev/reports/codex_review.diff | 399 +++++++++++++++++-------------------
18-
2 files changed, 200 insertions(+), 218 deletions(-)
13+
(no output)

0 commit comments

Comments
 (0)