-
Notifications
You must be signed in to change notification settings - Fork 0
Runtime Truth ratchet and Think-on-Echo model seam #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c124065
docs: add runtime truth standards audit
flyingrobots 826906d
refactor(errors): replace generic source failures
flyingrobots 6db72c8
chore: add runtime truth ratchet
flyingrobots e7df15d
feat: add think echo contract proof seam
flyingrobots f29694b
docs: define think memory data model
flyingrobots 138ee36
docs: clarify sponsor label convention
flyingrobots 1245c06
feat: derive Think Echo contract from model
flyingrobots 210337e
docs: define Think Echo integration plan
flyingrobots 4dd6e3e
fix: return MCP capture after local save
flyingrobots b52e423
fix: skip graph migration when current
flyingrobots 4e72709
fix: address PR review cleanup
flyingrobots 3a27ff4
Fix: correct source of truth wording
flyingrobots 1621502
Fix: normalize source of truth wording
flyingrobots File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,133 @@ | ||
| # Think-owned memory contract for the Echo proof. | ||
| # | ||
| # Source of truth: | ||
| # docs/design/0068-think-memory-data-model/think-memory-data-model.md | ||
| # | ||
| # GraphQL expresses the Think memory model. Echo must only receive generated | ||
| # generic intents and observation requests for this family. | ||
|
|
||
| directive @wes_op(name: String!) on FIELD_DEFINITION | ||
| directive @wes_footprint(reads: [String!], writes: [String!]) on FIELD_DEFINITION | ||
| scalar DateTime | ||
|
|
||
| enum ThoughtIngress { | ||
| CLI | ||
| MCP | ||
| MACOS | ||
| IMPORT | ||
| TEST | ||
| UNKNOWN | ||
| } | ||
|
|
||
| enum CausalRuntime { | ||
| ECHO | ||
| GIT_WARP | ||
| IMPORTED | ||
| } | ||
|
|
||
| enum RedactionState { | ||
| FULL | ||
| REDACTED | ||
| UNAVAILABLE | ||
| } | ||
|
|
||
| type ThoughtContent { | ||
| text: String! | ||
| mime: String! | ||
| digest: String! | ||
| length: Int | ||
| redactionState: RedactionState! | ||
| } | ||
|
|
||
| input ThoughtContentInput { | ||
| text: String! | ||
| mime: String! | ||
| digest: String! | ||
| length: Int | ||
| } | ||
|
|
||
| type CausalRef { | ||
| runtime: CausalRuntime! | ||
| coordinate: String | ||
| intentId: String | ||
| entryNodeId: String | ||
| basis: String | ||
| witness: String | ||
| migration: String | ||
| } | ||
|
|
||
| type ThoughtProvenance { | ||
| ingress: ThoughtIngress! | ||
| sourceApp: String | ||
| sourceUrl: String | ||
| ambientCwd: String | ||
| ambientGitRoot: String | ||
| ambientGitRemote: String | ||
| ambientGitBranch: String | ||
| importOrigin: String | ||
| repairOrigin: String | ||
| } | ||
|
|
||
| input ThoughtProvenanceInput { | ||
| ingress: ThoughtIngress! | ||
| sourceApp: String | ||
| sourceUrl: String | ||
| ambientCwd: String | ||
| ambientGitRoot: String | ||
| ambientGitRemote: String | ||
| ambientGitBranch: String | ||
| importOrigin: String | ||
| repairOrigin: String | ||
| } | ||
|
|
||
| type ThoughtCapture { | ||
| captureId: ID! | ||
| thoughtId: ID! | ||
| mindId: ID! | ||
| actorId: ID | ||
| writerId: ID | ||
| capturedAt: DateTime! | ||
| ingress: ThoughtIngress! | ||
| boundary: String | ||
| causalRef: CausalRef! | ||
| } | ||
|
|
||
| type ThoughtEntry { | ||
| thoughtId: ID! | ||
| mindId: ID! | ||
| capturedAt: DateTime! | ||
| content: ThoughtContent! | ||
| capture: ThoughtCapture! | ||
| provenance: ThoughtProvenance! | ||
| source: String | ||
| metadataJson: String | ||
| causalRef: CausalRef! | ||
| } | ||
|
|
||
| input CaptureThoughtInput { | ||
| mindId: ID! | ||
| actorId: ID | ||
| writerId: ID | ||
| capturedAt: DateTime! | ||
| content: ThoughtContentInput! | ||
| provenance: ThoughtProvenanceInput! | ||
| source: String | ||
| metadataJson: String | ||
| } | ||
|
|
||
| type CaptureThoughtResult { | ||
| entry: ThoughtEntry! | ||
| capture: ThoughtCapture! | ||
| causalRef: CausalRef! | ||
| } | ||
|
|
||
| type Query { | ||
| inspectThought(mindId: ID!, thoughtId: ID!): ThoughtEntry! | ||
| @wes_op(name: "InspectThought") | ||
| } | ||
|
|
||
| type Mutation { | ||
| captureThought(input: CaptureThoughtInput!): CaptureThoughtResult! | ||
| @wes_op(name: "CaptureThought") | ||
| @wes_footprint(reads: ["ThoughtEntry"], writes: ["ThoughtEntry"]) | ||
| } | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.