Skip to content

W1: quality-view vocabulary, checkpoints, ADR 0035 - #590

Merged
neuromechanist merged 7 commits into
feature/issue-586-epic-pipeline-progressfrom
feature/issue-588-w1-vocabulary
Nov 25, 2026
Merged

neuromechanist merged 7 commits into
feature/issue-586-epic-pipeline-progressfrom
feature/issue-588-w1-vocabulary

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Phase W1 of website#588 (epic nemarOrg/nemar-cli#2324, nemar-cli ADR 0137): the view vocabulary, the checkpoint copy, and website ADR 0035.

Changes

  • scripts/copy-quality-views-vocabulary.mjs copies nemar-cli's vendored shared/contract/neuroschema/views/registry.json to src/lib/quality-views/vocabulary/registry.json and every views/vectors/*.json to test/fixtures/quality-views/vectors/, byte for byte. Each source is checked against nemar-cli's SHA256SUMS.json before anything is written, and the script writes pin.json (neuroschema 0.6.0, commit e09ed407, each file's path, copy, size and SHA-256). --check writes nothing and fails on any difference or unpinned file.
  • test/quality-views-vocabulary-drift.test.ts: the copies match pin.json (always runs); the pin matches nemar-cli's list (same version and commit, same digests, and every registry or vector file nemar-cli lists is copied); pinned files found beside the list are re-hashed. Strict through NEMAR_CLI_QUALITY_VIEWS in CI (new sparse paths: SHA256SUMS.json and registry.json); otherwise a sibling checkout, or a visible skip.
  • STANDARD_CHECKPOINTS loses figures (the fourth copy ADR 0137 counts); an old run reporting figures gets no anchor.
  • Website ADR 0035, index entry, AGENTS.md map. Status proposed, like nemar-cli ADR 0137.
  • Biome ignores the vocabulary directory (byte-for-byte copies); .gitattributes marks the vectors generated (about 7 MB, tests only, never shipped).

Testing

  • bun run typecheck (0 errors), bun run lint
  • Targeted Vitest: the new drift test, compute-pipeline-contract-drift, compute-pipeline-view, with NEMAR_CLI_QUALITY_VIEWS and NEMAR_CLI_COMPUTE_ADMIN_CONTRACT pointed at the nemar-cli epic branch: 40/40 (39 before the review fixes added a case)
  • The pipeline drift test fails against the nemar-cli epic before the checkpoint change and passes after
  • Review fixes: every vectors/<name>.json is copied and any other vectors/ entry is refused (script and drift test); Biome also ignores the copied vectors; ADR 0035 decision 5 defers placement precedence and refusals to ADR 0137's 2026-11-24 amendment
  • Mutations: an upstream vectors/ic_activity.v2.json fails the drift test and --check; a vectors/nested/ entry fails both; a changed byte in a vector copy fails; a changed nemar-cli registry fails; an unpinned file fails --check
  • Full bun run test, build and e2e not run (no shipped code path changes in this phase)

Expected red in CI: the vocabulary drift test and the pipeline drift test both compare with nemar-cli dev, which does not carry neuroschema 0.6.0 or the checkpoint change until epic nemarOrg/nemar-cli#2324 merges there. Same accepted pattern as Phase 4b.

Refs #588, nemarOrg/nemar-cli#2324

Registry and neuroschema 0.6.0 parity vectors copied byte for byte from nemar-cli's vendored views/ by scripts/copy-quality-views-vocabulary.mjs, pinned in pin.json. Tested: --check passes; an unpinned file fails it.
Copies held to pin.json on every run; pin held to nemar-cli SHA256SUMS.json (strict via NEMAR_CLI_QUALITY_VIEWS in CI). Tested: passes against the nemar-cli epic; a changed copy or upstream file fails.
nemar-cli ADR 0137. Tested: pipeline drift test green against the nemar-cli epic (red before), view tests.
Website decision for nemar-cli ADR 0137; index and AGENTS.md map updated.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Every vectors/<name>.json is copied; any other vectors/ entry is a problem in the script and the drift test. Tested: ic_activity.v2.json and a subfolder entry each fail.
@neuromechanist

Copy link
Copy Markdown
Contributor Author

Review r1 (code, tests, comments): clean apart from 2 Moderate + 1 suggestion, fixed in 9c74e81 and verified by the driver (vectors/ entries the copy rule cannot place now fail loudly in both script and test; ADR 0035 decision 5 follows ADR 0137's 2026-11-24 placement rules; Biome ignores the copied vectors). CI: only the two expected drift tests fail (compute-pipeline-contract-drift and quality-views-vocabulary-drift), which stay red until nemar-cli dev has epic #2324, per the Phase 4b precedent. Squash-merging into the website epic branch.

@neuromechanist
neuromechanist merged commit 515a38b into feature/issue-586-epic-pipeline-progress Nov 25, 2026
3 of 4 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-588-w1-vocabulary branch November 25, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant