Skip to content

worker: hide other sessions' unjudged candidates when S1 is wired - #71

Merged
vu1n merged 2 commits into
mainfrom
claude/project-thread-2el781-unjudged
Oct 31, 2026
Merged

vu1n merged 2 commits into
mainfrom
claude/project-thread-2el781-unjudged

Conversation

@vu1n

@vu1n vu1n commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Requested by Vu · project thread

The S1 write gate fails open, so a claim written during a model outage has no metadata.s1, and other sessions could read it (recall's candidate lane, the briefing's recent sections) until the hourly judgeLate pass. If it was control text aimed at agents, that window is the poisoning hole.

With an S1 model wired, D1Store({ screened: true }) now shows another session's candidate only once it has a verdict (judgedOnly). This covers recall, recentCandidates, recentUserCandidates and nearSubjects. Accepted claims, the writer's own session and installs without S1 are unchanged. Existing unjudged candidates stay hidden from other sessions until defrag judges them.

Merging deploys to kypp.vu1n.dev: waiting for Vu's ok.

Verification: new defrag test (another session can't see it while unjudged, through recall or the briefing; a no-S1 install still sees it; after judgeLate it shows). It fails on main at both assertions. npm test 330 pass, npm run typecheck clean, featuremap.py check 0 broken.


Generated by Claude Code

The write gate fails open, so during a model outage a claim is stored
without a verdict and other sessions could read it until the hourly
judgeLate pass. With an S1 model wired, recall, the briefing's recent
sections and nearSubjects now show another session's candidate only once
it has metadata.s1.
@vu1n vu1n self-assigned this Oct 31, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T07:23:43.021342Z 47dbf09 PR opened
🔒 Security Review ✅ Completed 2026-10-31T07:25:13.101129Z 47dbf09 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 47dbf09bb0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread worker/src/store.ts Resolved

@vu1n vu1n left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

VPS review of 47dbf09: 1 finding(s), 0 blocking.

The change hides unjudged candidates from other sessions when S1 is configured, but sessionless callers retain the existing exposure. The finding identifies a pre-existing gap, so it does not block merging this change.

Comment thread worker/src/store.ts Resolved
NULL IS NULL let one sessionless caller read another's unjudged
candidates. The exemption now needs a non-null session.

@vu1n vu1n left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

VPS review of 7760cda: 2 finding(s), 0 blocking.

The change hides unjudged candidates from recall, briefing recent sections, and nearby-subject suggestions when S1 is configured. Both reported gaps already exist at the merge base, so neither blocks this change from merging.

Comment thread worker/src/store.ts Resolved
Comment thread worker/src/mcp.ts Resolved
@vu1n
vu1n merged commit 3944ffb into main Oct 31, 2026
4 checks passed
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.

1 participant