Skip to content

Commit 7cea653

Browse files
author
creayma
committed
docs(adapters): fix stale Codex and Cursor smoke commands in host matrix
The Host Adapter Matrix drifted from the shipped CLI. The Codex Smoke cell referenced a nonexistent `harness prepare --platform codex` command and an `html-report` validation step; the current chain is `harness analyze --platform codex` followed by a validated `harness render --mode html`. The Cursor Smoke cell claimed a working `agent --plugin-dir` -> evidence bundle -> validated render chain while roadmap records the Cursor runtime smoke as missing (open item U-04); it now names the correct cursor-agent binary and marks the smoke as not yet available instead of overstating support. This closes roadmap P0 item A-05. Default Output columns stay unchanged; the durable-HTML defaults are an accepted contract guarded by test/better-harness-skill.test.mjs. Story: roadmap.md TODO A-05 Spec: docs/specs/2026-07-28-a05-adapter-docs-stale-commands.md Test: node --test test/agent-customize-architecture.test.mjs test/better-harness-skill.test.mjs test/doc-link-graph.test.mjs (19 pass)
1 parent e50861e commit 7cea653

3 files changed

Lines changed: 75 additions & 3 deletions

File tree

docs/adapters/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ repository's native marketplace manifest.
1919
| Host | Positioning | Shell | Configured Assets | Session Evidence | Default Output | Rules / Prompts | Smoke |
2020
| --- | --- | --- | --- | --- | --- | --- | --- |
2121
| Claude Code | Analysis-capable source-local host | `.claude-plugin/` | `scripts/agent-customize/providers/claude.mjs` | `scripts/session-analysis/platforms/claude.mjs` | self-contained HTML + Markdown | `.claude` + `CLAUDE.md` + Plugin assets | `claude plugin validate --strict .` -> isolated install/discovery -> configured-asset baseline -> validated `html` render |
22-
| Codex | Analysis-capable source-local host | `.codex-plugin/` | `scripts/agent-customize/providers/codex.mjs` | `scripts/session-analysis/platforms/codex.mjs` | self-contained HTML + Markdown | `.codex` + `.agents` + `AGENTS.md` | `harness prepare --platform codex` -> finalize with `html-report` validation |
22+
| Codex | Analysis-capable source-local host | `.codex-plugin/` | `scripts/agent-customize/providers/codex.mjs` | `scripts/session-analysis/platforms/codex.mjs` | self-contained HTML + Markdown | `.codex` + `.agents` + `AGENTS.md` | `harness analyze --platform codex` -> validated `harness render --mode html` |
2323
| Qoder | First-class product host | `.qoder-plugin/` | `scripts/agent-customize/providers/qoder.mjs` | `scripts/session-analysis/platforms/qoder.mjs` | `better-harness` | `.qoder/rules` + `AGENTS.md` + output templates | `better-harness harness render --mode qoder-canvas --validate` |
24-
| Cursor | Analysis-capable source-local host | `.cursor-plugin/` | `scripts/agent-customize/providers/cursor.mjs` | `scripts/session-analysis/platforms/cursor.mjs` | self-contained HTML + Markdown | `.cursor` + `.codex` compatibility + `AGENTS.md` | `agent --plugin-dir . --mode ask --print` -> Cursor evidence bundle -> validated `html` render |
24+
| Cursor | Analysis-capable source-local host | `.cursor-plugin/` | `scripts/agent-customize/providers/cursor.mjs` | `scripts/session-analysis/platforms/cursor.mjs` | self-contained HTML + Markdown | `.cursor` + `.codex` compatibility + `AGENTS.md` | packaged `cursor-agent --plugin-dir` runtime smoke is not yet available (roadmap U-04) |
2525

2626
## Discovery And Evidence
2727

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Adapter Matrix Stale Commands Cleanup
2+
3+
Fix stale smoke commands in the Host Adapter Matrix so every referenced CLI
4+
step exists in the current implementation and the Cursor row does not claim a
5+
runtime smoke that the roadmap tracks as missing. This is roadmap P0 item A-05.
6+
7+
## Traceability
8+
9+
- Spec ID: 2026-07-28-a05-adapter-docs-stale-commands
10+
- Story: roadmap.md TODO A-05
11+
- Status: Implemented
12+
13+
## Intent
14+
15+
The `docs/adapters/README.md` matrix drifted from the shipped CLI:
16+
17+
1. The Codex Smoke cell references `harness prepare --platform codex` and a
18+
`html-report` validation step. Neither exists: the registry has no
19+
`prepare` subcommand, and rendering/validation runs through
20+
`harness analyze` plus `harness render --mode html --validate`
21+
(`scripts/better-harness-cli/registry.mjs`,
22+
`scripts/harness-analysis/render-report.mjs`).
23+
2. The Cursor Smoke cell presents `agent --plugin-dir . --mode ask --print ->
24+
Cursor evidence bundle -> validated html render` as an existing smoke
25+
chain, while `roadmap.md` records "Real host smoke test: Cursor No" and
26+
tracks the packaged `cursor-agent --plugin-dir` smoke as open item U-04.
27+
The cell also uses the `agent` binary name instead of `cursor-agent`.
28+
29+
Reader-facing output contracts (Default Output columns, `html-visual.md`
30+
routing) already match the durable-HTML product decision from
31+
`docs/specs/2026-07-27-claude-durable-html-default.md` and stay unchanged.
32+
33+
## Acceptance Scenarios
34+
35+
- AC-1: The matrix's Codex Smoke cell uses only commands that exist today:
36+
`harness analyze --platform codex` and a validated
37+
`harness render --mode html` step; the strings `harness prepare` and
38+
`html-report` no longer appear in `docs/adapters/README.md`.
39+
- AC-2: The Cursor Smoke cell no longer claims an existing evidence-bundle ->
40+
validated render smoke chain; it states that the packaged
41+
`cursor-agent --plugin-dir` runtime smoke is not yet available and points
42+
to roadmap item U-04.
43+
- AC-3: Existing content-contract tests keep passing unchanged:
44+
`test/agent-customize-architecture.test.mjs` and
45+
`test/better-harness-skill.test.mjs` assertions over
46+
`docs/adapters/README.md`.
47+
- AC-4: `node --test test/doc-link-graph.test.mjs` passes; no markdown links
48+
change.
49+
50+
## Non-Goals
51+
52+
- No change to Default Output or Session Evidence columns; the durable-HTML
53+
defaults for Claude Code, Codex, and Cursor are an accepted product
54+
contract guarded by `test/better-harness-skill.test.mjs`.
55+
- No support-declaration consistency tests (tracked separately as A-06).
56+
- No CLI, renderer, or provider code changes.
57+
58+
## Plan
59+
60+
1. Rewrite the Codex Smoke cell to the current
61+
`harness analyze --platform codex` -> validated
62+
`harness render --mode html` chain.
63+
2. Rewrite the Cursor Smoke cell to name the correct `cursor-agent` binary
64+
and mark the runtime smoke as pending roadmap U-04 instead of claiming a
65+
working chain.
66+
3. Check A-05 off in `roadmap.md`.
67+
68+
## Test Evidence
69+
70+
- `node --test test/agent-customize-architecture.test.mjs`
71+
- `node --test test/better-harness-skill.test.mjs`
72+
- `node --test test/doc-link-graph.test.mjs`

roadmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ platform depth.
4545
| [ ] | P0 | A-02 | Make checkup plan/apply provider-aware and fail closed by default. | Codex and Cursor plans never contain `qodercli` actions. |
4646
| [ ] | P0 | A-03 | Bind source references and provider-home paths to an explicit provider. | A patch cannot resolve into another host's configuration root. |
4747
| [x] | P0 | A-04 | Add a help-only path to `agent-customize`. | `--help` returns before reading HOME, workspace, SQLite, or plugin caches. |
48-
| [ ] | P0 | A-05 | Fix stale adapter documentation and smoke commands. | The matrix uses current `harness analyze` / `harness render` commands and does not overstate Cursor output support. |
48+
| [x] | P0 | A-05 | Fix stale adapter documentation and smoke commands. | The matrix uses current `harness analyze` / `harness render` commands and does not overstate Cursor output support. |
4949
| [ ] | P0 | A-06 | Add support-declaration consistency tests. | CLI help, provider registry, session platforms, report platforms, and docs agree. |
5050
| [ ] | P1 | C-01 | Add Codex-specific configuration source precedence. | Checkup distinguishes editable sources from cache, audit, and session data. |
5151
| [ ] | P1 | C-02 | Normalize Codex model, usage, and hook evidence when present. | Missing data stays unavailable; no model, token, or hook values are invented. |

0 commit comments

Comments
 (0)