Repository navigation
Quality inventory copy and state model - #632
Merged
neuromechanist merged 9 commits intoNov 28, 2026
Merged
neuromechanist merged 9 commits into
neuromechanist merged 9 commits into
Conversation
Deploying nemar-website with
|
| Latest commit: |
08ac941
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fed05a6f.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-issue-625-phase0b-qu.nemar-website.pages.dev |
34 tasks done
neuromechanist
merged commit Nov 28, 2026
941efc2
into
feature/issue-625-epic-quality-axes
3 of 4 checks passed
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 0b.1 of the quality-axes epic: the contract copy, the pure state model and the tokens the Data quality tab (0b.2) draws from. No visible change.
What is copied and how it is pinned
scripts/copy-quality-views-vocabulary.mjsgains a second source root, nemar-cli'sshared/contract/quality/, checked against its ownSHA256SUMS.json(nemar.contract-files.v1). It copiesinventory.jsonandcopy.jsonbyte for byte intosrc/lib/quality/vocabulary/(server bundle only) and writessrc/lib/quality/vocabulary/pin.json(nemar.website-vendored-quality.v1: path, copy, size, SHA-256, plus an informationalcopied_from_commit).inventory.schema.jsonis listed upstream and deliberately not copied (the page uses a hand guard); any other listed file is refused.--checkcovers both roots and keeps the recorded commit, so an unrelated nemar-cli commit does not fail it.cf2c3eff(item set 1.0.0, neuroschema 0.7.0). The same run re-pinned the view vocabulary at that ref: onlyneuroschema_versionandsource_commitchanged in its pin; no copied file's content changed (lead ruling on Q-0b-11).test/quality-contract-drift.test.ts: copies match the pin always; the pin matches nemar-cli strictly whenNEMAR_CLI_QUALITY_CONTRACTis set (CI), sibling checkout otherwise, visible skip when absent;describePinDriftunit cases (listed not copied, copied not listed, digest or size differs, unplaceable file, commit never compared)./shared/contract/quality/; Vitest env addsNEMAR_CLI_QUALITY_CONTRACT.Expected red in CI:
test/quality-contract-drift.test.tsandtest/quality-views-vocabulary-drift.test.tsfail against nemar-clidevuntil the nemar-cli quality-axes epic (nemarOrg/nemar-cli#2524) merges todev(one-merge rule: nemar-clidevfirst, websitestagingsecond). Locally green against the epic head.The model
src/lib/quality/inventory.ts:readInventory(hand guard: types, closed vocabularies, unique ids prefixed by their axis, prerequisites naming elements,supported_forinsideapplies_to, fix, reason and producer references) andINVENTORY, read once at module load.src/lib/quality/copy.ts:qualityCopy(throws on an unknown key, a missing or an unused param) andCOPY_KEYS_USED.src/lib/quality/states.ts: glyph and class per state and item value; words come fromcopy.json.src/lib/quality/version.ts:staleNote(dataset-version staleness, derived, never stored).src/lib/quality/axes.ts:evaluateQuality(preconditions, one Signal card per recipe, Metadata and Annotation panels, one banner by plurality with precedence ties) andmergeItemResults(gate states win, undeclared ids dropped and logged, storedstaleignored).src/lib/types.ts:Datasetgainsdata_complete,bytes_present,total_files(nemar-cli contract names).src/styles/tokens.css:--q-placeholder,--q-placeholder-track,--q-hatch,--q-dangerand seven--iclabel-*tokens in all three theme blocks;.rules/design-language.mdgets a "Quality states and ICLabel classes" table.Deviations from the card
copy.json, not the card's provisional names (state_word.<state>,qualifier.stale_dataset,info.exported,info.direction.*,precondition.integrity.complete|present|not_audited).--q-dangeris added:--color-dangeris not dark-lifted (about 2.6:1 on the navy ground), and a failed glyph must clear 3:1. The token test holds it.QualityInputgainsviewedVersion(Q-0b-2 version line),notPublic(Q-0b-5not_public) anditems(1b's item results, sonot_computablethrough a prerequisite is testable now).data_complete = 0fillsprecondition.integrity.presentwith formatted byte sizes, since the catalog stores bytes, not file counts. A byte-worded copy key in nemar-cli would read better; flagged for the lead.biome.jsonignoressrc/lib/quality/vocabulary(generated copies, like the views vocabulary).Tests and gates
bun run typecheck(0 errors),bun run linttest/quality-contract-drift.test.ts(12),quality-inventory(19),quality-copy(6),quality-axes(85, generated from the inventory: every element through every state its declaration can reach, banners, stale, preconditions, unlisted, recipe order, mixed modalities),quality-state-tokens(10),quality-views-vocabulary-drift(15)NEMAR_CLI_QUALITY_CONTRACT=<nemar-cli epic checkout>/shared/contract/quality/SHA256SUMS.jsondrift test green;copy-quality-views-vocabulary.mjs --checkgreen against the epic headbun run test(epic tostagingonly); CI's strict drift tests (red until nemar-cli#2524 reachesdev)Part of #625
Part of nemarOrg/nemar-cli#2524
Review round 1 (head 5663e52): integrity line prints no sizes and no bare word (byte copy key waits on nemar-cli#2545); a document that is not an object is not withheld (not processed);
notPublicrequired; site reason words held to the inventory with their sentences asserted in full; all four never-measured signal elements reach measured through an edited parsed fixture; drift test fails on a missing listed file; states declared once;Draftexported; duplicate item ids logged and dropped. Tests: axes, copy, inventory, drift 128 pass; strict drift 12 pass; typecheck, lint. The new-copy-key items (bytes sentence, modality-free not-supported sentence) follow once nemar-cli#2545 lands.Review round 1, copy keys (head 08ac941): re-copied the inventory and copy at nemar-cli epic 7736cb96 (nemar-cli#2545; pin moved; new 1a.1 reason words and definitions); the integrity line uses
precondition.integrity.present_bytes; elements with an emptysupported_forsayqualifier.not_supported_any, those supported for other datatypes keep the per-datatype sentence (both tested). Axes, copy, inventory, drift 152 pass; strict drift against 7736cb96 27 pass; typecheck, lint.Agentic AI tools were used. Workflows follow the Research Skills (doi:10.5281/zenodo.20696515). The author assumes full responsibility for this content and associated changes.