feat(demo): add scenario fixture for demo command (#202) - #225
Merged
Conversation
Define the static data module for the demo command: one predecessor decision (will be computed as superseded once the successor lands in history), one successor that retires it via Supersedes trailer (computed as active), and a proposal text that re-proposes the reversed approach. The fixture exports raw commit-message strings and identifiers only. Lifecycle is never stated — it is computed by foldLifecycle from the Supersedes trailer across chronologically ordered records (binding constraint from audit). Closes #202 Limit: fixture validation requires git in PATH for parseCommitMessage Blast: local Undo: easy Certainty: firm Record-Id: r-t1010demo Provenance: authored CommitLore-Version: 2.0.0
CommitLore — record lintTrailers: clean — 1 commit in Limits (1)
Trailer violations fail this check. Active constraints are informational — they are what the repository already decided, not a verdict on this PR. |
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.
Summary
T-1010 (#202) — Demo scenario fixture.
Adds
src/demo/fixture.ts: pure static data module exporting:predecessorCommitMessage— a schema-valid commit message (will be computed as superseded)successorCommitMessage— carriesSupersedes: r-demo01(will be computed as active)proposalText— re-proposes the reversed approach (used by T-1011)targetPath,expectedActiveRecordId,expectedSupersededRecordIdLifecycle is computed by
foldLifecycle, never authored in the fixture.What was tested
test/demo-fixture.test.tsSupersedestrailer → test fails; removingRecord-Id→ test fails; changing prose body → test still passestsconfig.jsonandbench/tsconfig.json)dist/rebuilt and committedCloses #202