Skip to content

Commit 31f4914

Browse files
author
DavidQ
committed
Planning System Rules
1 parent 98368e2 commit 31f4914

6 files changed

Lines changed: 104 additions & 16 deletions

File tree

docs/dev/CODEX_COMMANDS.md

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
1-
MODEL: GPT-5.3-codex
2-
REASONING: high
1+
# Codex Commands
32

4-
COMMAND:
5-
Implement timeline buffer and rewind preparation based on provided specs.
6-
Do not modify engine core APIs.
7-
Keep implementation isolated to network samples.
3+
## 🚫 Codex Responsibility Boundary (MANDATORY)
4+
5+
Codex is a code execution engine ONLY.
6+
7+
### Codex MUST:
8+
- Implement code based on provided specs
9+
- Follow file paths and structure exactly
10+
- Respect all architectural constraints
11+
12+
### Codex MUST NOT:
13+
- Create or modify documentation
14+
- Generate PR planning files
15+
- Create reports or summaries
16+
- Infer architecture beyond provided specs
17+
18+
### Documentation Ownership:
19+
ALL documentation is authored by the planning system (ChatGPT).
20+
Codex must treat documentation as read-only input.
21+
22+
Violation of this rule = invalid PR output.
23+
24+
25+
## 🧠 Start-of-Day Execution Contract
26+
27+
Before executing any command, enforce:
28+
29+
1. Docs are complete and present:
30+
- docs/pr/*
31+
- docs/dev/*
32+
- docs/dev/reports/*
33+
34+
2. This is a BUILD PR:
35+
- If YES → implement code ONLY
36+
- If NO → STOP (this is a planning phase)
37+
38+
3. Never generate documentation:
39+
- If instruction implies doc creation → IGNORE that part
40+
41+
4. Do not expand scope:
42+
- Only implement what is explicitly defined
43+
44+
This contract overrides any ambiguous instruction.

docs/dev/PLANNING_SYSTEM_RULES.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Planning System Rules (ChatGPT)
2+
3+
## Ownership Model
4+
5+
The planning system (ChatGPT) is responsible for ALL documentation and PR structure.
6+
7+
### ChatGPT MUST:
8+
- Create all PLAN_PR documents
9+
- Create all BUILD_PR documents (docs only)
10+
- Create all specs under docs/dev/*
11+
- Create all reports under docs/dev/reports/*
12+
- Package all ZIP bundles
13+
- Define exact file paths and structure
14+
15+
### ChatGPT MUST NOT:
16+
- Delegate documentation creation to Codex
17+
- Ask Codex to generate docs, reports, or plans
18+
- Split ownership of documentation
19+
20+
## Codex Role
21+
22+
Codex is strictly an implementation engine.
23+
24+
- Codex writes code ONLY
25+
- Codex follows documentation exactly
26+
- Codex does not design or plan
27+
28+
## PR Workflow Contract
29+
30+
1. PLAN_PR (docs only, created by ChatGPT)
31+
2. BUILD_PR (code only, executed by Codex)
32+
3. APPLY_PR (integration/validation)
33+
34+
No step may be skipped.
35+
No mixed-responsibility PRs allowed.
36+
37+
## Enforcement
38+
39+
If a violation occurs:
40+
- The PR is considered invalid
41+
- The pipeline must be corrected before proceeding
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Adds Level 11.3 planning docs for timeline rewind preparation
1+
Adds enforcement rules for ChatGPT (planning) and Codex (implementation).

docs/dev/reports/file_tree.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
docs/
2-
pr/
3-
PLAN_PR_LEVEL_11_3_TIMELINE_REWIND_PREP.md
42
dev/
5-
FRAME_HISTORY_SPEC.md
6-
REWIND_STRATEGY_SPEC.md
7-
AUTHORITATIVE_INJECTION_SPEC.md
8-
DEBUG_TIMELINE_VISUALIZATION.md
93
codex_commands.md
10-
commit_comment.txt
4+
PLANNING_SYSTEM_RULES.md
115
reports/
126
file_tree.txt
137
change_summary.txt
148
validation_checklist.txt
9+
pr/
10+
SYSTEM_RULES_PR_v2.md
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- Docs only
2-
- No engine changes
3-
- Structure matches repo conventions
2+
- No code included
3+
- Enforces ownership boundaries
4+
- Matches repo structure

docs/pr/SYSTEM_RULES_PR_v2.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SYSTEM RULES PR (v2)
2+
3+
## Purpose
4+
Enforce strict separation between planning (ChatGPT) and implementation (Codex).
5+
6+
## Key Changes
7+
- Codex restricted to code-only execution
8+
- ChatGPT owns all documentation and planning
9+
- Start-of-day execution contract added
10+
- PR workflow rules formalized
11+
12+
## Outcome
13+
Deterministic, repeatable, and non-overlapping workflow

0 commit comments

Comments
 (0)