Repository navigation
docs(rfc): propose profile artifacts and subject source writes - #1485
Merged
Merged
Conversation
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 PR close?
RFC-only proposal; no tracking issue.
Rationale for this change
Applications need to keep a user's message in a shared conversation Scope while accumulating the same evidence in an ordinary Scope addressed by a business subject key. Each Scope should be able to generate its own Profile and use existing Artifact APIs.
What changes are included in this PR?
profileArtifact Family, with one Profile snapshot per Scope.subject_keythrough existing Scope Bindings (integration=subject,kind=user). Subject writes create or reuse a binding and reject an explicit Scope mismatch; management APIs retain rebind/unbind behavior.pc_profile_policies; reuse existing Artifact, Candidate, Source Cursor, Scope Binding, and scheduler tables, with concrete row examples and server-owned BLOB metadata.allow_defaultto prevent subject lookups falling back to a default Scope.Are there any user-facing changes?
This is a design proposal only; it changes no runtime code, OpenAPI contract, or persisted database schema. If implemented, it adds opt-in Profile behavior and a subject dual-write convenience endpoint. Existing binding management and single-Scope Source behavior are preserved. Multiple subjects may share a Scope; rebinding does not migrate historical data.
How was this change tested?
git diff --checkCI=true make docs-test(website lint, build, and static export verification).AI usage statement
Codex was used to draft, translate, inspect repository contracts, and validate the RFC. The design incorporates the author's explicit decisions on Scope Binding behavior, subject writes, table reuse, and review semantics.