npm notice run test
npm notice run node --test tests/*.test.mjs
✔ the boot config is checked before anything starts (18.695719ms)
✔ a business with no tracker entry refuses task verbs (17.599776ms)
✔ credential.expiring and .expired are recorded once per instance (38.155477ms)
✔ a token file that changes on disk records credential.changed (15.618018ms)
✔ autostart polls, reconciles and retries a startup the tracker was down for (54.109647ms)
✔ a refusal a restart must clear is not retried by the poll (20.873286ms)
✔ a poll that fires while two are queued is dropped (20.557757ms)
✔ close waits for a running verb and refuses one that has not started (55.407664ms)
✔ the bundled Vikunja is the pinned upstream image the runbook names (1.163881ms)
✔ every published port is on 127.0.0.1, and no secret is in the file (0.50504ms)
✔ the committed table loads frozen; its verbs are the broker task verbs (2.611259ms)
✔ a write names a verb the table has as its own key, not one it inherits (0.95019ms)
✔ the schema refuses any other shape (5.091661ms)
✔ the Field table in the slice 1 plan names the verbs each field is written by (0.953984ms)
✔ each verb refuses, asks for a decision and writes as the table and the role files say (287.077429ms)
✔ the list holds the PRD's requirement ids, in its order, at its version (1.881176ms)
✔ the committed list loads frozen (0.986682ms)
✔ the schema refuses any other shape (4.429134ms)
✔ the fake answers each route with the statuses and shapes Vikunja v2.7.0 sent (144.985606ms)
✔ the project list holds recorded project objects in the recorded list envelope (16.846538ms)
✔ the recorded task bodies pass the checks S3 applies to every read (0.832702ms)
✔ the client works against the fake over real HTTP with the platform fetch (141.714078ms)
✔ a correct install starts, and the first reconcile records tasks that already exist (38.458563ms)
✔ verbs refuse while a business is starting and after startup refused it (19.255059ms)
✔ startup refuses a token that can do more than its role needs (52.183086ms)
✔ startup refuses an unsupported version and flags an untested one (64.033773ms)
✔ startup refuses a board that the runbook did not install (52.100745ms)
✔ startup refuses a project the sync bot cannot read (10.285099ms)
✔ startup refuses a configured label the pm bot cannot see (13.303864ms)
✔ startup refuses an expired credential and a missing sync credential (24.173386ms)
✔ an unreachable tracker refuses with tracker-unavailable (12.677161ms)
✔ an edit in the UI is recorded once, with the fields that changed (94.720227ms)
✔ a move between open buckets is seen on the board, though updated does not change (77.36666ms)
✔ a person's comment is counted and a bot's is not (85.32207ms)
✔ the hourly reconcile catches a comment through comment_count (90.159768ms)
✔ a task closed in the UI leaves the open view with its done bucket (134.389648ms)
✔ a task that leaves the board is recorded as deleted, moved or out of reach (73.434089ms)
✔ a poll that read before a verb wrote does not overwrite the verb (40.053975ms)
✔ a tracker fault during a tick is reported and the next tick catches up (39.750316ms)
✔ a malformed answer refuses the tick with tracker-shape (16.355643ms)
✔ no token value reaches the database, the log or a refusal (55.829548ms)
✔ the first look at a task counts only comments inside the window (36.610882ms)
✔ with descendants off the adapter reads no project list and no child, as in v0 (52.045987ms)
✔ a three-level tree is read per project, and a project outside it is not (30.700062ms)
✔ a watch-only child keeps the business ready, and a failed child read refuses as transient (57.668605ms)
✔ a root without the installed buckets refuses with descendants on (16.15011ms)
✔ the project list refuses without read_all, and skips archived projects and saved filters (36.696357ms)
✔ descendants must be true or false (12.027325ms)
✔ a move inside the tree is a moved tombstone plus a snapshot under the new ref (73.73268ms)
✔ a child made after startup joins the tree at the next reconcile (63.302967ms)
✔ a child that leaves the tree has its tasks recorded missing, and the ledger keeps their history (72.287882ms)
✔ a child deleted or hidden between reconciles drops out at the next tick, and the root still refuses (95.363055ms)
✔ a reconcile that fails keeps the previous tree (35.553587ms)
✔ a closed task the cursor missed takes its own project's done bucket (37.327883ms)
✔ closed tasks read at startup take their own project's done bucket (12.681715ms)
✔ a closed task the cursor returns takes its own project's done bucket (37.809436ms)
✔ a task moved out of a child that leaves the tree at the same time is moved, not no-access (36.351771ms)
✔ a task in a bucket outside the five keeps its raw bucket id (31.414173ms)
✔ bucket 0 on a watch-only task never becomes a bucket or a state (80.964598ms)
✔ a child whose kanban view is deleted still refuses the tick, and the reconcile reads it watch-only (59.719383ms)
✔ a child dropped at a tick comes back at the next reconcile once the bot reads it again (38.014389ms)
✔ task.create needs a recorded human request and a requirement id (50.129601ms)
✔ task.create takes only an approved requirement id (34.761972ms)
✔ task.create cites the request a received message carries, not the message's id (48.765316ms)
✔ only labels named in the business file can be written (48.862453ms)
✔ task.schedule sets and clears a due date and relations (47.562317ms)
✔ assign and reassign move the role bots and record task.assigned (75.461783ms)
✔ task.update.assigned is for the assignee and records task.state (58.389316ms)
✔ a wrong expected digest records task.conflict and writes nothing (24.936337ms)
✔ a cross-role verb needs a resolved decision, used once (35.984132ms)
✔ task.close needs a verdict; after it every verb refuses with task-done (33.042026ms)
✔ a task with pushed work closes only citing an approve verdict for its latest push, and a refusal writes nothing (37.080574ms)
✔ a lost answer is settled by a re-read and never retried (30.418387ms)
✔ a create whose answer is lost is reported uncertain, and the poll finds the task (35.86924ms)
✔ a task the sync bot cannot read refuses and records nothing (17.658983ms)
✔ verbs and polls for one business run one at a time (97.190953ms)
✔ a due date with milliseconds is written to the second (67.939053ms)
✔ every write landed and the final read failed: the verb succeeds and records what it wrote (37.004036ms)
✔ some writes landed and the final read failed: write-uncertain, and nothing is recorded (15.227126ms)
✔ a create whose final read fails succeeds and records task.created (33.22642ms)
✔ an edit between the last write and the final read shows as external on the next poll (37.687207ms)
✔ task.created is recorded when a later label write fails (16.143164ms)
✔ every verb acts in an installed child, on the child's own board (54.745682ms)
✔ task.create refuses a project outside the tree, a watch-only one and one that is not an id (26.057674ms)
✔ with descendants off, task.create takes only the root project (15.468915ms)
✔ a verb on a watch-only task, or a relation to one, refuses with project-not-installed (20.940173ms)
✔ a related task is read before authority: in another project than its ref names, task-moved; missing, task-not-found (24.405455ms)
✔ a task moved to another project of the tree refuses its old ref with task-moved and takes its new one (15.625905ms)
✔ a verb and a create in the child record the final read of the child's board (15.333603ms)
✔ a create in the child whose final read fails records the child's todo bucket (35.539544ms)
✔ a lost answer in the child is settled by a re-read of the child's board (21.94509ms)
✔ every related task is read before authority, not only the first (15.563665ms)
ℹ tests 92
ℹ suites 0
ℹ pass 92
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1271.344928
