Five paths: tasks fields.mjs and fields.test.mjs, webui README, public/bus.js (aria-label only) and bus-browser.test.mjs. Phase B: 14 node suites and 9 scripts green, 8 of 8 mutants killed. The literal U+202E is now an escape. Co-Authored-By: Claude Opus 5.5 <[email protected]>
136 lines
12 KiB
Plaintext
136 lines
12 KiB
Plaintext
✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (32.154704ms)
|
||
✔ agents: working counts what the holder received and has not read; routed alone is not working (29.565496ms)
|
||
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (44.011536ms)
|
||
✔ agents: working wins over waiting, and Input needed still shows (17.843842ms)
|
||
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (23.818452ms)
|
||
✔ agents: state reads only its own business, even for a run name both use (22.344503ms)
|
||
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (23.870846ms)
|
||
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (21.991812ms)
|
||
✔ agents: stranded is oldest first and capped at 50 for a role (90.563603ms)
|
||
✔ agents: stranded is per role and per business (29.07379ms)
|
||
✔ agents: a message routed to a held role and not yet received is not stranded (12.692386ms)
|
||
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (30.66113ms)
|
||
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (38.169687ms)
|
||
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (31.389482ms)
|
||
✔ launch events require a human CLI capability; generic emit cannot forge authority events (18.311773ms)
|
||
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (21.193597ms)
|
||
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (20.823306ms)
|
||
✔ task action subjects and linked decision trail are complete and ordered (27.872877ms)
|
||
✔ launch binding is durable and reconnecting requires the identical trusted record (12.621107ms)
|
||
✔ business isolation includes inherited object names and cross-business message references (20.672684ms)
|
||
✔ authority never transfers between action, run, target, unresolved or replaced role holder (25.16714ms)
|
||
✔ task projection uses schema current view, skipping earlier and equal-start polls (16.974116ms)
|
||
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (18.945262ms)
|
||
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (13.863367ms)
|
||
✔ both arbiters require human resolution when their cross-role route is themselves (20.188884ms)
|
||
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (19.807645ms)
|
||
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.073831ms)
|
||
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (25.464515ms)
|
||
✔ credentials refuses a role session and any argument (24.033953ms)
|
||
✔ credentials reads the status on each request, and a broker without one lists none (28.632332ms)
|
||
✔ the broker process answers credentials without a token, path or variable in its output, log or store (86.734082ms)
|
||
✔ only validated broker references load; returned data and exceptions cannot expose a known token (6.720288ms)
|
||
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (2.907017ms)
|
||
✔ expiry refuses use and env references never become client data (0.892018ms)
|
||
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (1.721256ms)
|
||
✔ opaque tokens shorter than 16 characters refuse before use (0.389514ms)
|
||
✔ roles lists open decisions routed to a role, and never the human inbox (42.466974ms)
|
||
✔ recent lists closed decisions of every route, newest close first, with how each closed (42.548884ms)
|
||
✔ recent gives the closing event as closed when the decision was seen first (33.820964ms)
|
||
✔ recent stops at RECENT rows (106.846694ms)
|
||
✔ every row is what trail already gives the same session for that id (39.338671ms)
|
||
✔ a role session can't list decisions, so it can't read another role's open decisions (37.215507ms)
|
||
✔ decisions is a read: one business, strict arguments, nothing written (34.054614ms)
|
||
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (25.158477ms)
|
||
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (21.759125ms)
|
||
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (20.924198ms)
|
||
✔ endLaunch leaves a claim another run took alone (19.394753ms)
|
||
✔ refuse records action.refused against the caller with the code only (15.831795ms)
|
||
✔ launches off refuses role.launch with launch-revoked until launches on (19.429979ms)
|
||
✔ broker process: launch ops authorize role.launch, record refusals and end runs (101.316813ms)
|
||
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (6.739646ms)
|
||
✔ process reader gets own kernel identity without exposing environment values (1.066794ms)
|
||
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (0.895765ms)
|
||
✔ real pid 1 remains inspectable when its environment is protected (0.373228ms)
|
||
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (34.35105ms)
|
||
✔ missing and foreign-business citations refuse and roll back message and grant (28.07279ms)
|
||
✔ cross-role sends still need a matching resolved decision and consume it once (29.158061ms)
|
||
✔ messages pages all human messages newest first without writes; read state is history (362.609383ms)
|
||
✔ messages refuses role callers, invalid paging and cursors outside this human feed (21.299171ms)
|
||
✔ views messages passes only its paging arguments through (0.404197ms)
|
||
✔ messages isolates businesses even with a valid foreign cursor (11.509175ms)
|
||
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (93.451331ms)
|
||
✔ startup token refusal returns safe code without value or partial listening broker (58.693643ms)
|
||
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (80.241704ms)
|
||
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (100.361455ms)
|
||
✔ trusted host registers later launches; socket clients never have a registration verb (75.201018ms)
|
||
✔ runtime excludes declared project roots even when host supplies no repoRoots (37.607832ms)
|
||
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (49.253746ms)
|
||
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (50.074452ms)
|
||
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (24.018014ms)
|
||
✔ a message with no reply gives an empty list (18.990485ms)
|
||
✔ replies come oldest first and stop at REPLIES (87.112928ms)
|
||
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (31.622464ms)
|
||
✔ strict arguments; a role session gets human-required (35.754003ms)
|
||
✔ views passes replies through as one call with the id (0.316859ms)
|
||
✔ requirements returns the committed list to a holding role session, and no one else (34.882088ms)
|
||
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (21.051768ms)
|
||
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (18.993314ms)
|
||
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (37.842462ms)
|
||
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (27.133244ms)
|
||
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (39.858723ms)
|
||
✔ reviewFetch answers only the addressed reviewer, for the request it cites (28.500981ms)
|
||
✔ review.verdict answers one request once, to the role that asked (28.92143ms)
|
||
✔ task.close on a pushed task needs an approve verdict for the latest push (41.550732ms)
|
||
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (23.290246ms)
|
||
✔ v3b prototype refusals, views and append-only mutations (107.113002ms)
|
||
✔ gated approval authorizes once, survives store reopen, and fresh approval works (36.300621ms)
|
||
✔ another run cannot consume an approval; a failed check leaves it usable (23.639487ms)
|
||
✔ two scheduled callers have exactly one grant and one consumed refusal (18.619231ms)
|
||
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (33.531033ms)
|
||
✔ class drift gated to cross-role refuses before consumption (26.350237ms)
|
||
✔ class drift cross-role to gated refuses before consumption (23.916207ms)
|
||
✔ class drift gated to within-role refuses before consumption (22.887385ms)
|
||
✔ class drift cross-role to within-role refuses before consumption (24.655437ms)
|
||
✔ class drift within-role to gated refuses before consumption (20.523084ms)
|
||
✔ class drift within-role to cross-role refuses before consumption (16.610045ms)
|
||
✔ message.send consumes approval and prevents a later send or authorize (21.952829ms)
|
||
✔ role.revoke consumes approval and prevents a later revoke or authorize (27.419189ms)
|
||
✔ creates private WAL store and excludes a second writer until explicit close (17.196149ms)
|
||
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (18.888319ms)
|
||
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (18.753173ms)
|
||
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (58.572381ms)
|
||
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (12.411598ms)
|
||
✔ async transactions refuse before invoking their function (10.57707ms)
|
||
✔ the session default fits under the reply cap and pages to the end with next (176.813554ms)
|
||
✔ the short form: no description, assignees by role, every listed key (84.44107ms)
|
||
✔ each filter, alone and together, and total counts every match (165.974893ms)
|
||
✔ task_ref reads one task in full, as the whole board has it (83.194336ms)
|
||
✔ no arguments is the read the Console and mosaic make, unchanged (69.664065ms)
|
||
✔ an unknown argument or a bad value refuses invalid-request (274.962322ms)
|
||
✔ tasks rows carry priority and requirement for every session that reads tasks (41.592792ms)
|
||
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (46.618373ms)
|
||
✔ an empty business and one with snapshots but no task.created read cleanly (14.234235ms)
|
||
✔ recordTask keeps sync reads and a role write apart (23.007193ms)
|
||
✔ read_at must be one canonical UTC format, so the projection compares strings safely (11.245662ms)
|
||
✔ a bad entry refuses the whole record (11.155766ms)
|
||
✔ taskView reads the projection for one business (13.272027ms)
|
||
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (23.462233ms)
|
||
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (275.749209ms)
|
||
✔ without an adapter the server refuses every task verb (16.510685ms)
|
||
✔ the runtime refuses an invalid adapter and closes a valid one (15.953122ms)
|
||
✔ the process loads the S3 adapter from plain-data trackers (93.053763ms)
|
||
✔ socket capability stamps launch identity; shared views use wire, no SQL client (29.90853ms)
|
||
✔ two wire claims serialize; a lost reply never automatically retries (22.607657ms)
|
||
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (13.431756ms)
|
||
✔ client preserves UTF-8 when a response divides a multibyte character (15.380377ms)
|
||
✔ committed mutation followed by dropped reply reports unknown and is never retried (15.060819ms)
|
||
ℹ tests 127
|
||
ℹ suites 0
|
||
ℹ pass 127
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 1031.166301
|