docs: establish knowledge base (constitution, SPEC, ADRs, S0-S12, audit) - #4
Merged
Merged
Conversation
Adds griff-core::classify with BarClass (Riff/Solo/Breakdown/Clean/Unknown), BarFeatures (note count, avg velocity, pitch span), bar_features() for metric extraction, and classify_bar() for heuristic labelling. CLI gains `griff classify <file.mid>` which prints a bar-by-bar table showing class, note count, average velocity, and pitch span for every track. 12 new unit tests; 52/52 pass. cargo fmt and cargo clippy -D warnings clean.
Adds the constitutional documentation core before any refactor: - docs/glossary.md: condensed English constitution (all terms preserved, prose tightened from the Russian source). - docs/SPEC.md: scope and the non-negotiable hard rules. - docs/adr/0001-0009 (Nygard, append-only) + index: workspace, canonical score model, master timeline, forbid unsafe, swancore-first, Standard E, CLAP-first, heuristic-before-ML, ADR format. - docs/stages/S0-S12: canonical roadmap per glossary, one short doc each (goal / IO / approach / acceptance / open questions). - docs/audit/2026-05-stage-label-reconciliation.md: honestly records that earlier feat(sN) commit labels predate this constitution and do not match the canonical roadmap; git history kept, canonical numbering mandatory forward, current code reclassified as pre-canonical baseline. - docs/decisions.log.md, AGENTS.md, CLAUDE.md, README.md routing. No code changes; test suite untouched and green.
This was referenced Jun 20, 2026
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.
No description provided.