Repository navigation
Resource Management Phase 1 | ResourceCatalog, NamespaceMap, and URI helpers - #176
Merged
Merged
Conversation
Separate binary (cmd/devlore-test/) with process-level isolation for end-to-end testing of Starlark plan → graph → execute → verify. - internal/e2e/testrunner/: Runner, TestContext (t namespace), Tracer - 4 baseline test scripts: write_text, copy, write_and_read, compensation - Star extension: com.noblefactor.devlore.Test (host.exec pending) - Makefile: add devlore-test build target, fix stale STAR_REPO path - Restore t.Skip for #170, #171 (gen template projection gaps)
Append-only resource ledger with monotonic ID assignment, URI→ResourceID namespace with Resolve/Shadow semantics, and scheme-aware URI builder with file path canonicalization. Pure additions — no existing code changed.
Append-only resource ledger with monotonic ID assignment, URI→ResourceID namespace with Resolve/Shadow semantics, and scheme-aware URI builder with file path canonicalization. Pure additions — no existing code changed. Decision #9: the ledger is the sole source of truth for resource identity and lineage. Node annotations (resource.input/resource.output) eliminated from Phase 2 — they would duplicate ledger data and cannot represent resources produced at runtime.
Append-only resource ledger with monotonic ID assignment, URI→ResourceID namespace with Resolve/Shadow semantics, and scheme-aware URI builder with file path canonicalization. Pure additions — no existing code changed. Decision #9: the ledger is the sole source of truth for resource identity and lineage. Node annotations (resource.input/resource.output) eliminated from Phase 2 — they would duplicate ledger data and cannot represent resources produced at runtime. Legacy backup annotation flagged for removal in Phase 2.
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
ResourceManagerledger with monotonicres-<N>ID assignment, mutex-guarded for concurrent accessNamespaceMapwithResolve/Shadow/Currentfor URI→ResourceID tracking with version lineageResourceURI()helper withfile://path canonicalization (filepath.Abs+filepath.Clean) and scheme constants (file,git,pkg,svc,mem)Design Decision #9: The ledger is the sole source of truth for resource identity and lineage. Node annotations (
resource.input/resource.output) eliminated from Phase 2 — they would duplicate ledger data and cannot represent resources produced at runtime. Legacybackupannotation flagged for removal in Phase 2.Pure additions — no existing code changed, no existing tests modified.
Test plan
make test— all tests passmake vet— cleanlegacy|backward|compat|deprecatedin new code