Repository navigation
Project discussions: author and answerable on user messages, attributed model input, ACP meta - #5
Merged
Merged
Conversation
…swerable Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…loop Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…sage a turn answers Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…aid what Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ystem text and session metadata Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…art metadata Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…md rows Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The replay meta's doc comment also names what messageId and parentId are on a replayed user message. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
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.
Six additive changes DocuMentor's project discussions rely on (documentor/FORK.md has a row for each). A client that sends none of the new fields gets today's behaviour, so the released image runs the currently pinned DocuMentor unchanged.
schema/v1/session.ts: a user message's info carriesauthor?: {id, name}andanswerable?: boolean.session/prompt.ts+session/message-v2.ts: an unanswerable message is context, never the message a turn answers;promptwithanswerable: falsestores and returns; a session with nothing answerable resumes without a step. In a session whose metadata is{ documentor: { kind: "discussion" } }, the model input prefixes each authored human message withName:.session/compaction.ts: in a discussion, the summary input prefixes each authored message withName:;pruneand the retained-tail count skip side remarks (answerable: false).acp/service.ts:_meta.documentor = { author, answerable, noReply, system, partMetadata }onsession/prompt,_meta.documentor.metadataonsession/new; a stored-only prompt answersend_turnwithout waiting for an idle event that never comes.acp/event.ts: replayeduser_message_chunkcarries_meta.opencodewith the author and the part metadata.sdk/js/src/v2/gen: regenerated;session.promptandsession.promptAsyncforwardauthorandanswerable.Verified locally: the
documentor:cases in the touched test files (event, service-session, prompt, message-v2, compaction; all pass in full),bun turbo typecheck,check:generated, andbinary-smoke.shon a--singlebuild.Design: TheFabFab/KPG
docs/superpowers/specs/2026-10-12-project-discussions-design.md.🤖 Generated with Claude Code