Skip to content

Commit e80d329

Browse files
committed
Update project controls and README assets for v0.1.0 RC
1 parent 3706133 commit e80d329

13 files changed

Lines changed: 838 additions & 232 deletions

AGENTS.md

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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`

PROJEKT.md

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,35 @@ CompText CLI is an experimental terminal context client for building determinist
1919

2020
### Current State
2121
```text
22-
CURRENT_PHASE: 17
23-
CURRENT_TASK: Antigravity Plugin Bundle Skeleton
24-
LAST_GREEN_PHASE: 17
25-
STATUS: complete
26-
NEXT_ALLOWED_ACTION: Phase 18 planning on feature branch
22+
REPOSITORY: ProfRandom92/comptext-cli
23+
LATEST_SYNCED_COMMIT: 3706133 Local snapshot: add phase 5e review workflow contract
24+
BRANCH: main synced with origin/main
25+
CURRENT_PHASE: 5e
26+
CURRENT_TASK: README R1 community upgrade and v0.1.0 release candidate preparation
27+
LAST_GREEN_PHASE: 5e
28+
STATUS: release-candidate-prep
29+
NEXT_ALLOWED_ACTION: Step 1 README community upgrade using tasks/README_R1_COMMUNITY.md
2730
```
2831

32+
### Current Validation Baseline
33+
```text
34+
cargo fmt --all --check: green
35+
cargo check: green
36+
cargo test: green
37+
cargo clippy -- -D warnings: green
38+
cargo run --bin ctxt -- --json validate --run: green
39+
unit tests: 37 green
40+
smoke tests: 83 green
41+
```
42+
43+
### Current Local Working Model
44+
- `PROJEKT.md` is the project source of truth.
45+
- `AGENTS.md` defines repository agent safety rules.
46+
- `tasks/*.md` defines concrete work slices.
47+
- `.agents/skills/*` defines reusable working skills.
48+
- Codex/Antigravity may work only inside declared task scope.
49+
- Commit, push, tag, and release only when explicitly requested.
50+
2951
### Autonomy Contract
3052
- **Allowed Modifications**: May edit source code (`src/**`), tests (`tests/**`), docs (`docs/**`), skills (`.agent/skills/**`, `.agents/skills/**`), prompts (`prompts/**`), and configurations (`Cargo.toml`, `comptext.example.toml`).
3153
- **Allowed Commands**: May run local compilation, lint checks, tests, and formatting validation.
@@ -85,26 +107,9 @@ If remote Git interaction is required without explicit remote authorization, sto
85107

86108
| Phase | Description | Goal / Scope | Status |
87109
|---|---|---|---|
88-
| **Phase 0** | Repo Genesis & Bootstrap | Scaffold Rust project, basic commands (`help`, `doctor`, `providers list`, `version`), verify CI | **COMPLETE** |
89-
| **Phase 1** | CLI Shell Hardening | Hardening argument parsing, input handling, and errors for the base shell commands | **COMPLETE** |
90-
| **Phase 2** | Context Pack Contract | Implement `ctxt context inspect`, `ctxt context pack --task "..."`, and `ctxt ask --dry-run "..."` | **COMPLETE** |
91-
| **Phase 3** | Provider Adapter Layer | Define provider interface and Dummy offline test provider | **COMPLETE** |
92-
| **Phase 4** | Ollama Local Adapter | Support local Ollama integrations with explicit network boundaries | **COMPLETE** |
93-
| **Phase 4B** | Skill Registry Normalization | Normalize the local Antigravity skill structure and crystallize autonomy rules | **COMPLETE** |
94-
| **Phase 4C** | Long-Run Autonomy Hardening | Harden state machine progression rules and git safety boundaries | **COMPLETE** |
95-
| **Phase 5** | Proposal Mode | Implement `ctxt propose` to output changes as structured proposals | **COMPLETE** |
96-
| **Phase 6** | Apply Gate | Implement `ctxt apply` to confirm/apply changes and run verification | **COMPLETE** |
97-
| **Phase 7** | Provider Config Layer | Support dynamic provider profile switching and configurations | **COMPLETE** |
98-
| **Phase 8** | OpenAI-Compatible Adapter | Implement OpenAI adapter skeleton | **COMPLETE** |
99-
| **Phase 9** | Validate and Benchmark | Local validation, dry-runs, and deterministic benchmark flows | **COMPLETE** |
100-
| **Phase 10** | MVP Stabilization & Release Readiness | Audit documentation, verify command flows, safety hygiene checks | **COMPLETE** |
101-
| **Phase 11** | Release Packaging | Package CLI binary, finalize manifests, release artifact generation | **COMPLETE** |
102-
| **Phase 12** | Antigravity CLI Governance & Token Economy | Antigravity governance docs, token economy rules, skill/hook/permission target architecture | **COMPLETE** |
103-
| **Phase 13** | Skill Bundle Registry | Local skill bundle registry and starter skill templates | **COMPLETE** |
104-
| **Phase 14** | Hook/Permission Integration | Hook boundaries, dynamic run approvals | **COMPLETE** |
105-
| **Phase 15** | Cryptographic Provenance Engine | local SHA-256 provenance manifests | **COMPLETE** |
106-
| **Phase 16** | Agent State Contract | Add local agent-state capture/verify/report | **COMPLETE** |
107-
| **Phase 17** | Antigravity Plugin Bundle | Implement ctxt antigravity commands, local templates, and docs | **COMPLETE** |
110+
| **Phase 5e** | README R1 Community Upgrade & v0.1.0 Release Candidate Preparation | Upgrade README through `tasks/README_R1_COMMUNITY.md`, keep deterministic context and safety boundaries intact, and prepare release-candidate review state | **ACTIVE: release-candidate-prep** |
111+
112+
Historical implementation phases are not the active planning source for this branch snapshot. The current executable work queue is task-scoped and must be read from `tasks/*.md`, with `tasks/README_R1_COMMUNITY.md` as the next allowed task.
108113

109114
---
110115

@@ -118,6 +123,9 @@ COMMANDS_RUN: <list of commands executed>
118123
VALIDATION: <validation output summary>
119124
ARTIFACTS: <list of generated artifacts>
120125
GIT: <read-only status by default; local commit only if explicitly authorized; remote action only if separately explicitly authorized>
126+
NETWORK: <offline-only | local-only | allowed-external>
127+
SECRETS: <secrets status>
128+
POLICY_DECISIONS: <policy status>
121129
RISKS: <analysis of potential risks>
122130
NEXT: <next action or phase name>
123131
```

0 commit comments

Comments
 (0)