Skip to content

Persona ids she types read through Shown<PeerId>; each persona registry is a ShownScope (ONE-ACT stage 6, slice 2, card eea01685) - #5788

Merged
joelteply merged 1 commit into
canaryfrom
cormac/shown-persona-ids
Nov 5, 2026
Merged

joelteply merged 1 commit into
canaryfrom
cormac/shown-persona-ids

Conversation

@joelteply

@joelteply joelteply commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

A persona is an airc peer, so her id is a PeerId, which airc-core already reads as a typed-back
id (ShownKind). The persona verbs read through id_resolve::resolve, the repairing reading,
which mined hex out of surrounding words. They now read through airc's Shown, the one owner:
a full id is exact, a prefix keeps every digit, a UUID one digit off reads by its short form.

  • persona/persona_scope.rs (new): PersonaCards (the card registry) and
    PersonaAircRuntimeRegistry (who is online) are each a ShownScope<PeerId>;
    persona_in(raw, scope) is the one boundary read.
  • continuum-mind: persona/identity/get, persona/identity/set (cards), persona/instances/get,
    persona/instances/despawn (runtime registry) use persona_in.
  • continuum-core: persona/wall/pin and memory/consolidate (cards) use it too.
  • A refusal now names the id kind as "peer", the type's own label.

Test: a_shown_persona_id_resolves_against_her_card_and_a_wrapped_one_is_refused: her short form
and her full id resolve, persona <short> is not an id, and an id no card names is refused.

Left on id_resolve, each on its card: hands' shell-execution handles, the dreaming teach bridge,
the cognition acting workspace, work_similar (39c554f7), the submission resolver #5775 kept, and
room_resolve's handle_prefix.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Verified

  • Source-hygiene ratchets with CI's driver at 9c36634: pass (IntelMac, 2026-11-05 ~03:40Z).
  • Not compiled locally (no warm continuum-mind/core target on the IntelMac): CI is the first compile; review once lib tests continuum-mind and continuum-core are green at the head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…ry is a ShownScope (ONE-ACT stage 6, slice 2, card eea01685)

A persona is an airc peer, so her id is a `PeerId`, which airc-core already reads as a typed-back
id (`ShownKind`). The persona verbs read through `id_resolve::resolve`, the repairing reading,
which mined hex out of surrounding words. They now read through airc's `Shown`, the one owner:
a full id is exact, a prefix keeps every digit, a UUID one digit off reads by its short form.

- persona/persona_scope.rs (new): `PersonaCards` (the card registry) and
  `PersonaAircRuntimeRegistry` (who is online) are each a `ShownScope<PeerId>`;
  `persona_in(raw, scope)` is the one boundary read.
- continuum-mind: persona/identity/get, persona/identity/set (cards), persona/instances/get,
  persona/instances/despawn (runtime registry) use `persona_in`.
- continuum-core: persona/wall/pin and memory/consolidate (cards) use it too.
- A refusal now names the id kind as "peer", the type's own label.

Test: `a_shown_persona_id_resolves_against_her_card_and_a_wrapped_one_is_refused`: her short form
and her full id resolve, `persona <short>` is not an id, and an id no card names is refused.

Left on id_resolve, each on its card: hands' shell-execution handles, the dreaming teach bridge,
the cognition acting workspace, work_similar (39c554f7), the submission resolver #5775 kept, and
room_resolve's handle_prefix.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 9c36634. Scope: the full diff (+76 -32).

Verified by reading persona/persona_scope.rs and all six call sites:

  • PersonaCards (card registry) and PersonaAircRuntimeRegistry (online) are each a ShownScope<PeerId>.
  • persona_in is the one boundary read, Shown::<PeerId>::try_from(raw)?.resolve_in(scope).
  • identity get/set and memory/consolidate and wall/pin resolve against cards; instances get/despawn resolve against the online registry, the same scopes as before.
  • The test pins a short form and a full id resolving, a word-wrapped id refused (NotAnId, so no hex mining), and an id with no card refused. CI: 12 pass, 3 skipped.

Note (non-blocking; follow-up owned by me): all six sites flatten the typed ShownIdError with CommandError::Invalid(e.to_string()), so her NoMatch/Ambiguous next moves become prose. CommandError has no typed arm yet. 6b slice 1 (fable/tool-contract-1) adds FieldProblem::Rejected(Id(ShownIdError)) under ArgumentsRefusal, and I will move these six sites onto it there.

Still on the old resolver, for your next stage-6 slices:

  • persona_workspace/root_acting_workspace.rs:236
  • genome/teach/bridge.rs:141
  • shell_session.rs:308 and hands/modules/code.rs:133 (resolve_handle)
  • persona/room_resolve.rs (handle_prefix, prefix_matches)
  • work/submission/latest_submission.rs:248

@joelteply
joelteply merged commit 5944051 into canary Nov 5, 2026
15 checks passed
@joelteply
joelteply deleted the cormac/shown-persona-ids branch November 5, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant