feat(generation): standardize source access - #1461
Draft
Zxf-xufeng wants to merge 13 commits into
Draft
Conversation
…ct-rest-api-implementation # Conflicts: # integrations/dsh/plugins/powercontext/lib/index.js # integrations/dsh/plugins/powercontext/openapi/powercontext.yaml # integrations/dsh/plugins/powercontext/scripts/openapi-ops.mjs # integrations/dsh/plugins/powercontext/src/client.ts # integrations/dsh/plugins/powercontext/src/operations.generated.ts # integrations/dsh/plugins/powercontext/tests/client.spec.ts # integrations/dsh/plugins/powercontext/tests/operations-coverage.spec.ts # integrations/opencode/plugins/powercontext/lib/index.js # integrations/opencode/plugins/powercontext/src/client.ts # integrations/opencode/plugins/powercontext/src/operations.generated.ts # integrations/pi/plugins/powercontext/src/client.ts # integrations/pi/plugins/powercontext/src/operations.generated.ts # openapi/powercontext.yaml # scripts/generate_api.py # scripts/generate_js_operations.py # src/powercontext/builtin/runtime/application.py # src/powercontext/builtin/runtime/relational.py # src/powercontext/client/client.py # src/powercontext/http/__init__.py # src/powercontext/http/_generated/operations.py # src/powercontext/server/app.py # tests/e2e/test_builtin_runtime.py # tests/test_api_contract.py # tests/test_client.py # tests/test_js_operations.py
…ct-rest-api-implementation
Base automatically changed from
codex/source-artifact-rest-api-implementation
to
master
September 4, 2026 16:53
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.
Which issue or RFC does this close?
Implements #1458. This is a stacked change on #1438 and should be reviewed after the foundational Source and Artifact REST API implementation.
Why is this change needed?
Artifact Create and Replace persist
lineage_onlyContent Sources as durable provenance. Those records must remain available to public and management reads, but they must not feed Artifact generation. The existing Memory, Experience, Skill, Handoff, and Candidate paths read Sources independently, so eligibility and Source-window behavior can drift or be omitted by a new family.What changed?
SourceRepository.get_manyfor ordered, deduplicated exact reads andlist_windowfor SQL-bounded(after, through]journal reads;source_not_eligiblemessage and expose only the submitted SourceRef in error details;User-facing or breaking changes
lineage_onlySource now fails atomically with422 source_not_eligiblebefore model or Artifact writes.lineage_onlyrecords and still advance through the selected window; an all-filtered window is a no-op.Validation
make checkAI usage
AI was used to trace existing Source consumers, implement the shared access path and repository methods, draft regression tests, and review compatibility boundaries. The code, behavior, and test results were reviewed by the author.