Skip to content

Commit 451a6b5

Browse files
committed
OWNER 010 tighten Project Instructions entrypoint
1 parent 882eff8 commit 451a6b5

14 files changed

Lines changed: 959 additions & 670 deletions
Lines changed: 81 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,182 +1,101 @@
1-
# Project Instructions Operating System
2-
3-
Bootstrap entry point: request this `PROJECT_INSTRUCTIONS.md` file directly.
4-
5-
`README.txt` is supporting context loaded through this index; wrappers must not require users to specify it separately.
6-
7-
This file is the root index for the append-first Project Instructions operating system under `dev/build/ProjectInstructions/`.
8-
9-
## Active Source
10-
11-
`dev/build/ProjectInstructions/` is the only active Project Instructions source.
12-
13-
Historical Project Instructions material outside this folder is deprecated reference material only and must not be used as an active source of governance.
14-
15-
## Required Bootstrap Entry
16-
17-
Only this file, `dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS.md`, is requested directly by the Codex Start-of-Day bootstrap.
18-
19-
All other active documents are loaded indirectly through references from this file.
20-
21-
Required indirect sources:
22-
- Project state: `dev/build/ProjectInstructions/PROJECT_STATE.md`
23-
- Repository folder placement SSoT: `dev/build/ProjectInstructions/addendums/canonical_repository_structure.md`
24-
- Codex bootstrap architecture: `dev/build/ProjectInstructions/addendums/codex_start_of_day_bootstrap.md`
25-
- Team instructions and backlog: `dev/build/ProjectInstructions/team_assignments/` and `dev/build/ProjectInstructions/backlog/BACKLOG_MASTER.md`
1+
# Project Instructions
262

273
## Purpose
284

29-
The Project Instructions operating system provides additive governance for:
30-
31-
- Codex start-of-day bootstrap loading
32-
- project state ownership
33-
- backlog ownership
34-
- team assignments
35-
- multi-team branch and scope rules
36-
- documentation ownership
37-
- repository directory ownership
38-
- Build Path status synchronization
39-
- tile overlay status behavior
40-
- deprecation workflow
41-
- contract and platform standards
42-
- archive and history preservation
43-
- recognized project instruction/reference files
44-
- environment governance
45-
- tool and gameplay contract governance
46-
47-
## Preservation
48-
49-
Existing Project Instructions outside `dev/build/ProjectInstructions/` remain preserved only as deprecated reference material. When guidance conflicts, active files under `dev/build/ProjectInstructions/` win unless OWNER explicitly approves a newer governance change.
50-
51-
## Folders
52-
53-
- `addendums/` contains additive governance rules.
54-
- `backlog/` contains the central backlog file, `BACKLOG_MASTER.md`.
55-
- `team_assignments/` contains current team assignment records.
56-
- `standards/` contains active contract, model, and platform standards.
57-
- `deprecation/` contains deprecation workflow documentation.
58-
- Retained reference material belongs under the repository root `dev/archive/` tree, not under `dev/build/dev/`.
59-
- History snapshots belong under `dev/archive/legacy-docs-build/ProjectInstructions/history/`.
60-
61-
## Single Source Of Truth Files
62-
63-
- `PROJECT_INSTRUCTIONS.md` owns the active Project Instructions entry point, index, and referenced load graph.
64-
- `PROJECT_STATE.md` owns current repository/team state metadata used by bootstrap summaries.
65-
- `addendums/canonical_repository_structure.md` owns repository folder placement and file-placement rules.
66-
67-
## Recognized Project Reference Files
68-
69-
`dev/build/ProjectInstructions/addendums/project_reference_files.md` defines additional valid project instruction/reference files that must be included in future Project Instructions reviews when present in `ProjectInstructions.zip`, the active project instruction directory, or the root archive reference tree.
70-
71-
## Documentation Ownership
72-
73-
`dev/build/ProjectInstructions/addendums/documentation_ownership.md` defines the active documentation ownership model:
74-
75-
- `dev/build/ProjectInstructions/` owns governance, team instructions, standards, and addendums.
76-
- `dev/build/pr/` owns PR workflow documents, templates, and examples.
77-
- `dev/reports/` owns generated reports and audits.
78-
- `dev/workspace/` owns generated non-report artifacts, repo-structured ZIPs, and local temporary workspace output.
79-
- root `dev/archive/` owns historical reference material only.
5+
`PROJECT_INSTRUCTIONS.md` is the only manual entry point for active Project Instructions.
806

81-
## Team Backlog, SOD, And EOD Governance
7+
Codex and future wrappers must request this file directly. All other Project Instructions documents are loaded indirectly through the references below.
828

83-
`dev/build/ProjectInstructions/addendums/team_backlog_sod_eod_standard.md` defines required Start of Day team briefings, End of Day team summaries, active team backlog fields, completion percentage update points, backlog-driven next PR selection, and official military team-name spelling.
9+
## Current Version/Date
8410

85-
## Canonical Governance Owners
11+
- Project Instructions Version: 2026-06-27.PR_26179_OWNER_010
12+
- Date: 2026-06-27
13+
- Owner: OWNER
8614

87-
When active guidance overlaps, use these canonical owner documents:
15+
## Required Read Order
8816

89-
- Codex Start-of-Day bootstrap architecture and loading rules: `dev/build/ProjectInstructions/addendums/codex_start_of_day_bootstrap.md`
90-
- Workflow and Product Owner testable completion: `dev/build/ProjectInstructions/addendums/pr_workflow.md`
91-
- START / WORK / END lifecycle, branch gates, mandatory hard stops, and EOD main lock: `dev/build/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`
92-
- Repository folder placement, directory ownership, final root standard, final `src/` layer standard, final `dev/` workspace standard, and restructure boundaries: `dev/build/ProjectInstructions/addendums/canonical_repository_structure.md`
93-
- Page-level Playwright organization and completion coverage: `dev/build/ProjectInstructions/addendums/test_structure_standardization.md`
94-
- API/environment model and `Browser -> API -> Database` rule: `dev/build/ProjectInstructions/addendums/environment_governance_model.md`
95-
- Environment variable, URL, R2 prefix, and feature flag configuration: `dev/build/ProjectInstructions/addendums/environment_configuration_standards.md`
96-
- Team backlog fields, completion percentages, and next logical PR ownership: `dev/build/ProjectInstructions/addendums/team_backlog_sod_eod_standard.md`
97-
- Team ownership and assignment routing: `dev/build/ProjectInstructions/team_assignments/team_ownership.md`
17+
1. Always read `dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS.md`.
18+
2. Always read `dev/build/ProjectInstructions/PROJECT_STATE.md`.
19+
3. Always read `dev/build/ProjectInstructions/repository/canonical_repository_structure.md`.
20+
4. For Start of Day, read `dev/build/ProjectInstructions/bootstrap/codex_start_of_day_bootstrap.md`.
21+
5. Load team, backlog, database, runtime, theme, or other specialist documents only when the current task requires them.
9822

99-
Other active addendums may summarize these rules, but they must point back to the canonical owner document and must not create a competing active rule.
23+
## Load Graph
10024

101-
## Environment Governance
25+
```text
26+
PROJECT_INSTRUCTIONS.md
27+
|-- PROJECT_STATE.md
28+
|-- repository/canonical_repository_structure.md
29+
|-- bootstrap/codex_start_of_day_bootstrap.md
30+
| `-- Start of Day only
31+
|-- team/backlog docs
32+
| `-- Start of Day, planning, or team-specific PRs only
33+
|-- database docs
34+
| `-- DB, DDL, DML, seed, or API persistence changes only
35+
|-- runtime docs
36+
| `-- runtime, API, or service changes only
37+
`-- theme docs
38+
`-- UI, theme, or page changes only
39+
```
10240

103-
`dev/build/ProjectInstructions/addendums/environment_governance_model.md` defines the official environment model, environment invariance rule, shared API/service contract rule, required Supabase/Postgres/R2 services, required R2 prefixes, and SQLite retired status.
41+
## When-To-Load Rules
10442

105-
`dev/build/ProjectInstructions/addendums/environment_configuration_standards.md` defines official `.env` file names, environment variable values, host/domain configuration, API URL configuration, R2 prefix configuration, and feature flag governance.
43+
- `PROJECT_INSTRUCTIONS.md`: always.
44+
- `PROJECT_STATE.md`: always.
45+
- `repository/canonical_repository_structure.md`: always.
46+
- `bootstrap/codex_start_of_day_bootstrap.md`: Start of Day only.
47+
- Backlog docs: Start of Day or planning only.
48+
- Database docs: DB, DDL, DML, seed, or API persistence changes only.
49+
- Runtime docs: runtime, API, or service changes only.
50+
- Theme docs: UI, theme, or page changes only.
51+
- Team docs: team-specific PRs only.
10652

107-
## Tool And Contract Governance
53+
## Stop Gates
10854

109-
`dev/build/ProjectInstructions/addendums/workspace_v2_playwright_gate.md` defines the Workspace Manager V2 Playwright validation gate.
55+
Stop before changing files when:
11056

111-
`dev/build/ProjectInstructions/addendums/samples2tools_adapter_guidance.md` defines the shared sample-to-tool launch and hydration guidance.
57+
- the current branch does not match the requested branch
58+
- the worktree is dirty and the request requires a clean start
59+
- the requested path does not fit `repository/canonical_repository_structure.md`
60+
- the request conflicts with active Project Instructions
61+
- the task would modify runtime code, production pages, database files, wrapper scripts, or repository folders outside the stated scope
62+
- a required source document is missing
63+
- validation fails
11264

113-
`dev/build/ProjectInstructions/addendums/koti_layout_contract.md` defines the King of the Iceberg layout data contract.
65+
## Execution Modes
11466

115-
`dev/build/ProjectInstructions/addendums/tool_mvp_stacked_pr_standard.md` defines the Creator-facing stacked PR standard for tool MVP work.
67+
- Owner: decisions, governance direction, standards.
68+
- Build PR: execute one scoped PR purpose, validate, report, package.
69+
- Continue: continue the current scoped branch or PR without expanding scope.
70+
- Review: findings, risks, recommendations only unless implementation is explicitly requested.
71+
- Challenge: identify contradictions, risks, or better alternatives.
72+
- Stop Gate: stop and report the reason and required correction.
11673

117-
`dev/build/ProjectInstructions/addendums/no_mock_repository_runtime_source.md` defines the Browser → API → Database product-data rule and mock repository technical debt boundary.
74+
For detailed execution-mode wording, load `dev/build/ProjectInstructions/addendums/assistant_execution_modes.md` only when mode interpretation is unclear.
11875

119-
## Codex Bootstrap Governance
76+
## Referenced Documents
12077

121-
`dev/build/ProjectInstructions/addendums/codex_start_of_day_bootstrap.md` defines Bootstrap Phrases, Bootstrap Responsibilities, Wrapper Responsibilities, Standard Bootstrap Report, loading rules, SSoT ownership, and the future wrapper direction for the phrase `Use Latest Project Instructions`.
122-
123-
## Standards
124-
125-
Active contract, model, and platform standards live under:
126-
127-
`dev/build/ProjectInstructions/standards/`
128-
129-
## Single Source and Main Lock Governance
130-
131-
`dev/build/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md` defines the single active Project Instructions source, canonical START / WORK / END branch lifecycle, EOD main lock, next-day reset, team branch creation gate, daily synchronization baseline, and mandatory hard stops.
132-
133-
## Merge Control
134-
135-
No PR in this operating system is merged without explicit owner approval.
136-
137-
## OWNER Governance
138-
139-
OWNER override wording:
140-
141-
`OWNER override approved: <reason>`
142-
143-
OWNER follows the same safety rules:
144-
- Team OWNER follows the same one-active-branch discipline as every team.
145-
- One active OWNER assignment at a time.
146-
- OWNER may override team locks, but may not silently delete, rewrite, or remove protected instructions.
147-
- OWNER override must be explicitly documented.
148-
149-
## Four-Team Ownership Alignment
150-
151-
The single authoritative four-team ownership definition is:
152-
153-
`dev/build/ProjectInstructions/team_assignments/team_ownership.md`
154-
155-
Use the `Current Four-Team Ownership Model` section there for team ownership, assignment routing, and cross-team scope checks.
156-
157-
Rules:
158-
- Teams pull backlog items only from their ownership area unless OWNER explicitly reassigns or splits the work.
159-
- Cross-team work requires OWNER approval and must identify the owning team for each PR.
160-
- Team start commands must remain aligned with this ownership model.
161-
162-
## Current Active Ownership Lanes
163-
164-
OWNER override approved.
165-
166-
The current active ownership lanes are:
167-
168-
- Team Alfa
169-
- Team Bravo
170-
- Team Charlie
171-
- Team Delta
172-
- Team Golf
173-
- Team OWNER
174-
175-
Migration note:
176-
Team Gamma is retired. Team Golf is the replacement active ownership lane.
177-
178-
Rules:
179-
- Do not rewrite historical PR references that mention Team Gamma.
180-
- Do not rename historical branches that contain Gamma.
181-
- Team Golf may own newly assigned work, review packets, cleanup, release, or OWNER-directed cross-team work.
182-
- Team Golf must not silently take backlog ownership from Alfa, Bravo, Charlie, or Delta; cross-team work requires OWNER approval.
78+
- Project state: `dev/build/ProjectInstructions/PROJECT_STATE.md`
79+
- Repository folder placement SSoT: `dev/build/ProjectInstructions/repository/canonical_repository_structure.md`
80+
- Codex Start-of-Day bootstrap: `dev/build/ProjectInstructions/bootstrap/codex_start_of_day_bootstrap.md`
81+
- Branch lifecycle: `dev/build/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`
82+
- PR workflow: `dev/build/ProjectInstructions/addendums/pr_workflow.md`
83+
- Team ownership: `dev/build/ProjectInstructions/team_assignments/team_ownership.md`
84+
- Team assignments: `dev/build/ProjectInstructions/team_assignments/TEAM_ASSIGNMENTS.md`
85+
- Backlog: `dev/build/ProjectInstructions/backlog/BACKLOG_MASTER.md`
86+
- Database docs: `dev/build/database/`
87+
- Runtime/API standards: `dev/build/ProjectInstructions/standards/`
88+
- Runtime/API governance: `dev/build/ProjectInstructions/addendums/environment_governance_model.md`
89+
- Theme/UI governance: `dev/build/ProjectInstructions/addendums/table_first_ui.md`
90+
- Documentation ownership: `dev/build/ProjectInstructions/addendums/documentation_ownership.md`
91+
- Artifact/reporting standard: `dev/build/ProjectInstructions/addendums/codex_artifact_and_reporting_standard.md`
92+
- Environment governance: `dev/build/ProjectInstructions/addendums/environment_governance_model.md`
93+
- Environment configuration: `dev/build/ProjectInstructions/addendums/environment_configuration_standards.md`
94+
- Active standards: `dev/build/ProjectInstructions/standards/`
95+
96+
## Single Source Of Truth Decisions
97+
98+
- `PROJECT_INSTRUCTIONS.md` owns the manual entry point, required read order, load graph, stop gates, execution modes, and pointers.
99+
- `PROJECT_STATE.md` owns machine-friendly project state metadata.
100+
- `repository/canonical_repository_structure.md` owns all folder placement and file-placement rules.
101+
- `bootstrap/codex_start_of_day_bootstrap.md` owns Start-of-Day bootstrap architecture.
Lines changed: 51 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,53 @@
11
# Project State
22

3-
Status: Active
4-
5-
Owner: OWNER
6-
7-
Version: 2026-06-27.PR_26179_OWNER_010
8-
9-
## Purpose
10-
11-
`PROJECT_STATE.md` is the single source of truth for current repository and team state metadata used by Codex Start-of-Day bootstrap summaries.
12-
13-
## Ownership
14-
15-
- `PROJECT_INSTRUCTIONS.md` owns the Project Instructions entry point and referenced load graph.
16-
- `PROJECT_STATE.md` owns current project state metadata.
17-
- `addendums/canonical_repository_structure.md` owns repository folder placement and file-placement rules.
18-
19-
## Current State Fields
20-
21-
Wrappers and Codex bootstrap summaries may report:
22-
23-
- Project State Version
24-
- Repository Version
25-
- Team
26-
- Branch
27-
- Worktree
28-
- Backlog Loaded
29-
- Additional Documents Loaded
30-
- Next Recommended PR
31-
32-
This file documents the state contract only. It does not implement wrapper behavior.
3+
```yaml
4+
project_state_version: "2026-06-27.PR_26179_OWNER_010"
5+
last_updated: "2026-06-27"
6+
current_main_commit: "40de767476d70cadfd1292c916844c2f31b6f185"
7+
repository_status:
8+
state: "active-owner-pr"
9+
current_pr: "PR_26179_OWNER_010-canonical-project-folder-instructions"
10+
required_start_branch: "main"
11+
required_start_sync: "main...origin/main == 0 0"
12+
project_instructions_version: "2026-06-27.PR_26179_OWNER_010"
13+
canonical_layout_version: "2026-06-27.PR_26179_OWNER_010"
14+
active_teams:
15+
- "Team OWNER"
16+
- "Team Alfa"
17+
- "Team Bravo"
18+
- "Team Charlie"
19+
- "Team Delta"
20+
- "Team Golf"
21+
latest_owner_pr: "PR_26179_OWNER_010-canonical-project-folder-instructions"
22+
latest_structure_pr: "PR_26179_OWNER_010-canonical-project-folder-instructions"
23+
current_valid_top_level_folders:
24+
- "account/"
25+
- "admin/"
26+
- "assets/"
27+
- "community/"
28+
- "company/"
29+
- "deploy/"
30+
- "dev/"
31+
- "docs/"
32+
- "games/"
33+
- "learn/"
34+
- "legal/"
35+
- "marketplace/"
36+
- "memberships/"
37+
- "owner/"
38+
- "src/"
39+
- "toolbox/"
40+
current_valid_dev_folders:
41+
- "dev/archive/"
42+
- "dev/build/"
43+
- "dev/config/"
44+
- "dev/reports/"
45+
- "dev/scripts/"
46+
- "dev/templates/"
47+
- "dev/tests/"
48+
- "dev/tools/"
49+
- "dev/workspace/"
50+
known_technical_debt:
51+
- "Legacy transition src buckets remain until scoped migration PRs move them into src/web/, src/api-runtime/, or src/runtime/."
52+
- "repository_directory_standard.md and codex_project_instructions_startup.md are superseded pointers retained for compatibility."
53+
```

0 commit comments

Comments
 (0)