Skip to content

Latest commit

 

History

History
92 lines (81 loc) · 7.23 KB

SWEEP.md

File metadata and controls

92 lines (81 loc) · 7.23 KB

Coverage sweep runbook — for an AI session, on request

How to re-run the capability-coverage gap hunt that built and audited this checklist. A human should only need to say "跑一轮 coverage sweep" — everything below is executable by the AI session itself. Expected cadence: before each major release, or after any large platform surface lands.

This is the AI-participation half of keeping the checklist current. The other half is mechanical but still operator-triggered: scripts/check-platform-checklist.mjs fails when a new metadata kind is unmapped (coverage ratchet) or a spec enum grows a value a matrix item was pinned against (enumSource freshness ratchet).

⚠️ Those ratchets are NOT wired into per-PR CI — by maintainer decision they run on a periodic manual cadence (see this dir's README.md "Operating cadence", and the recorded note at .github/workflows/lint.yml). So they do not catch drift on the PR that causes it; they catch it at the next manual run. Do not read a green ledger as "drift is already gated" — between runs, an unmapped kind or a grown enum sits undetected on main, which is precisely why a sweep must re-derive from source rather than trust the last green check. Cost is not the reason it stays out of CI: measured 2026-08-17 on a 190-item ledger, the validator alone is ~0.12–0.18 s and the full pnpm check:platform-checklist (selector self-test + validator) is ~0.25 s of actual work, zero-dependency and token-free — the pnpm wrapper's own startup dominates any figure you measure through it, so time the scripts directly if the number matters. The reason is PR independence: the checklist is a QA ledger, not a code gate, so an unrelated PR is never blocked by checklist drift.

This sweep catches the harder class — a whole surface or behavior nobody wrote an item for — which no deterministic gate can find. Note what that leaves uncovered even in principle: new behavior inside an existing kind is invisible to BOTH ratchets (no new kind, no new enum member), so it is found only here.

What a sweep is

Six READ-ONLY gap-hunter agents, each enumerating the platform from a different angle and diffing it against the current checklist. Different angles catch different miss classes — the 2026-08 sweep's finds (4 factually-stale waivers, the untested built-in apps, sharing rules, the ACTION_LOCATIONS matrix) each came from a different angle a single reader would not have covered.

angle enumerate from catches
1. Console UI surfaces objectui packages (app-shell chrome, plugin-*, e2e specs) interactions covered piecemeal but never as a surface (drag, guards, personalization, buttons)
2. Spec enums every z.enum / union / const array in packages/spec/src + the formula function lib behavior-bearing enums with no variants matrix
3. Routes & runtime ALL route ledgers (runtime, rest, service-*, auth) + non-ledgered mounts routes reachable but semantically untested; dispatcher-vs-hono seams (#3361 class)
4. Built-in apps packages/apps/{setup,studio,account} page by page admin/user pages nobody walked; settings/session/org surfaces
5. Docs claims content/docs/capabilities/*.mdx, release plans, showcase tours promised capabilities with no item; docs advertising retired features (PD#10)
6. Surface kinds vs the one design system objectui apps/console/src/preview-gallery.tsx; the @object-ui/components primitives a surface composes (Dialog, Table, Input, Checkbox, Button, the custom wrappers under packages/components/src/custom/); every widget that composes them into a surface kind — dialog, record picker, list, form, record page, dashboard, empty state, loading state surfaces that pass their functional items but override the design system — a wrapper carrying a second border, a container killing the primitive's header rhythm, a fixed width unrelated to content, selection without the Checkbox primitive, split status bars, a confirm enabled at zero selected, navigational links inside a picker (the RecordPickerDialog class, 2026-10)

How to run it

  1. Read the current state first — every areas/*.json, coverage.json, and this dir's README/RUNNER. The gap is only real if nothing already covers it.
  2. Dispatch the six hunters in parallel, READ-ONLY (they write no files). Each returns a structured gap table: surface | evidence path | current coverage (item id or NONE/partial) | proposed item id | sketch | stock fixture?. Give each hunter the list of already-resolved gaps so they don't re-report.
  3. Dedupe the six reports into one register (the 2026-08 sweep used a PENDING-GAPS.md scratch file, since deleted). Overlap is expected and is signal — a gap found from three angles is high-priority.
  4. Author the new items via per-area writer agents, one area file per writer so they never collide. Every item follows the deep-test contract in README.md; a fixture that doesn't exist is a blocked/knownGap, never faked coverage.
  5. Reconcile coverage.json centrally (a single writer): un-waive any kind a hunter proved has a stock fixture, map new items to their kinds, pin enumSource on any new variants matrix.
  6. Validate node scripts/check-platform-checklist.mjs until green, then surface product defects / docs drift to the maintainer in FOLLOW-UPS.md — with the authored items and the reconciled coverage.json, that register is the sweep's whole durable output. A sweep files no run record: that artifact belongs to checklist-test, and it never lands under runs/ (git-ignored) but as one qa-run GitHub issue — runs/README.md, body contract in RUNNER.md.

Discipline that made the 2026-08 sweep trustworthy

  • Ground every claim in source before asserting — hunters cite real file paths; writers read the cited source before writing a clause. Several briefs I gave the writers were factually wrong (referenceFilters renamed to lookupFilters, crm-workbench is React not declarative, MCP-off is 404 not 501) and the agents corrected them against source rather than parroting.
  • Stale waivers are the highest-value find. Four of six coverage waivers turned out false (api/datasource/mapping/hook all ship stock fixtures). Re-audit every waiver each sweep — a waiver is a claim that ages. Confirmed again 2026-08-17: the two waivers that survived that sweep (book, doc) were also false. Both claimed the kinds are "display-only, no independent runtime behavior to gate beyond serving"; the REST read layer in fact runs a three-member audience vocabulary with an ADR-0049 fail-closed branch, a two-layer gate (book audience, then per-entry doc-audience union), a deliberate orphan-group non-leak rule, and locale resolution — an access-control surface. coverage.json now carries zero waivers. Running total: 6 of 6 waivers ever written turned out stale, which is the strongest argument in this file for auditing them against the runtime rather than against their own prose.
  • Defects found while grounding go to FOLLOW-UPS.md as expected-fail probes, not silent passes; security-sensitive ones are not filed publicly without the maintainer.