103 lines
8.9 KiB
Plaintext
103 lines
8.9 KiB
Plaintext
✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (35.125648ms)
|
||
✔ agents: working counts what the holder received and has not read; routed alone is not working (37.645525ms)
|
||
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (94.337261ms)
|
||
✔ agents: working wins over waiting, and Input needed still shows (39.269694ms)
|
||
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (53.919376ms)
|
||
✔ agents: state reads only its own business, even for a run name both use (38.37603ms)
|
||
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (29.780881ms)
|
||
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (55.60725ms)
|
||
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (74.26478ms)
|
||
✔ launch events require a human CLI capability; generic emit cannot forge authority events (40.136792ms)
|
||
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (45.83572ms)
|
||
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (30.401876ms)
|
||
✔ task action subjects and linked decision trail are complete and ordered (41.23485ms)
|
||
✔ launch binding is durable and reconnecting requires the identical trusted record (14.324723ms)
|
||
✔ business isolation includes inherited object names and cross-business message references (25.992556ms)
|
||
✔ authority never transfers between action, run, target, unresolved or replaced role holder (32.830679ms)
|
||
✔ task projection uses schema current view, skipping earlier and equal-start polls (20.735873ms)
|
||
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (32.506966ms)
|
||
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (17.770565ms)
|
||
✔ both arbiters require human resolution when their cross-role route is themselves (32.418579ms)
|
||
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (31.714095ms)
|
||
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.775418ms)
|
||
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (27.457505ms)
|
||
✔ credentials refuses a role session and any argument (31.615558ms)
|
||
✔ credentials reads the status on each request, and a broker without one lists none (58.491251ms)
|
||
✔ the broker process answers credentials without a token, path or variable in its output, log or store (142.796884ms)
|
||
✔ only validated broker references load; returned data and exceptions cannot expose a known token (13.857314ms)
|
||
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (9.617631ms)
|
||
✔ expiry refuses use and env references never become client data (1.696471ms)
|
||
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (2.952212ms)
|
||
✔ opaque tokens shorter than 16 characters refuse before use (0.681438ms)
|
||
✔ roles lists open decisions routed to a role, and never the human inbox (56.142701ms)
|
||
✔ recent lists closed decisions of every route, newest close first, with how each closed (80.063427ms)
|
||
✔ recent stops at RECENT rows (186.440467ms)
|
||
✔ every row is what trail already gives the same session for that id (42.095053ms)
|
||
✔ a role session can't list decisions, so it can't read another role's open decisions (62.643476ms)
|
||
✔ decisions is a read: one business, strict arguments, nothing written (51.659164ms)
|
||
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (47.115298ms)
|
||
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (35.462782ms)
|
||
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (32.89485ms)
|
||
✔ endLaunch leaves a claim another run took alone (45.662087ms)
|
||
✔ refuse records action.refused against the caller with the code only (25.038254ms)
|
||
✔ launches off refuses role.launch with launch-revoked until launches on (36.417437ms)
|
||
✔ broker process: launch ops authorize role.launch, record refusals and end runs (142.033814ms)
|
||
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (2.895604ms)
|
||
✔ process reader gets own kernel identity without exposing environment values (2.967503ms)
|
||
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.288504ms)
|
||
✔ real pid 1 remains inspectable when its environment is protected (0.549593ms)
|
||
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (62.361405ms)
|
||
✔ missing and foreign-business citations refuse and roll back message and grant (56.524524ms)
|
||
✔ cross-role sends still need a matching resolved decision and consume it once (50.773829ms)
|
||
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (161.062697ms)
|
||
✔ startup token refusal returns safe code without value or partial listening broker (100.454889ms)
|
||
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (96.15826ms)
|
||
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (152.406129ms)
|
||
✔ trusted host registers later launches; socket clients never have a registration verb (88.458895ms)
|
||
✔ runtime excludes declared project roots even when host supplies no repoRoots (59.175858ms)
|
||
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (74.240861ms)
|
||
✔ v3b prototype refusals, views and append-only mutations (203.836516ms)
|
||
✔ gated approval authorizes once, survives store reopen, and fresh approval works (84.411615ms)
|
||
✔ another run cannot consume an approval; a failed check leaves it usable (46.433083ms)
|
||
✔ two scheduled callers have exactly one grant and one consumed refusal (42.96404ms)
|
||
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (63.979339ms)
|
||
✔ class drift gated to cross-role refuses before consumption (30.3908ms)
|
||
✔ class drift cross-role to gated refuses before consumption (34.687382ms)
|
||
✔ class drift gated to within-role refuses before consumption (29.408074ms)
|
||
✔ class drift cross-role to within-role refuses before consumption (35.55011ms)
|
||
✔ class drift within-role to gated refuses before consumption (26.559239ms)
|
||
✔ class drift within-role to cross-role refuses before consumption (24.538526ms)
|
||
✔ message.send consumes approval and prevents a later send or authorize (36.075362ms)
|
||
✔ role.revoke consumes approval and prevents a later revoke or authorize (32.411141ms)
|
||
✔ creates private WAL store and excludes a second writer until explicit close (33.402497ms)
|
||
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (32.725579ms)
|
||
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (52.894163ms)
|
||
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (119.872533ms)
|
||
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (26.356351ms)
|
||
✔ async transactions refuse before invoking their function (19.126056ms)
|
||
✔ tasks rows carry priority and requirement for every session that reads tasks (88.534414ms)
|
||
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (98.241426ms)
|
||
✔ an empty business and one with snapshots but no task.created read cleanly (18.493864ms)
|
||
✔ recordTask keeps sync reads and a role write apart (58.054867ms)
|
||
✔ read_at must be one canonical UTC format, so the projection compares strings safely (28.511296ms)
|
||
✔ a bad entry refuses the whole record (28.244054ms)
|
||
✔ taskView reads the projection for one business (27.055647ms)
|
||
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (59.515511ms)
|
||
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (305.08039ms)
|
||
✔ without an adapter the server refuses every task verb (33.692005ms)
|
||
✔ the runtime refuses an invalid adapter and closes a valid one (25.66876ms)
|
||
✔ the process loads the S3 adapter from plain-data trackers (157.37478ms)
|
||
✔ socket capability stamps launch identity; shared views use wire, no SQL client (71.73311ms)
|
||
✔ two wire claims serialize; a lost reply never automatically retries (52.466688ms)
|
||
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (29.393334ms)
|
||
✔ client preserves UTF-8 when a response divides a multibyte character (14.158797ms)
|
||
✔ committed mutation followed by dropped reply reports unknown and is never retried (38.659928ms)
|
||
ℹ tests 94
|
||
ℹ suites 0
|
||
ℹ pass 94
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 892.376079
|