Skip to content

Fix/typeahead paste guard - #111

Open
quantum-osiris wants to merge 2 commits into
mainfrom
fix/typeahead-paste-guard
Open

quantum-osiris wants to merge 2 commits into
mainfrom
fix/typeahead-paste-guard

Conversation

@quantum-osiris

Copy link
Copy Markdown
Owner

No description provided.

claude and others added 2 commits December 5, 2026 10:53
…trained on

2026-12-05: a PowerShell transcript was pasted while OSIRIS was
answering. No bracketed-paste markers arrived, so Osiris._hold split it into
one "typed" held message per line; each was sent to the mentor and 28 were
trained into the core ("the core trains on this exchange"), including
llama3.2:3b replies; the core's reported step went from 72 to 153. This contradicts
L0 (pasted text is never promoted to training without /learn confirm).

- living.Held gains `transport`: "bracketed_paste" (pasted=True), "typed",
  or "unknown". Unknown transport is not a paste claim; it is "not known".
- Osiris._hold: two or more finished lines in one reply's capture, with no
  paste markers, are held with transport "unknown" and a visible note. One
  finished line stays "typed". The held list itself is unchanged, so typed-
  ahead commands still run.
- osiris_repl.dispatch_held carries the held message's transport through
  the command router (which strips a Held to a plain str) for that one
  dispatch; _resolve_input_transport reads it before the console's
  last-input flag, which the REPL loop always sets to "typed" here.
  converse() already treats "unknown" as not learnable.
- The REPL labels such lines "arrived unmarked with other lines".

Not addressed: each line is still its own turn (one model call per line),
and a held unmarked line starting with "/" or "!" still reaches the command
router, as before.

Tests: tests/test_console_paste.py (3 new). Removing either half of the fix
makes one of them fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FYXiwQpjjWVfi7MNQgjVHJ
@vercel

vercel Bot commented Dec 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-ui Ready Ready Preview Dec 5, 2026 10:31pm UTC

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.

2 participants