145 lines
13 KiB
Plaintext
145 lines
13 KiB
Plaintext
✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (53.345751ms)
|
||
✔ agents: working counts what the holder received and has not read; routed alone is not working (37.049209ms)
|
||
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (54.221021ms)
|
||
✔ agents: working wins over waiting, and Input needed still shows (25.074686ms)
|
||
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (29.201775ms)
|
||
✔ agents: state reads only its own business, even for a run name both use (30.503874ms)
|
||
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (30.483115ms)
|
||
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (33.991234ms)
|
||
✔ agents: stranded is oldest first and capped at 50 for a role (138.836602ms)
|
||
✔ agents: stranded is per role and per business (41.733601ms)
|
||
✔ agents: a message routed to a held role and not yet received is not stranded (15.546004ms)
|
||
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (44.720949ms)
|
||
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (40.518887ms)
|
||
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (36.206591ms)
|
||
✔ launch events require a human CLI capability; generic emit cannot forge authority events (23.85051ms)
|
||
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (31.166172ms)
|
||
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (27.887162ms)
|
||
✔ task action subjects and linked decision trail are complete and ordered (39.656662ms)
|
||
✔ launch binding is durable and reconnecting requires the identical trusted record (18.177199ms)
|
||
✔ business isolation includes inherited object names and cross-business message references (37.100703ms)
|
||
✔ authority never transfers between action, run, target, unresolved or replaced role holder (37.455402ms)
|
||
✔ task projection uses schema current view, skipping earlier and equal-start polls (21.85863ms)
|
||
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (26.853766ms)
|
||
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (18.644889ms)
|
||
✔ both arbiters require human resolution when their cross-role route is themselves (24.267217ms)
|
||
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (24.189015ms)
|
||
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.685061ms)
|
||
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (27.087106ms)
|
||
✔ credentials refuses a role session and any argument (25.35644ms)
|
||
✔ credentials reads the status on each request, and a broker without one lists none (35.093486ms)
|
||
✔ the broker process answers credentials without a token, path or variable in its output, log or store (116.89915ms)
|
||
✔ only validated broker references load; returned data and exceptions cannot expose a known token (12.70728ms)
|
||
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (3.560369ms)
|
||
✔ expiry refuses use and env references never become client data (1.508323ms)
|
||
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (2.567023ms)
|
||
✔ opaque tokens shorter than 16 characters refuse before use (0.984255ms)
|
||
✔ roles lists open decisions routed to a role, and never the human inbox (44.871314ms)
|
||
✔ recent lists closed decisions of every route, newest close first, with how each closed (48.127659ms)
|
||
✔ recent gives the closing event as closed when the decision was seen first (40.736679ms)
|
||
✔ recent stops at RECENT rows (151.660483ms)
|
||
✔ every row is what trail already gives the same session for that id (64.10788ms)
|
||
✔ a role session can't list decisions, so it can't read another role's open decisions (47.365421ms)
|
||
✔ decisions is a read: one business, strict arguments, nothing written (40.924426ms)
|
||
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (34.106898ms)
|
||
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (20.851428ms)
|
||
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (27.220638ms)
|
||
✔ endLaunch leaves a claim another run took alone (22.110897ms)
|
||
✔ refuse records action.refused against the caller with the code only (19.510601ms)
|
||
✔ launches off refuses role.launch with launch-revoked until launches on (26.457423ms)
|
||
✔ broker process: launch ops authorize role.launch, record refusals and end runs (139.53102ms)
|
||
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (4.626606ms)
|
||
✔ process reader gets own kernel identity without exposing environment values (1.015438ms)
|
||
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.13444ms)
|
||
✔ real pid 1 remains inspectable when its environment is protected (0.458999ms)
|
||
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (43.553394ms)
|
||
✔ missing and foreign-business citations refuse and roll back message and grant (31.112824ms)
|
||
✔ cross-role sends still need a matching resolved decision and consume it once (33.309267ms)
|
||
✔ messages pages all human messages newest first without writes; read state is history (469.728142ms)
|
||
✔ messages refuses role callers, invalid paging and cursors outside this human feed (21.468385ms)
|
||
✔ views messages passes only its paging arguments through (0.304665ms)
|
||
✔ messages isolates businesses even with a valid foreign cursor (15.94981ms)
|
||
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (132.078296ms)
|
||
✔ startup token refusal returns safe code without value or partial listening broker (73.13813ms)
|
||
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (115.048838ms)
|
||
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (132.173626ms)
|
||
✔ trusted host registers later launches; socket clients never have a registration verb (73.972433ms)
|
||
✔ runtime excludes declared project roots even when host supplies no repoRoots (46.355452ms)
|
||
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (69.824002ms)
|
||
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (56.460005ms)
|
||
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (28.009884ms)
|
||
✔ a message with no reply gives an empty list (25.087219ms)
|
||
✔ replies come oldest first and stop at REPLIES (121.453985ms)
|
||
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (57.07998ms)
|
||
✔ strict arguments; a role session gets human-required (49.312075ms)
|
||
✔ views passes replies through as one call with the id (0.343278ms)
|
||
✔ requirements returns the committed list to a holding role session, and no one else (44.09571ms)
|
||
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (25.102261ms)
|
||
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (25.47151ms)
|
||
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (48.632777ms)
|
||
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (37.53467ms)
|
||
✔ review.request says which run holds the reviewer role, or null, and a null request waits for a claim (45.158269ms)
|
||
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (61.731826ms)
|
||
✔ reviewFetch answers only the addressed reviewer, for the request it cites (41.268235ms)
|
||
✔ review.verdict answers one request once, to the role that asked (46.777661ms)
|
||
✔ task.close on a pushed task needs an approve verdict for the latest push (51.525849ms)
|
||
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (30.103337ms)
|
||
✔ v3b prototype refusals, views and append-only mutations (120.825112ms)
|
||
✔ gated approval authorizes once, survives store reopen, and fresh approval works (46.226675ms)
|
||
✔ another run cannot consume an approval; a failed check leaves it usable (31.65991ms)
|
||
✔ two scheduled callers have exactly one grant and one consumed refusal (24.587566ms)
|
||
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (54.454972ms)
|
||
✔ class drift gated to cross-role refuses before consumption (42.783433ms)
|
||
✔ class drift cross-role to gated refuses before consumption (39.675355ms)
|
||
✔ class drift gated to within-role refuses before consumption (32.743453ms)
|
||
✔ class drift cross-role to within-role refuses before consumption (32.242986ms)
|
||
✔ class drift within-role to gated refuses before consumption (27.697108ms)
|
||
✔ class drift within-role to cross-role refuses before consumption (21.440093ms)
|
||
✔ message.send consumes approval and prevents a later send or authorize (22.298102ms)
|
||
✔ role.revoke consumes approval and prevents a later revoke or authorize (21.187526ms)
|
||
✔ a business that never switched launches reads allowed with no time and no event (23.872134ms)
|
||
✔ launches revoked and then restored read allowed, with the restore time and event id (22.203524ms)
|
||
✔ a task closed on the tracker leaves the open list, and total counts the open ones (20.88584ms)
|
||
✔ a tombstone is not open (23.622734ms)
|
||
✔ the open list stops at the cap and says so; total still counts every open task (31.38746ms)
|
||
✔ a role and a reader session read state; arguments, and an unbound cap, refuse (23.147345ms)
|
||
✔ a human session reads the same state, with the same cap (30.688306ms)
|
||
✔ reading state writes nothing: every table keeps its row count (25.620195ms)
|
||
✔ creates private WAL store and excludes a second writer until explicit close (21.733357ms)
|
||
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (22.952595ms)
|
||
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (23.813833ms)
|
||
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (81.715645ms)
|
||
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (19.303146ms)
|
||
✔ async transactions refuse before invoking their function (16.729944ms)
|
||
✔ the session default fits under the reply cap and pages to the end with next (233.154729ms)
|
||
✔ the short form: no description, assignees by role, every listed key (100.835596ms)
|
||
✔ each filter, alone and together, and total counts every match (181.195033ms)
|
||
✔ task_ref reads one task in full, as the whole board has it (124.71456ms)
|
||
✔ no arguments is the read the Console and mosaic make, unchanged (86.09897ms)
|
||
✔ an unknown argument or a bad value refuses invalid-request (317.443818ms)
|
||
✔ tasks rows carry priority and requirement for every session that reads tasks (55.846229ms)
|
||
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (77.938794ms)
|
||
✔ an empty business and one with snapshots but no task.created read cleanly (15.590214ms)
|
||
✔ recordTask keeps sync reads and a role write apart (43.252739ms)
|
||
✔ read_at must be one canonical UTC format, so the projection compares strings safely (14.008254ms)
|
||
✔ a bad entry refuses the whole record (14.985013ms)
|
||
✔ taskView reads the projection for one business (18.285037ms)
|
||
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (30.458742ms)
|
||
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (283.280283ms)
|
||
✔ without an adapter the server refuses every task verb (18.820463ms)
|
||
✔ the runtime refuses an invalid adapter and closes a valid one (21.747589ms)
|
||
✔ the process loads the S3 adapter from plain-data trackers (141.413317ms)
|
||
✔ socket capability stamps launch identity; shared views use wire, no SQL client (44.920877ms)
|
||
✔ two wire claims serialize; a lost reply never automatically retries (27.892274ms)
|
||
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (19.165955ms)
|
||
✔ client preserves UTF-8 when a response divides a multibyte character (13.45429ms)
|
||
✔ committed mutation followed by dropped reply reports unknown and is never retried (19.278096ms)
|
||
ℹ tests 136
|
||
ℹ suites 0
|
||
ℹ pass 136
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 1371.754234
|