@@ -60,6 +60,297 @@ Each task must declare:
6060- validation commands
6161- return schema
6262
63+ ## Startup source order
64+
65+ To reduce startup friction, agents must use this order:
66+ 1 . Read ` AGENTS.md ` for safety rules and working-mode constraints.
67+ 2 . Read ` PROJEKT.md ` for current project state. ` PROJEKT.md ` is the source of truth.
68+ 3 . Read the referenced ` tasks/*.md ` file for the concrete work slice.
69+ 4 . Read only directly relevant ` .agents/skills/* ` files when a reusable skill is needed.
70+
71+ Current project state from ` PROJEKT.md ` :
72+ - ` CURRENT_PHASE: 5e `
73+ - ` CURRENT_TASK: README R1 community upgrade and v0.1.0 release candidate preparation `
74+ - ` STATUS: release-candidate-prep `
75+ - ` NEXT_ALLOWED_ACTION: Step 1 README community upgrade using tasks/README_R1_COMMUNITY.md `
76+ - Branch was synced with ` origin/main ` before local edits.
77+ - Validation baseline is green: ` cargo fmt --all --check ` , ` cargo check ` , ` cargo test ` , ` cargo clippy -- -D warnings ` , ` cargo run --bin ctxt -- --json validate --run ` .
78+ - Tests baseline is 37 unit tests and 83 smoke tests.
79+
80+ Global gates for all modes:
81+ - Network is off unless a mode explicitly allows it and the user explicitly requests it.
82+ - Provider calls are off.
83+ - External agent execution is off.
84+ - MCP server use is off.
85+ - Figma and generated asset work are allowed only in ` visual-assets ` mode and only with explicit user instruction.
86+ - Commit, push, tag, and release are allowed only with explicit user instruction for that exact action.
87+ - ` tasks/*.md ` defines concrete work packages.
88+ - ` .agents/skills/* ` defines reusable working skills.
89+
90+ ## Working Modes
91+
92+ ### docs-only
93+
94+ Use for non-README documentation edits that do not change runtime behavior.
95+
96+ Allowed files:
97+ - ` docs/** `
98+ - ` prompts/** `
99+ - ` context/** ` for analysis artifacts
100+ - ` PROJEKT.md ` only for task-state updates
101+
102+ Forbidden files/actions:
103+ - ` src/** `
104+ - ` tests/** `
105+ - ` README.md ` unless the active task explicitly includes it
106+ - ` Cargo.toml `
107+ - ` Cargo.lock `
108+ - workflows
109+ - generated assets
110+ - tags
111+ - releases
112+ - provider configs
113+ - secrets
114+
115+ Allowed commands:
116+ - ` git status `
117+ - ` git diff `
118+ - ` git log `
119+ - ` Get-Content `
120+ - ` Select-String `
121+
122+ Required validation:
123+ - ` git --no-pager diff -- docs prompts context PROJEKT.md `
124+ - ` Select-String ` forbidden claim scan on changed docs
125+ - ` git --no-pager status --short --branch `
126+
127+ Git policy:
128+ - Read-only Git inspection is allowed.
129+ - No staging, commit, push, tag, release, PR, or merge unless explicitly requested.
130+
131+ Network policy:
132+ - Offline-only.
133+ - No browser, provider, external agent, MCP, or live network calls.
134+
135+ Stop conditions:
136+ - Required change touches forbidden files.
137+ - Validation requires network or provider execution.
138+ - Secret material or private auth material is needed.
139+ - The active task and ` PROJEKT.md ` disagree.
140+
141+ ### README/community
142+
143+ Use for the current Phase 5e README R1 community upgrade work.
144+
145+ Allowed files:
146+ - ` README.md `
147+ - ` tasks/** `
148+ - ` PROJEKT.md ` only for task-state updates
149+
150+ Forbidden files/actions:
151+ - ` src/** `
152+ - ` tests/** `
153+ - ` docs/** ` unless the active task explicitly allows it
154+ - ` .agents/** `
155+ - ` Cargo.toml `
156+ - ` Cargo.lock `
157+ - workflows
158+ - generated assets
159+ - tags
160+ - releases
161+ - provider configs
162+ - secrets
163+
164+ Allowed commands:
165+ - ` git status `
166+ - ` git diff `
167+ - ` git log `
168+ - ` Get-Content `
169+ - ` Select-String `
170+
171+ Required validation:
172+ - ` git --no-pager diff -- README.md `
173+ - ` Select-String ` forbidden claim scan
174+ - ` git --no-pager status --short --branch `
175+
176+ Git policy:
177+ - Read-only Git inspection is allowed.
178+ - No staging, commit, push, tag, release, PR, or merge unless explicitly requested.
179+
180+ Network policy:
181+ - Offline-only.
182+ - No browser, provider, external agent, MCP, Figma, asset generation, or live network calls.
183+
184+ Stop conditions:
185+ - Required change touches runtime, tests, Cargo files, workflows, generated assets, provider configs, tags, releases, or secrets.
186+ - README claims require unsupported production, compliance, legal, forensic, official compatibility, or guaranteed correctness assurance.
187+ - Validation requires network or provider execution.
188+ - ` tasks/README_R1_COMMUNITY.md ` and ` PROJEKT.md ` disagree.
189+
190+ ### runtime-code
191+
192+ Use for changes to CLI behavior, runtime contracts, tests, validation logic, provider boundaries, or apply/proposal mechanics.
193+
194+ Allowed files:
195+ - ` src/** `
196+ - ` tests/** `
197+ - ` Cargo.toml `
198+ - ` Cargo.lock ` only when dependency resolution actually changes and is explicitly in scope
199+ - ` comptext.example.toml `
200+ - ` docs/** ` only when documenting the runtime change
201+ - ` PROJEKT.md ` only for task-state updates
202+
203+ Forbidden files/actions:
204+ - ` .env `
205+ - private keys
206+ - credential files
207+ - generated assets
208+ - tags
209+ - releases
210+ - workflows unless explicitly in scope
211+ - provider config secrets
212+
213+ Allowed commands:
214+ - ` git status `
215+ - ` git diff `
216+ - ` git log `
217+ - ` Get-Content `
218+ - ` Select-String `
219+ - ` cargo fmt --all --check `
220+ - ` cargo check `
221+ - ` cargo test `
222+ - ` cargo clippy -- -D warnings `
223+ - ` cargo run --bin ctxt -- --json validate --run `
224+
225+ Required validation:
226+ - ` cargo fmt --all --check `
227+ - ` cargo check `
228+ - ` cargo test `
229+ - ` cargo clippy -- -D warnings `
230+ - ` cargo run --bin ctxt -- --json validate --run `
231+ - ` git --no-pager diff `
232+ - ` git --no-pager status --short --branch `
233+
234+ Git policy:
235+ - Read-only Git inspection is allowed.
236+ - No staging, commit, push, tag, release, PR, or merge unless explicitly requested.
237+
238+ Network policy:
239+ - Local-only.
240+ - No provider calls, external agent execution, MCP server use, or live external network calls.
241+
242+ Stop conditions:
243+ - Validation fails and cannot be fixed with small in-scope changes.
244+ - Dependency download, provider call, external agent execution, or network access is required.
245+ - Secret material or private auth material is needed.
246+ - Applying untrusted proposal output would mutate active source without approval.
247+
248+ ### release-prep
249+
250+ Use for local release-candidate preparation, manifests, release checklists, and final local validation before an explicitly requested release action.
251+
252+ Allowed files:
253+ - ` README.md `
254+ - ` docs/** `
255+ - ` Cargo.toml `
256+ - ` Cargo.lock `
257+ - ` comptext.example.toml `
258+ - ` PROJEKT.md ` only for task-state updates
259+ - release notes only when explicitly requested
260+
261+ Forbidden files/actions:
262+ - tags unless explicitly requested
263+ - releases unless explicitly requested
264+ - pushes unless explicitly requested
265+ - PRs unless explicitly requested
266+ - workflows unless explicitly in scope
267+ - provider configs
268+ - secrets
269+ - generated binary artifacts unless explicitly requested
270+
271+ Allowed commands:
272+ - ` git status `
273+ - ` git diff `
274+ - ` git log `
275+ - ` Get-Content `
276+ - ` Select-String `
277+ - ` cargo fmt --all --check `
278+ - ` cargo check `
279+ - ` cargo test `
280+ - ` cargo clippy -- -D warnings `
281+ - ` cargo run --bin ctxt -- --json validate --run `
282+
283+ Required validation:
284+ - ` cargo fmt --all --check `
285+ - ` cargo check `
286+ - ` cargo test `
287+ - ` cargo clippy -- -D warnings `
288+ - ` cargo run --bin ctxt -- --json validate --run `
289+ - release-claim scan with ` Select-String `
290+ - ` git --no-pager status --short --branch `
291+
292+ Git policy:
293+ - Read-only Git inspection is allowed.
294+ - No staging, commit, push, tag, release, PR, or merge unless explicitly requested.
295+
296+ Network policy:
297+ - Offline-only by default.
298+ - No provider calls, external agent execution, MCP server use, or live external network calls.
299+
300+ Stop conditions:
301+ - A tag, release, push, remote branch, PR, merge, or registry publication is needed without explicit authorization.
302+ - Release claims exceed validated local evidence.
303+ - Secret material or private auth material is needed.
304+ - Validation fails and cannot be fixed within the declared task scope.
305+
306+ ### visual-assets
307+
308+ Use only for explicitly requested Figma, screenshot, image, or asset preparation work.
309+
310+ Allowed files:
311+ - ` assets/** ` only when explicitly requested
312+ - ` docs/** ` only when the active task explicitly allows asset references
313+ - ` README.md ` only when the active task explicitly allows asset references
314+ - ` PROJEKT.md ` only for task-state updates
315+
316+ Forbidden files/actions:
317+ - ` src/** `
318+ - ` tests/** `
319+ - ` Cargo.toml `
320+ - ` Cargo.lock `
321+ - workflows
322+ - provider configs
323+ - secrets
324+ - tags
325+ - releases
326+
327+ Allowed commands:
328+ - ` git status `
329+ - ` git diff `
330+ - ` git log `
331+ - ` Get-Content `
332+ - ` Select-String `
333+
334+ Required validation:
335+ - ` git --no-pager diff -- assets docs README.md PROJEKT.md `
336+ - asset reference scan with ` Select-String `
337+ - ` git --no-pager status --short --branch `
338+
339+ Git policy:
340+ - Read-only Git inspection is allowed.
341+ - No staging, commit, push, tag, release, PR, or merge unless explicitly requested.
342+
343+ Network policy:
344+ - Offline-only unless the user explicitly enables Figma or asset generation for this mode.
345+ - Figma, image generation, browser screenshots, MCP, and external asset tools remain forbidden unless explicitly requested for the active task.
346+ - Provider LLM calls remain forbidden.
347+
348+ Stop conditions:
349+ - Asset work is requested outside ` visual-assets ` mode.
350+ - Figma, browser, MCP, network, or generated assets are needed without explicit user instruction.
351+ - Required change touches runtime, tests, Cargo files, workflows, provider configs, tags, releases, or secrets.
352+ - Asset provenance or license status is unclear.
353+
63354## Default allowed paths
64355
65356- ` README.md `
0 commit comments