Repository navigation
sminos 1.43.1: quote a frame's alias that could pass for the owner label (#182) - #484
Merged
Merged
Conversation
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)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asx, owned by ycould therefore forge the label. Now:frame_alias(alias)writes an alias as a JSON string literal when it contains,()"→[], a line break (everythingstr.splitlinesbreaks 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.sminos chatlines.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)