Repository navigation
Resource Management Phases 0-3 | Test harness, catalog, graph integration, file provider - #177
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.
Add missing SPDX license header to resource.go for consistency with namespace.go and test files. Add make test-race target so race detection runs through make, not bare go commands.
Graph Integration: wire ResourceManager and NamespaceMap into Graph lifecycle. FillSlot creates implicit edges from resource identity (OriginNodeID). extractResource reflection helper handles direct Resource, embedded struct, and map[string]any forms. Removed dead BackedUp annotation (Decision #9: ledger is sole source of truth).
…ture/resource-management
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
devlore-testbinary + graph test harness withtnamespace (expectations), trace mode, and 4 baseline.startest scriptsResourceManager(append-only ledger with monotonic IDs),NamespaceMap(URI→ResourceID with Resolve/Shadow), URI helpers with scheme constants and file path canonicalizationextractResourcereflection helper, removed dead BackedUp annotationTest plan
make test— all passmake vet— cleanmake test-race— no data racesBackedUpreferences remain in code/tests