Skip to content

Commit 0273614

Browse files
committed
Use Intent as the canonical system name
1 parent da5ac9f commit 0273614

119 files changed

Lines changed: 1293 additions & 1376 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,34 @@ jobs:
2929
- run: cargo build --locked --manifest-path crates/intent/Cargo.toml
3030
- run: cargo test --locked --manifest-path crates/intent/Cargo.toml
3131

32-
# Port of dotfiles' `axe-vrs-context-strict`.
32+
# Strict validation of the repository's Intent corpus.
3333
corpus-strict:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v4
37-
# `crates/intent` is a standalone package with no workspace root, so cargo
37+
38+
- name: retired name is absent
39+
run: |
40+
set -euo pipefail
41+
retired="$(printf '\166\162\163')"
42+
if git grep -I -n -i "$retired" -- .; then
43+
echo "::error::retired name found in tracked content"
44+
exit 1
45+
fi
46+
if git ls-files | grep -i "$retired"; then
47+
echo "::error::retired name found in a tracked path"
48+
exit 1
49+
fi
50+
51+
# `crates/intent` is a standalone package with no workspace root, so cargo
3852
# writes to `crates/intent/target/` and the steps below would not find the
3953
# binary at `./target/`. `--target-dir` pins the output next to the checkout
4054
# root regardless of whether a workspace root ever appears above the crate.
4155
- run: cargo build --locked --release --manifest-path crates/intent/Cargo.toml --target-dir target
4256

4357
- name: corpus is present
4458
# `intent check` exits 0 on an empty directory and on a directory holding no
45-
# VRS artifacts, so "the check passed" cannot by itself distinguish a healthy
59+
# Intent artifacts, so "the check passed" cannot by itself distinguish a healthy
4660
# corpus from a missing one. Fail on absence explicitly, before checking.
4761
run: |
4862
set -euo pipefail
@@ -55,7 +69,7 @@ jobs:
5569
cat report.json >&2; exit 1;
5670
}
5771
jq -e '
58-
.schema_version == "axe.vrs.check.v1"
72+
.schema_version == "axe.intent.check.v1"
5973
and .profile == "strict"
6074
and (.diagnostics | length) == 0
6175
' report.json > /dev/null
@@ -73,7 +87,7 @@ jobs:
7387
jq -e '(.nodes | length) > 0' graph.json > /dev/null \
7488
|| { echo "::error::strict check examined 0 artifacts — wrong path or empty corpus"; exit 1; }
7589
76-
# Port of dotfiles' `vrs-semantic-review-fixtures`.
90+
# Validate the semantic-review fixture corpus and enforcement schema.
7791
semantic-review-fixtures:
7892
runs-on: ubuntu-latest
7993
steps:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# otherwise, since the crate is a standalone package with no workspace root.
44
target/
55

6+
# Local scratch artifacts and render intermediates.
7+
/tmp/
8+
69
# Artifacts the CI steps write into the checkout root while running.
710
/report.json
811
/graph.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ intent tree with its own `requirements.md` and `spec.md`.
6767
| `11-roadmap` | `roadmap.md` — directions under consideration, not a plan |
6868
| `12-common-subsystems` | recurring subsystem shapes worth naming once |
6969
| `13-review-smells` | what a reviewer should look for in an intent tree |
70-
| `14-grill-vrs` | the procedure for interrogating a tree until it holds up |
70+
| `14-grill-intent` | the procedure for interrogating a tree until it holds up |
7171
| `15-evaluation` | isolated evaluation runs and their fixtures |
7272
| `16-enforcement` | the rules a checker can enforce mechanically |
7373

context/cli/.decisions/0001-use-per-backend-review-readiness.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ Status: accepted
44

55
## Context
66

7-
`axe vrs review` can run through multiple stock CAIC backends. Manual
7+
`axe intent review` can run through multiple stock CAIC backends. Manual
88
real-provider evals showed uneven provider state: `codex` produced a
9-
schema-valid VRS review report for `context/vrs/16-enforcement`, while `claude`
9+
schema-valid Intent review report for `context/intent/16-enforcement`, while `claude`
1010
still needs an authenticated isolated real-provider report after fixing its
1111
wrapper-level command mapping.
1212

13-
The design question was whether one provider gap should keep the whole `axe vrs
13+
The design question was whether one provider gap should keep the whole `axe intent
1414
review` surface marked not production-ready.
1515

1616
## Evidence and Argument
1717

1818
CAIC already exposes explicit backend ids and reports the effective backend in
19-
result metadata. `axe vrs review` now preflights the selected backend through
19+
result metadata. `axe intent review` now preflights the selected backend through
2020
`$CODING_AGENT capabilities --json` before provider invocation, so readiness can
2121
be evaluated against the same contract for each backend.
2222

@@ -35,14 +35,14 @@ backend on an unrelated provider authentication/eval gap.
3535

3636
## Decision
3737

38-
`axe vrs review` production readiness is backend-scoped.
38+
`axe intent review` production readiness is backend-scoped.
3939

4040
A backend is ready when:
4141

4242
- its CAIC capability preflight satisfies the review contract;
4343
- token-free fake-provider tests cover its provider-specific command mapping;
44-
- at least one bounded manual real-provider run against a small existing VRS
45-
subsystem writes a schema-valid `axe.vrs.review.v1` report.
44+
- at least one bounded manual real-provider run against a small existing Intent
45+
subsystem writes a schema-valid `axe.intent.review.v1` report.
4646

4747
## Consequences
4848

context/cli/.delta/DELTA-001-claude-real-provider-review-pending.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Status: open
44

55
## Divergence
66

7-
`axe vrs review` is implemented and covered by fake-provider tests. Production
7+
`axe intent review` is implemented and covered by fake-provider tests. Production
88
readiness is tracked per backend: the stock `codex` path has produced a
9-
semantic review report for a small VRS subsystem, while the stock `claude` path
9+
semantic review report for a small Intent subsystem, while the stock `claude` path
1010
still lacks an authenticated isolated real-provider report.
1111

12-
## VRS
12+
## Intent
1313

14-
- [spec.md](../spec.md) defines `axe vrs review` backend readiness as
14+
- [spec.md](../spec.md) defines `axe intent review` backend readiness as
1515
backend-scoped.
1616
- [0001-use-per-backend-review-readiness.md](../.decisions/0001-use-per-backend-review-readiness.md)
1717
records the readiness policy.
@@ -29,12 +29,12 @@ still lacks an authenticated isolated real-provider report.
2929
## Evidence
3030

3131
- Improved CAIC provider-failure diagnostics exposed Codex native schema
32-
compatibility issues in the baked `axe.vrs.review.v1` schema.
32+
compatibility issues in the baked `axe.intent.review.v1` schema.
3333
- After adding explicit string types and requiring `gate`,
34-
`axe vrs review context/vrs/16-enforcement --backend codex
34+
`axe intent review context/intent/16-enforcement --backend codex
3535
--timeout-seconds 180 --report ...` succeeded and wrote an
36-
`axe.vrs.review.v1` report.
37-
- `axe vrs review context/vrs/16-enforcement --backend claude
36+
`axe.intent.review.v1` report.
37+
- `axe intent review context/intent/16-enforcement --backend claude
3838
--timeout-seconds 180 --report ...` failed with CAIC `timeout` before writing
3939
a report.
4040
- Follow-up wrapper inspection found that the Claude command path passed
@@ -52,15 +52,15 @@ still lacks an authenticated isolated real-provider report.
5252
`ANTHROPIC_API_KEY` is present. The wrapper timeout class is covered by fake
5353
provider tests; the full real Claude report still requires API-key-backed
5454
isolated auth.
55-
- The VRS/Axe decision is to treat review production readiness per backend
55+
- The Intent/Axe decision is to treat review production readiness per backend
5656
rather than requiring every stock backend to pass before a proven backend can
5757
be used.
5858

5959
## Required Reconciliation
6060

61-
- `axe vrs review --backend claude` should complete a bounded manual
62-
real-provider eval against a small existing VRS subsystem using isolated auth
63-
and write an `axe.vrs.review.v1` report.
61+
- `axe intent review --backend claude` should complete a bounded manual
62+
real-provider eval against a small existing Intent subsystem using isolated auth
63+
and write an `axe.intent.review.v1` report.
6464
- The successful Claude eval evidence should be captured under the relevant
6565
`.experiments/` directory before this delta is removed.
6666
- This delta does not block `codex` readiness. It blocks claiming Claude
@@ -73,5 +73,5 @@ update implementation
7373
## Resolution Signal
7474

7575
Delete this delta when a bounded manual `claude` run writes a schema-valid
76-
`axe.vrs.review.v1` report for a small existing VRS subsystem, and that report
76+
`axe.intent.review.v1` report for a small existing Intent subsystem, and that report
7777
is captured under the owning `.experiments/` directory.

context/cli/.experiments/caic-semantic-review-prototype.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
Date: 2026-06-18
44

5-
Current status: superseded by the implemented `axe vrs review` command, the
6-
baked assets in `context/vrs/16-enforcement/`, and the real-provider eval in
7-
`context/vrs/16-enforcement/.experiments/2026-06-19-real-provider-review-eval.md`.
5+
Current status: superseded by the implemented `axe intent review` command, the
6+
baked assets in `context/intent/16-enforcement/`, and the real-provider eval in
7+
`context/intent/16-enforcement/.experiments/2026-06-19-real-provider-review-eval.md`.
88
Keep this document as historical prototype evidence, not as current remaining
99
work.
1010

1111
## Question
1212

13-
Can `axe vrs review` use the Coding Agent Invocation Contract (CAIC) cleanly for
14-
semantic review while keeping deterministic `axe vrs` primitives as the first
13+
Can `axe intent review` use the Coding Agent Invocation Contract (CAIC) cleanly for
14+
semantic review while keeping deterministic `axe intent` primitives as the first
1515
production milestone?
1616

1717
## Method
1818

1919
The prototype used the implemented `coding-agent` binary with a fake Codex
2020
provider. The temporary scenario contained:
2121

22-
- a small VRS node with `requirements.md` and `spec.md`;
23-
- a generated `axe vrs check` diagnostics artifact;
22+
- a small Intent node with `requirements.md` and `spec.md`;
23+
- a generated `axe intent check` diagnostics artifact;
2424
- a candidate baked review prompt;
2525
- a task-specific JSON Schema for the review result.
2626

@@ -29,24 +29,24 @@ The command shape was:
2929
```text
3030
$CODING_AGENT run \
3131
--cwd <repo-root> \
32-
--prompt-file <baked-vrs-review-prompt> \
33-
--context-file normative:<vrs-requirements> \
34-
--context-file normative:<vrs-spec> \
35-
--context-file generated-diagnostics:<axe-vrs-check-json> \
32+
--prompt-file <baked-intent-review-prompt> \
33+
--context-file normative:<intent-requirements> \
34+
--context-file normative:<intent-spec> \
35+
--context-file generated-diagnostics:<intent-check-json> \
3636
--mode review \
3737
--permission read-only \
3838
--approval never \
3939
--config-policy isolated \
4040
--network-policy disabled \
4141
--output-format json \
42-
--output-schema <vrs-review-result-schema> \
42+
--output-schema <intent-review-result-schema> \
4343
--backend codex
4444
```
4545

4646
Candidate prompt shape:
4747

4848
```text
49-
You are running `axe vrs review`. Review only the supplied VRS artifacts and
49+
You are running `axe intent review`. Review only the supplied Intent artifacts and
5050
diagnostics. Return JSON matching the schema. Do not propose file edits.
5151
```
5252

@@ -58,7 +58,7 @@ Candidate schema shape:
5858
"type": "object",
5959
"required": ["schema_version", "summary", "findings"],
6060
"properties": {
61-
"schema_version": { "const": "axe.vrs.review.v1" },
61+
"schema_version": { "const": "axe.intent.review.v1" },
6262
"summary": { "type": "string" },
6363
"findings": {
6464
"type": "array",
@@ -90,7 +90,7 @@ Candidate schema shape:
9090

9191
The CAIC route worked with the fake provider. The adapter:
9292

93-
- accepted workspace VRS files as `normative` context;
93+
- accepted workspace Intent files as `normative` context;
9494
- accepted an outside diagnostics file only when its JSON had a generated
9595
artifact marker (`schema_version` or `producer`);
9696
- invoked the backend in `review`, `read-only`, `approval never`,
@@ -103,13 +103,13 @@ The successful inner result was:
103103

104104
```json
105105
{
106-
"schema_version": "axe.vrs.review.v1",
106+
"schema_version": "axe.intent.review.v1",
107107
"summary": "1 semantic concern found",
108108
"findings": [
109109
{
110-
"rule": "VRS.REVIEW.spec.actionability",
110+
"rule": "INTENT.REVIEW.spec.actionability",
111111
"severity": "warning",
112-
"artifact": "context/vrs/spec.md",
112+
"artifact": "context/intent/spec.md",
113113
"evidence": "Spec uses vague language: should be good and flexible.",
114114
"suggested_fix": "Replace vague qualities with observable behavior and constraints."
115115
}
@@ -135,36 +135,36 @@ machine-readable generated marker, CAIC failed before provider execution:
135135
}
136136
```
137137

138-
This is desirable for `axe vrs review`: the checker output must be a generated
138+
This is desirable for `axe intent review`: the checker output must be a generated
139139
artifact, not an arbitrary host file smuggled into review context.
140140

141141
## Tradeoffs
142142

143143
| Option | Result |
144144
| --- | --- |
145-
| Implement `axe vrs review` now | CAIC is ready enough, but the deterministic checker, baked prompt file, and review schema are not yet production-shaped. This would couple review quality to unstable inputs. |
145+
| Implement `axe intent review` now | CAIC is ready enough, but the deterministic checker, baked prompt file, and review schema are not yet production-shaped. This would couple review quality to unstable inputs. |
146146
| Keep review experimental until primitives exist | Preserves the accepted implementation order and gives review a bounded diagnostics packet later. Delays semantic smells, but avoids noisy or ungrounded review output. |
147147
| Add only hidden/prototype review command | Useful for local tuning, but risks an untracked command contract unless it is clearly excluded from public docs and CI. |
148148

149149
## Conclusion
150150

151-
Keep production `axe vrs` focused on deterministic primitives first. In
152-
parallel, create the baked semantic-review assets under VRS ownership:
151+
Keep production `axe intent` focused on deterministic primitives first. In
152+
parallel, create the baked semantic-review assets under Intent ownership:
153153

154-
- `context/vrs/16-enforcement/review-prompt.md` or a sibling prompt artifact
154+
- `context/intent/16-enforcement/review-prompt.md` or a sibling prompt artifact
155155
with the review rubric;
156-
- `context/vrs/16-enforcement/review-result.schema.json` for
157-
`axe.vrs.review.v1`;
158-
- evaluation fixtures under `context/vrs/15-evaluation/` that tune the prompt
159-
against known good and bad VRS examples.
156+
- `context/intent/16-enforcement/review-result.schema.json` for
157+
`axe.intent.review.v1`;
158+
- evaluation fixtures under `context/intent/15-evaluation/` that tune the prompt
159+
against known good and bad Intent examples.
160160

161-
Once `axe vrs check --json` emits stable diagnostics, `axe vrs review` should
161+
Once `axe intent check --json` emits stable diagnostics, `axe intent review` should
162162
compose those diagnostics with the prompt/schema and call CAIC exactly through
163163
the command route above.
164164

165-
## VRS Impact
165+
## Intent Impact
166166

167-
This prototype informed the current Axe VRS review command, the baked
168-
semantic-review prompt and schema owned by `context/vrs/16-enforcement`, and the
167+
This prototype informed the current Axe Intent review command, the baked
168+
semantic-review prompt and schema owned by `context/intent/16-enforcement`, and the
169169
manual-only real-provider eval policy. It is historical evidence only; current
170170
readiness state lives in the spec, decisions, deltas, and real-provider evals.

0 commit comments

Comments
 (0)