Repository navigation
feat: architecture drift and historical plans over Git refs (preview) - #690
Merged
Merged
Conversation
- fixmap history / fixmap_history report decision disagreements: edges at the later ref that break a fixmap-deny-imports rule stated by an accepted decision record, with ADR path, rule, edge, and whether it was introduced. - Per-commit architecture snapshot cache outside the repository (scan cache location rules), checksummed; corrupt entries are ignored and rebuilt. --no-cache / noCache bypass it. - fixmap plan --at <ref> and fixmap_plan `at` (preview) rank against a committed state read from Git objects, honoring that commit's .fixmapignore and package scripts, without checkout or worktree changes. - Real temporary Git repository tests for drift, cycles, policy and ADR violations, odd paths, cache hit/corruption, unknown refs, and unchanged HEAD/status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
This branch was successfully deployed
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.
Finishes the CLI/MCP work for the Architecture drift and Time-travel graph ledger rows. Everything new is labelled preview.
What changed
fixmap history --from <ref> --to <ref>reports added/removed import edges, new/resolved cycles,.fixmap/policy.jsonboundary violations and coupling growth, in Markdown and JSON, with both exact commit IDs.--tothat break such a rule are reported as decision disagreements with the ADR path, title, rule, violating edge, and whether the edge was introduced in the range. Only this explicit syntax counts, and prose is never read. A malformed rule fails the whole record (decision-parse-failed), and records with any status other than accepted are ignored.FIXMAP_CACHE_DIRor the user cache using the scan cache's rules, and never written inside the scanned repo. Writes are atomic, each entry carries a sha256 checksum, and corrupt or edited entries are ignored and rebuilt. Entries expire after 7 days.--no-cache/noCachebypass it.fixmap plan --issue <task> --at <ref>(CLI helpPreview:) ranks against the repo at that commit, read from Git objects. It uses that commit's.fixmapignoreandpackage.jsonscripts and adds ahistorical-plandiagnostic naming the commit. It rejects diff/working-tree/--explain/verify/remote combinations and runs that have no task.fixmap_historyreturnsdecisionDisagreementsand acceptsnoCache.fixmap_planacceptsat(descriptionPreview (may change before v0.10.0):), validated insideparsePlanArguments.fixmap_context/fixmap_graphstill rejectat.preview: true), the CLI README is updated, andpackages/action/dist/index.mjsis rebuilt because Core changed.Ledger evidence
Architecture drift
packages/cli/test/history-drift.test.tscovers Markdown and JSON output with both commit IDs, andpackages/core/test/architecture-drift.test.tsasserts added/removed edges, a new cycle, a new policy boundary violation, and coupling growth across two real commits...and negated patterns, and confirm prose produces no rules.useCache: false, and writes nothing when the cache dir is inside the repo.Time-travel graph
plan --atexcludes files added after the ref and untracked worktree files, and includes the ref commit in diagnostics. The same holds through CLI, MCP and Core.odd dir/ünï cöde/a/b/c/d/e/new file.ts) appear correctly in edges and in the ADR rule pattern.git rev-parse HEADandgit status --porcelain --untracked-files=allare unchanged after the command.Verification
Per the updated process, the full
npm run ciwas not run locally. These were run on Windows:npm run typecheck,npm run lint,npm run check:action-bundle: passnpm test -w @aryam/fixmap-core: 75 files, 879 passed, 1 skippednpm test -w @aryam/fixmap: 23 files, all pass after updating two expected lists (the preview catalog and thefixmap_historyschema keys)Known limits
ARCHITECTURE_CACHE_VERSION, the same scheme the scan cache uses. A release that changes import-graph logic without bumping it would serve old snapshots for up to 7 days.decisionIdlink is not reported as an ADR disagreement; only rules written in the ADR count.Not touched: the ledger, CHANGELOG, versions, web changelog, Action source.
🤖 Generated with Claude Code