Skip to content

Commit 93b83d3

Browse files
cliffhallclaude
andcommitted
docs: root-guards CI job, shared devDependency guard, Dependabot backlog, paths rule
- S3 adds a root-guards CI job for checks no package leg covers - verify:dep-lockstep is Adapt: one range per shared TS devDependency - S13 works down the six open Dependabot PRs - The skills rule allows paths with a stated trade-off, as the Inspector does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a3e0e86 commit 93b83d3

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

‎docs/agent-guidance-inception.md‎

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The **Sub-issue** column points into [§9](#9-proposed-sub-issues).
8484
| Every PR references an issue | `Closes #N` first line; no issue-less PRs | Transfer | — | S1, S6 |
8585
| Project Status and Direction | Branch table: `v2/main` develop, `main` release, `v1/main` maintenance | Adapt | No `v1/main` line here. `v2/main` develops and `main` releases (the default branch, and what users see) | S1 |
8686
| Maintenance rules | Keep READMEs and `AGENTS.md` in sync; procedures change in their skill | Transfer | Plus per-server READMEs and `RELEASING.md` (#4473) | S1 |
87-
| Maintaining the skills | `verify:skills`, `disable-model-invocation` explicit and defaulting to `false`, eval cases, listing budget, no `paths` | Transfer | — | S2 (rules land with the harness) |
87+
| Maintaining the skills | `verify:skills`, `disable-model-invocation` explicit and defaulting to `false`, eval cases, listing budget, `paths` only when a skill is useless outside the matched files (with the trade-off stated in the PR) | Transfer | — | S2 (rules land with the harness) |
8888
| Issue-driven Work Style | Board invariants: real issues only, labels, milestones, Priority, `Incoming` ⇔ unmilestoned, `Done` = shipped, branch naming, Copilot loop, manual close on `v2/main` | Adapt | One board (#43), not two. The version label is always `v2`. Type labels need `chore` (§8). Server-scope labels already exist | S1 (rules), S5–S7 (recipes) |
8989
| Responding to Code Reviews | Judge against the issue, decline scope creep, reply in each thread, then a PR-level summary | Transfer | — | S1 |
9090
| Always test new or modified code | Per-file ≥ 90 on all four dimensions, justified `v8 ignore`, test placement | Adapt | The TS half (all four dimensions) comes from #4854. The Python half (per-file lines and branches, the dimensions coverage.py measures) comes from #4855: coverage.py, justified `# pragma: no cover`, per-file script | S10 |
@@ -130,7 +130,7 @@ The **Sub-issue** column points into [§9](#9-proposed-sub-issues).
130130
| `verify:typecheck-coverage` | Every tracked TS file gets a `tsc` pass | Adapt | Per-workspace `tsconfig` (tests are excluded in some servers today) | S3 |
131131
| `verify:action-pins` | Credentialed jobs use SHA pins with `# vX.Y.Z` | Transfer | — | S13 |
132132
| `verify:test-timeouts` | Resolves every Vitest project's budgets; asserts no `retry` | Adapt | Keep the no-retry assertion only. Defer the budgets machinery until a timeout problem shows up | S10 |
133-
| `verify:dep-lockstep` | One version per install-crossing dependency across 5 installs | N/A | One workspace lockfile for TS; each Python server has its own `uv.lock` and its own deps by design | — |
133+
| `verify:dep-lockstep` | One version per install-crossing dependency across 5 installs | Adapt | A single workspace lockfile can still resolve different versions per workspace, and the manifests already declare different ranges (e.g. `typescript` `^5.6.2` / `^5.8.2` / `^5.3.3`). The adaptation is a smaller guard: every **shared TS devDependency** (`typescript`, `vitest`, `@vitest/coverage-v8`, `prettier`, `@types/node`) is declared with one range across workspaces, or hoisted to the root. Python servers stay independent by design | S3 |
134134
| `verify:install-fresh` | `node_modules` matches its lockfile | N/A | Single workspace install; `npm ci` in CI already enforces it | — |
135135
| `verify:bundle-externals` / `verify:build-gate` | Bundler guards for tsup/Vite output | N/A | Servers compile with plain `tsc` | — |
136136
| `smoke:*` (launcher/cli/tui/web/engines), `local:storybook` | Built-artifact smokes of the three clients | Adapt | Inverted: a **boot smoke per server over each transport it implements** (stdio for all; SSE and Streamable HTTP for `everything`), from the built `dist/` (TS) and console script (Py): connect, list, call one tool. Only a thin spawn test, per #4854/#4855 | S10, S11 |
@@ -440,13 +440,19 @@ W6 S13 dependency & SDK sweeps replace Dependabot PRs
440440
them (`npm run validate --workspaces`) plus any root-only guards.
441441
`verify:format-coverage` and `verify:typecheck-coverage` adapted.
442442
`typescript.yml` keeps its per-package matrix, and each leg runs **only its
443-
own package's** `validate` rather than the whole monorepo. Add the
444-
format/lint/validate rules to `AGENTS.md`.
443+
own package's** `validate` rather than the whole monorepo. A separate
444+
**root-guards CI job** runs what no package leg covers: the root `format`
445+
and `lint` of root files, `verify:format-coverage`,
446+
`verify:typecheck-coverage`, and the shared-devDependency version guard
447+
adapted from `verify:dep-lockstep` (§2.3). Add the format/lint/validate
448+
rules to `AGENTS.md`.
445449
- Acceptance:
446450
- `npm run validate` passes on a clean checkout, and so does
447451
`npm run validate -w <package>` for each server.
448-
- Each CI matrix leg gates only its own package.
449-
- CI fails a PR with a formatting or lint finding.
452+
- Each CI matrix leg gates only its own package, and the root-guards job
453+
gates the rest.
454+
- CI fails a PR with a formatting or lint finding in a package or a root
455+
file, or with a divergent shared devDependency range.
450456
- `everything`'s per-package Prettier setup is folded into the root one.
451457

452458
**S4 (#4865). Python gate parity**
@@ -598,8 +604,13 @@ is more than one PR.
598604
- Add `verify:action-pins` for every credentialed job: `release.yml`'s
599605
publish jobs **and** `claude.yml` (`id-token: write`, `ANTHROPIC_API_KEY`).
600606
- Add the `AGENTS.md` "dependency updates are issue-driven" rules.
607+
- Work down the **existing Dependabot PR backlog** (six open at the time of
608+
writing): convert each still-needed bump into an issue for the sweep
609+
flow, and close the PR with a pointer to it.
601610
- Acceptance:
602-
- No Dependabot PRs open after merge.
611+
- No new Dependabot PRs open after merge.
612+
- Every Dependabot PR that was open at merge time is closed, with a pointer
613+
to its replacement issue or a reason.
603614
- Each sweep's dry run **writes nothing** and prints the issue payload it
604615
would file, with correct labels and milestone. Live filing is exercised
605616
by script tests with a mocked `gh`, not against the real tracker.

0 commit comments

Comments
 (0)