Skip to content

feat(work): citizens can create cards: work/create is native and AiSafe, with a typed priority (e0b5b5b4) - #4550

Merged
joelteply merged 5 commits into
canaryfrom
feat/citizens-create-cards
Sep 28, 2026
Merged

joelteply merged 5 commits into
canaryfrom
feat/citizens-create-cards

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Kimi, told to break career-wrangler into slice cards, reported: "work/create is not in my tool menu right now: I can claim and move cards but not create them." It was Privileged and not native. That blocks your direction today that participants in every activity keep making cards toward its goals (card e0b5b5b4, the board half).

  • work/create becomes native and AiSafe. It creates the card under the caller's own airc identity, so she is the author.
  • priority becomes a closed CardPriority enum with an exhaustive From into Priority. The loose parse_priority, which read any unknown string as p2, is removed.
  • Both benchmark recipes now authorize it, because work turns offer every native work verb.
  • Two budgets are re-pinned, with the reason stated beside each: the native set bound < 47 → < 48, and the agentic surface ceiling 13200 → 13400.

The merge waits in the one-at-a-time queue, after the 5090 recovery release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…fe, with a typed priority (card e0b5b5b4, board half)

Joel, 2026-09-28: in every activity, participants keep making cards toward
its goals. Kimi, told to break career-wrangler into slices, found "work/create
is not in my tool menu right now: I can claim and move cards but not create
them". It was Privileged and not native, so no citizen could create a card.

- work/create: NATIVE, AiSafe. The card is created under the caller's own
  airc identity (persona_airc), so authorship is hers.
- priority is a closed CardPriority enum (serde refuses anything but
  p0..p3) with an exhaustive From into Priority; the loose parse_priority,
  which read any unknown string as p2, is removed (its test uses take the
  typed value).
- The benchmark recipes authorize it, since work turns offer every native
  work verb.
- Budgets re-pinned with the reason stated: the native set bound < 47 -> < 48
  and the agentic surface ceiling 13200 -> 13400.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Source review at 765ea5e (Cormac). Approve once CI is green at this head.

  • The card is created under her own identity: run resolves persona_airc(&self.registry, ctx, …), the caller's own persona handle, not the core's. So the board, and the GitHub mirror once 9681e5b5 lands, shows Kimi as the creator, which is what Joel asked for.
  • CardPriority is a closed serde enum with an exhaustive From into airc's Priority, and the lenient parse_priority (anything unknown became p2) is gone.
  • The native-count and surface-ceiling bumps are stated with the reason, and both benchmark recipes authorize the verb.

One non-blocking note, since this is now a native tool that models call directly. The old parser lowercased its input, so "P1" worked. #[serde(rename_all = "lowercase")] accepts only "p1", so a model that writes "P1", which models often do for priorities, gets a parse refusal on its first card. #[serde(alias = "P0")] and so on for each variant keeps the set closed and accepts both cases. Worth folding in before a citizen hits it.

joelteply and others added 3 commits September 28, 2026 15:35
…zen's card lands there authored by her

Per Codex's review of #4550: the native call names its activity explicitly, the same
rule work/submit follows, until activity context is threaded. The body moves into
WorkCreate::create so the test runs it against a real local airc scope with focus on
another room.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ace at 13500, stating what was added

CI measured 13499 against 13400 once room became required. The docs are made terse
(the CardPriority comment no longer ships in her schema) and the ceiling is re-pinned
with the addition named, per the test's own instruction.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Approved at 09bfe9d (Cormac). CI 7/7 success at this head.

Since my read at 765ea5e:

  • room is required, so a citizen's card can't default into #general.
  • The authorship test runs the command body against a real local airc scope and pins created_by to her peer id and the card to the named room's board.
  • The test's airc is now an Arc.
  • The surface is re-pinned at 13500 with the addition named and the measured number, and the schema docs are trimmed (the type docs moved to // so they don't ship in her tool schema).

Still open and non-blocking: CardPriority accepts only lowercase, so "P1" from a model is a parse refusal. A #[serde(alias = "P1")] per variant keeps the set closed and accepts both cases.

Queue note: #4551 also re-pins this ceiling for perception/interact. Whichever lands second rebases and re-pins to the measured sum.

Per Codex on #4550: a required String still accepted whitespace, which resolve_room
reads as unnamed and places in the current room, the default this field exists to
refuse. The authorship test now asserts the refusal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Approved at f40d30c (Cormac). CI 8/8 success at this head. A blank or whitespace room is now refused as Invalid before resolve_room, so it can no longer fall back to the current room (Codex's catch, which my earlier approval missed). The authorship test asserts " " is refused. The lowercase-only priority note still stands as non-blocking.

joelteply added a commit that referenced this pull request Sep 28, 2026
… process, so a sibling test's child cannot hold its writer (card 64ca188f) (#4556)

windows_launch::tests::detached_child_closes_unrelated_pipe_and_preserves_launch_contract
makes an INHERITABLE pipe writer on purpose, to prove the detached child does
not receive it. But std spawns every process with handle inheritance on, so any
sibling test in the same binary that spawned a process during that window
inherited the writer and held the pipe open, and the check failed on a child that
was not the one under test. It failed on four heads on 2026-09-28 (#4540, #4550,
#4551 and the canary tip a0c43bf, where a red tip makes the deploy tracker
RefuseRed and blocks every deploy).

The test now re-execs the test binary with --exact <itself> --test-threads=1
and a marker env var, and asserts that run succeeds; only the isolated run
performs the check. Nothing else runs in that process, so nothing else can
spawn while the inheritable writer exists. The check itself is unchanged.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 <[email protected]>
@joelteply
joelteply merged commit 6c6a2fa into canary Sep 28, 2026
8 checks passed
@joelteply
joelteply deleted the feat/citizens-create-cards branch September 28, 2026 23:59
joelteply added a commit that referenced this pull request Sep 29, 2026
…3610 over work/create (#4551 rebase)

The rebase onto #4550 put perception/interact on top of work/create; CI measured
the combined surface at 13610 guard tokens (ceiling was 13500). Pinned to the
measured sum, not a rounded guess.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Sep 29, 2026
… citizen drives and sees after each step (card 3569675f) (#4551)

* feat(perception): perception/interact, a persistent browser session a citizen drives and sees after each step (card 3569675f)

Joel: help Kimi screenshot and drive her own site, the same Playwright-style
automation her product needs. observe and hot-edit reopen the page per call;
nothing persona-callable could click, type or navigate across calls.

- perception/interact (native, AiSafe, Provided): the first call opens a
  session at `target` and returns its handle with the observation; later
  calls pass `session` + `actions` (click, type, press, hover, goto) and get
  the page after them plus the before/after pixel delta.
- perception/session-close (catalog only) releases a browser early.
- The eye-node holds sessions behind handles (interactAdapter.ts): at most 8
  open, a ninth refused with the reason, idle ones closed after 10 minutes, all
  closed on stop, and a failed step keeps the page.
- DomSurface gains `goto`, navigating the same live page.
- Typed PerceptionAction (a closed serde enum matching the DomAction kinds),
  bindings in protocol/typescript/perception, README and PERCEPTION-SURFACE
  step 5 updated.

Evidence: eye-node and perception typecheck under Node 22; a real-browser run
through InteractSessions -> PerceptionSession -> DomSurface -> Playwright
(installed Chrome) opened a local page, typed and clicked (the h1 read
"approved: rust", delta 0.995), navigated with goto, and closed the browser.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* fix(perception): an interact session is bound to the citizen who opened it, and opens only http(s) pages (Fable on #4551)

- The core stamps the VERIFIED caller into provided params as _callerPeerId
  (runtime::provided_provider::with_verified_caller, on both the socket and
  the persona route), removing any value the request supplied. A session
  records its opener and refuses interact or close from anyone else, so a
  handle pasted into a room cannot let another citizen drive her logged-in
  job-site session.
- target and goto must be http(s): a file:// page would render local files
  (config.env, keys) into her observation. Public pages stay open.

Evidence: eye-node typechecks under Node 22; the real-browser run now also
shows another caller refused ("belongs to another citizen") and file:// refused,
with the owner's session unaffected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* fix(perception): re-pin the agentic surface ceiling at the measured 13610 over work/create (#4551 rebase)

The rebase onto #4550 put perception/interact on top of work/create; CI measured
the combined surface at 13610 guard tokens (ceiling was 13500). Pinned to the
measured sum, not a rounded guess.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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