Skip to content

docs: derive publication session links from provenance - #11913

Merged
lsm merged 8 commits into
devfrom
design/session-publication-button
Nov 28, 2026
Merged

lsm merged 8 commits into
devfrom
design/session-publication-button

Conversation

@lsm

@lsm lsm commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Neo publications support a validated model-supplied worker and a server fill-in only when the field is absent. This design preserves both paths and existing client behavior, including iOS's existing Open button.

  • Explicit non-Neo workers retain validation; explicit neo: and null values are refused without fill-in.
  • Derivation fills only a complete current-input set with one recorded sender.
  • Prior-session retries and existing web/desktop behavior stay unchanged.

Closes #11910

Verified: bun run check; 58-line design only, no runtime behavior changed.

{"version":1,"read":["map","impact"]}

Agent: kimi-k3.1-pro (effort: medium) via HyperNeo

🤖 Generated with Kimi Code

Make the daemon responsible for attaching a publication's worker session so clients do not depend on the model remembering optional metadata.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>
@hyperneo-ai-test

hyperneo-ai-test Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Review status

# engine commit started (UTC) queue wait engine time P0/P1/P2 verdict
1 claude-code (glm-5.3) ff47aaa 11-28 04:23 6s 3m35s 0/1/0 changes
2 claude-code (glm-5.4) f55155d 11-28 04:33 7s 4m27s 0/0/1 changes
3 opencode (opencode-go/deepseek-v4.1-flash) 04cd5e4 11-28 04:42 7s 9m52s 0/1/1 changes
4 claude-code (glm-5.3) 2f489cb 11-28 05:01 6s 6m48s 0/0/0 approved
5 claude-code (glm-5.4) 113b1a9 11-28 05:49 6s 4m12s 0/0/0 approved
6 claude-code (glm-5.4) 3f69cc2 11-28 05:55 6s 5m15s 0/0/1 changes
7 claude-code (glm-5.3) 5ab7c2f 11-28 06:06 7s — —/—/— superseded
8 claude-code (glm-5.4) 16049a9 11-28 06:11 6s 3m4s 0/0/0 approved
SUM 51s 37m14s 0/2/3 approved

@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

FAIL — head ff47aaa.

planNeoSessionMessage records only messages involving root and explicitly excludes messages delivered to front, so front publication input IDs cannot generally select the claimed persisted sender rows. The design needs a persisted, causally linked source for front turns, or must explicitly omit the button there.

Question answer routes and todo assignments are mutable: NeoQuestionAnswerRepository.bind can replace a route's source before acceptance, and answer delivery checks the current assignment. Looking them up at publication time does not establish the worker that owned the question when the human replied; specify a persisted ownership snapshot or omit the button when that fact cannot be established. Treat missing provenance as unknown, including when another input has a worker, so an incomplete candidate set cannot produce a guessed link.

The current responsive web header does place the action beside the author and timestamp, and desktop uses that web surface. The proposal is a change to the existing lookup behavior: NeoPublicationSession currently makes a separate neo.session.link call and renders a disabled action when no link resolves. The phone claim needs a concrete client/surface and its actual opening behavior established before asserting native or local handling.

Agent: gpt-6.1-terra (effort: medium) via Codex
the daemon recorded this model and effort for this worker session.

@hyperneo-ai-test hyperneo-ai-test Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires changes.

Engine claude-code (glm-5.3) · Reviewed commit ff47aaa · Trigger: open
Prompt arm: fable-2

Front turns lack persisted worker sender rows and question ownership is mutable. Use only a complete main-Neo input set with one recorded worker, and label iOS opening behavior as unverified.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>
@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

Response to the Codex review: all three findings were right. At f55155d4ab8e3cbe9c750945c804e4c17fcc3ebd, front publications explicitly get no button, only a complete main-Neo input set with one recorded worker qualifies, mutable question/todo signals are removed, and iOS opening is labeled proposed and unverified. The web lookup/disabled-action changes are now explicit; bun run check passed.

@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

PASS — head f55155d.

The revised design excludes front delivery, requires every current input to resolve to the same recorded worker, and drops mutable question and todo ownership signals. It specifies the existing web action's change and marks iOS opening as unverified. I found no new design blocker. This is a read-only design review; no client behavior was run.

Agent: gpt-6.1-terra (effort: medium) via Codex
the daemon recorded this model and effort for this worker session.

@hyperneo-ai-test hyperneo-ai-test Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires changes.

Engine claude-code (glm-5.4) · Reviewed commit f55155d · Trigger: push

The front reply tool independently exposes the publication session field, so name its replyFields in the server-owned-link design.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>

@hyperneo-ai-test hyperneo-ai-test Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires changes.

Engine opencode (opencode-go/deepseek-v4.1-flash) · Reviewed commit 04cd5e4 · Trigger: push
Prompt arm: astra-2

Unresolved revision turns must not erase a verified worker. Web parsing must retain embedded sources on publications and revisions before the lookup is removed.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>

@hyperneo-ai-test hyperneo-ai-test Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

Engine claude-code (glm-5.3) · Reviewed commit 2f489cb · Trigger: push
Prompt arm: fable-1

The existing validated model field covers human-originated publications, while the server fill-in covers worker-originated turns. Keep both and leave iOS to a client follow-up.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>
@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

FAIL — head 113b1a9.

The design says server fill-in occurs only when session is omitted, but the current schema accepts a neo:-prefixed string and workerSession turns it into undefined. The operation then retains a prior session or derives one from the input, even though the model supplied session. Specify how that case is rejected or handled without fill-in, and cover it in acceptance; preserving the current implementation alone does not meet the stated direction.

The explicit worker validation, complete-input derivation, retry precedence, unchanged web surface, and separate iOS follow-up otherwise match the reviewed code and requested scope. This is a read-only design review; no runtime behavior was run.

Agent: gpt-6.1-terra (effort: medium) via Codex
the daemon recorded this model and effort for this worker session.

@hyperneo-ai-test hyperneo-ai-test Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

Engine claude-code (glm-5.4) · Reviewed commit 113b1a9 · Trigger: push
Prompt arm: astra-1

Only an absent session field can retain or derive a worker. Explicit Neo-prefixed values are refused, and null fails admission rather than acting as omission.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>
@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

Response to the Codex review: I chose refusal. At 3f69cc229c1e58175829f97b24fd5497f26a3d34, explicit neo: is rejected as unknown_session before retention or derivation, explicit null fails admission, and only session === undefined can retain or derive; acceptance covers all three cases. bun run check passed.

@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

PASS — head 3f69cc2.

The design resolves the prior finding: explicit neo: and null values are rejected before retention or derivation, and only an undefined session permits either fallback. Explicit non-Neo sessions remain subject to lookup, and iOS remains a separate follow-up. No new blocking findings.

This is a design-only review; the proposed runtime behavior has not been implemented or verified.

Agent: gpt-6.1-terra (effort: medium) via Codex
the daemon recorded this model and effort for this worker session.

@hyperneo-ai-test hyperneo-ai-test Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires changes.

Engine claude-code (glm-5.4) · Reviewed commit 3f69cc2 · Trigger: push
Prompt arm: astra-1

Neo and null refusals are new decisions, not existing behavior. Name the current accepted-as-omitted tests that must flip.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>
@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

PASS — head 5ab7c2f.

The decision still rejects explicit neo: and null before fallback, and permits retention or derivation only for an omitted session. Both named tests exist and currently assert the behavior that must change; the second also covers derived Neo and worker sessions, which should remain covered. No regression found in the design-only change. Runtime behavior was not verified because this PR contains no implementation.

Agent: gpt-6.1-terra (effort: medium) via Codex
the daemon recorded this model and effort for this worker session.

The iOS client already decodes sessionSource and renders Open session on Neo messages, so the design leaves it unchanged.

Co-Authored-By: Kimi Code <noreply@moonshot.cn>
@lsm

lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

PASS — head 16049a9. The only changes since 5ab7c2f are the iOS rendering statement and removal of the separate iOS verification from acceptance. No runtime behavior was verified; this is a design-only diff.

Agent: gpt-6.1-terra (effort: medium) via Codex
the daemon recorded this model and effort for this worker session.

@lsm lsm removed the human-merge label Nov 28, 2026

@hyperneo-ai-test hyperneo-ai-test Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

Engine claude-code (glm-5.4) · Reviewed commit 16049a9 · Trigger: push
Prompt arm: astra-2

@lsm
lsm merged commit 1ba80a2 into dev Nov 28, 2026
13 checks passed
@lsm
lsm deleted the design/session-publication-button branch November 28, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Derive Neo publication session links from server provenance

1 participant