Skip to content

sminos 1.43.1: quote a frame's alias that could pass for the owner label (#182) - #484

Merged
SSFSKIM merged 2 commits into
mainfrom
sminos-alias-quote
Nov 10, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
sminos-alias-quote

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Closes board #182 (doperpowers board).

A sminos frame puts the writer's own alias next to sminos's owner label: [sminos chat … from <alias><label> → …], and likewise [sminos message from <sender><label> id=…]. An alias such as x, owned by y could therefore forge the label. Now:

  • frame_alias(alias) writes an alias as a JSON string literal when it contains , ( ) " → [ ], a line break (everything str.splitlines breaks on), or </> or one of their lookalikes. Inside the literal, angles, U+0085, U+2028 and U+2029 are written as \uXXXX, so the result stays on one line and the inbox envelope's closing-tag escape has nothing to rewrite. Any other alias is written bare, byte-identical to before.
  • The label always follows the alias, outside the quotes.
  • All four writers use it: the chat frame, the send frame, the holder's retry pointer, and sminos chat lines.
  • The manager's frame reader decodes a quoted alias whole.
  • The reader rule, documented in sminos/skills/sminos/scripts/CLAUDE.md: a leading " means the alias is JSON-decoded; otherwise it runs to the first , or (.

Tests: sminos/tests/test_frame_alias.py (8), including a round trip through the inbox envelope. Reviewed by reviewer-medium; its one finding (envelope escaping corrupted the quoted literal) is fixed in 6916ac7.

sminos 1.43.1.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

A frame's `from <alias><label>` put the writer's own alias beside the
owner clause sminos derives, so a session named `x, owned by y` read as
owned by y on an unlabelled event, to agents and to MAWS's pane. An alias
holding any of , ( ) " → [ ] or a line break is now a JSON string literal
(frame_alias; U+0085/U+2028/U+2029 escaped as well), any other bare as
before, in the chat frame, a send's frame, a retry's pointer and a
`sminos chat` line. The session manager's frame reader decodes a quoted
alias before stripping the label (board #182).

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
An inbox delivery wraps the frame in the peer envelope, whose closing-tag
escape puts a backslash after an angle, so an alias such as
`x, </cross-session-message>` arrived as a literal its reader could not
decode as written. An alias holding `<`, `>` or one of their lookalikes
(the envelope's ALIAS_ANGLES) is now quoted, and inside the literal every
such angle is a \uXXXX escape: still valid JSON, the same alias decoded,
nothing left for the envelope to rewrite. The envelope rewrites nothing
else (`&` included). A round-trip test composes, envelopes and reads back.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T14:56:03.719091Z 6916ac7 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.

@SSFSKIM
SSFSKIM merged commit 126fd0c into main Nov 10, 2026
11 checks passed
@SSFSKIM
SSFSKIM deleted the sminos-alias-quote branch November 10, 2026 15:10
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