Skip to content

fix: refuse explicit null and Neo sessions on Neo publish - #11923

Open
lsm wants to merge 3 commits into
devfrom
fix/neo-publication-explicit-session
Open

lsm wants to merge 3 commits into
devfrom
fix/neo-publication-explicit-session

Conversation

@lsm

@lsm lsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Bug fix: Neo's publish treated an explicit session: null or a neo: session like an omitted one, so a send could quietly keep an earlier session or pick up a derived worker. Per the design in #11913, only an omitted session falls back now.

Closes #11922

  • null is rejected as invalid_publication before any fallback.
  • A neo: id is rejected as unknown_session without a lookup; derived sessions still drop Neo senders silently.
  • The two named unit tests are flipped (failing commit first), and the verify journey covers both refusals on a requestId that already has a stored session.

Verified: the publication-session verify journey on an isolated daemon passes with the fix and fails without it (the null retry was accepted).

{"version":1,"read":["impact"]}
{"path":"packages/prompts/src/mod.ts","reason":"The publish tool description already says to set a worker session ID or omit it, and that unknown IDs refuse the publication; no wording change."}

Agent: claude-opus-5-5 (effort: medium) via Claude

🤖 Generated with Claude Code

lsm and others added 2 commits November 28, 2026 01:21
Pin the design from the publication worker links doc: only an absent
session falls back to the prior row or a derived worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only an omitted session may keep a prior row's session or derive a
worker. An explicit null or neo: id is a model mistake, so it is refused
before either fallback instead of silently becoming no session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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) 0abb91b 11-28 06:32 6s 5m20s 0/0/0 approved
2 claude-code (glm-5.4) ca21cb1 11-28 06:48 6s — —/—/— review in progress
SUM 12s 5m20s 0/0/0 review in progress

@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 0abb91b · Trigger: open
Prompt arm: fable-1

The publish operation now refuses an explicit neo: session instead of
saving it without one, so that send no longer adds a row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refuse explicit null and Neo sessions on Neo publish

1 participant