Repository navigation
STR-02c: working-tree map in runtime - #167
Merged
Merged
Conversation
added 8 commits
October 1, 2026 01:07
…cked maps (STR-02c T02)
…thspec commits (STR-02c T03)
…oss (STR-02c T04)
…views (STR-02c T05)
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.
Reverses STR-02b D1. While the tracked
.frame/STRUCTURE.jsonheld the working-tree view, it differed from the committed map, and Git refusedcheckout/switch/pull.What changes
.frame/runtime/structure/working.json(never committed). The trackedSTRUCTURE.jsonis the committed view plus prose edits, and is the generation prior for the live view (D1, D2).--full, explicit files and--checkoperate on the live view (D3).git statusstays clean after a commit. A file with unstaged edits is never overwritten. The worker repairs the stale index a pathspec commit leaves behind (D6).--changedis now the same as--staged, so old--changed+git addsnippets work; thatcheck-freshnessfinding is gone (D7).authoredView) is archived torecovery/and restored. Hand edits are kept, andcheck-freshnessreports them (D8).find-module,module-hint,check-freshnessandframeStore.getStructureread the live view first (D9). AGENTS/REFERENCE/QUICKSTART wording is updated. The STR-02b hook template's hash is added to the upgradable list.Tests
npm test: 1109 passing. New real-repository tests coverswitch/checkout/pullwith live untracked and unstaged work, a clean map after a normal commit, pathspec repair, an old snippet, the upgrade (restored or kept), and working-first readers.Also checked on this repo:
structure-lifecycle.js --oncerestored the tracked map (old bytes archived), andgit statusis clean for it.Spec:
.frame/specs/str-02c-working-view-in-runtime/