This run is untrusted
An agent opened the pull request or pushed to it. Its jobs get no secrets, and each deploy waits for a person.
Jobs
- test27snodeFailedStep 2 (Test) exited with 1.
testFailed
Set up job1s
- 1Checked out refs/heads/cli/agent-only-tokens at bdcbbb2
Install14s
- 1
- 2added 203 packages in 14s
- 3npm warn install-scripts 2 packages have install scripts not yet covered by allowScripts:
- 4npm warn install-scripts esbuild@0.28.1 (postinstall: node install.js)
- 5npm warn install-scripts workerd@1.20261001.1 (postinstall: node install.js)
- 6npm warn install-scripts
- 7npm warn install-scripts Run `npm install-scripts ls` to review, or `npm install-scripts approve <pkg>` to allow.
Test12s
- 1
- 2> test
- 3> node --import ./apps/backend/test/workers-runtime.ts --test 'apps/*/test/**/*.test.ts' 'packages/*/test/**/*.test.ts'
- 4
- 5✔ a record that does not say what it costs to reverse is refused, and the task branch never moves (75.044244ms)
- 6✔ a commit with a record, or with none, lands and its ids are reported (46.614239ms)
- 7✔ a push after the task branch was merged checks only its new commits, not the default branch's history (24.49854ms)
- 8✔ a branch that moved during the check refuses the push and still releases the quarantine (24.33898ms)
- 9✔ an agent mention counts only outside code and as a whole handle (1.352851ms)
- 10✔ each built-in agent has a handle that a mention finds (0.486351ms)
- 11✔ the changed declarations list each touched symbol with how often it is used (9.023997ms)
- 12✔ the run list shows who started each run, where it stands, and the steps of a working run (22.678909ms)
- 13✔ a dead run is marked failed once, and a run that already ended stays as it is (21.387438ms)
- 14✔ delivery uses stable identity and an explicit property allowlist (33.339538ms)
- 15✔ approval is not attributed as activity by the account holder (0.40166ms)
- 16✔ disabled, incomplete, or untrusted configuration sends nothing (0.428091ms)
- 17✔ delivery does not wait for PostHog before returning (0.34975ms)
- 18✔ network failures are contained and do not log private details (0.596971ms)
- 19✔ HTTP failures are contained without logging response bodies (0.59656ms)
- 20✔ EU delivery is supported and separate captures have separate identifiers (0.411681ms)
- 21CIMD (Client ID Metadata Document) is disabled: add '"compatibility_flags": ["global_fetch_strictly_public"]' to your wrangler.jsonc to enable. See: https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
- 22✔ the CLI's repository routes act as the person only for a sign-in with the git scope (64.189254ms)
- 23✔ an outline finds top-level declarations with their line ranges (3.829833ms)
- 24✔ an outline finds class members and marks `this.` uses as member uses (0.93305ms)
- 25✔ an outline reads JSX tags as uses and does not mistake `</` or `/>` for a regular expression (0.5141ms)
- 26✔ the graph resolves uses across relative imports, re-exports and workspace packages (7.052186ms)
- 27✔ a package's exports map becomes repository paths (0.37283ms)
- 28✔ indexing a commit reads its source files and skips dependencies and declaration files (1.35719ms)
- 29✔ a commit's map is built once, then read back from storage (76.428325ms)
- 30✔ a build that never finished is taken over, and an empty commit is stored as empty (20.055487ms)
- 31✔ code changes place added lines and removed lines on the head version (0.969241ms)
- 32✔ delivers pushes to the current task branch by others, never the session's own (1.21285ms)
- 33✔ an idle session receives no pushes (0.14823ms)
- 34✔ delivers problems only to the session that pushed the commit (0.35753ms)
- 35✔ delivers instructions and stop only to the session they address, idle or not (0.24104ms)
- 36✔ delivers mentions to the session they name (0.40041ms)
- 37✔ tells the parent session when its sub-agent finishes (0.25025ms)
- 38✔ diff rows number both sides, deletions before additions (1.784802ms)
- 39✔ counts a small change in a large file exactly (6.072106ms)
- 40✔ a selected range covers the rows between its ends across both sides (0.395311ms)
- 41✔ finds the nearest common ancestor (0.56556ms)
- 42✔ compares trees and blobs with file totals (1.112081ms)
- 43✔ a branch that merged its base lists only its own commits (0.734041ms)
- 44✔ commits made in the same second still list oldest first (0.633711ms)
- 45✔ each commit on a branch lists the paths it changed against its first parent (0.62214ms)
- 46✔ remembered reads stay inside their repository (1.003221ms)
- 47✔ a person directing a live agent is captured once per mention, without the mention text (66.620206ms)
- 48✔ an agent mentioning another agent is not human direction (26.254472ms)
- 49✔ hashes objects as git does (10.089949ms)
- 50✔ orders a directory as if its name ended in a slash (1.231922ms)
- 51✔ writes a version 2 pack with a trailing checksum (37.338361ms)
- 52✔ reads a receive-pack report (0.728281ms)
- 53✔ merges trees path by path and reports files both sides changed (2.187722ms)
- 54✔ a committed batch hints each stream's repository once, with its newest event (22.605269ms)
- 55✔ a single recorded event hints after it runs (20.089597ms)
- 56✔ a failed batch hints nothing (20.663687ms)
- 57✔ reading an event statement with first() fails instead of skipping its hint (19.910817ms)
- 58✔ attributes each entry to the newest commit that changed it (1.096712ms)
- 59✔ leaves entries unattributed when history beyond the log is unavailable (0.29203ms)
- 60✔ pages through history until every entry is attributed (0.472061ms)
- 61✔ commit history retains the full message for reasoning (0.22525ms)
- 62✔ reasoning history keeps page boundaries and newest-first order (0.755781ms)
- 63✔ a repository agent replaces the shared and built-in agent of the same handle (28.479164ms)
- 64✔ a working key is tested, sealed, kept on a later edit, and opened for runs (101.844667ms)
- 65✔ a rejected key is not stored and the error never shows the key (19.586356ms)
- 66✔ only a person with edit rights changes agents, and bad input is refused before any request (20.681708ms)
- 67✔ provider errors name the problem without the key (0.18655ms)
- 68✔ an email has a text and an escaped HTML body with its link (1.750891ms)
- 69✔ escapes raw HTML (6.513855ms)
- 70✔ neutralises dangerous link schemes and keeps safe ones (10.213798ms)
- 71✔ routes relative links and images through the resolver (1.667052ms)
- 72✔ firstInvalid reports the first failed field in the order given, or nothing when all pass (0.969151ms)
- 73CIMD (Client ID Metadata Document) is disabled: add '"compatibility_flags": ["global_fetch_strictly_public"]' to your wrangler.jsonc to enable. See: https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
- 74✔ pendingPermissions hides a decided request, and deciding twice is a no-op (21.776268ms)
- 75✔ refs_approve returns the decision recorded in permission_requests (33.863189ms)
- 76✔ a verdict given while the waiter was gone reaches the retry, and only for the input it was asked about (25.464992ms)
- 77✔ expiry denies approvals past their window once, drops them from the portal, and names the next deadline (25.712732ms)
- 78✔ connect records the session's start event on the session (35.27662ms)
- 79✔ no hot session or approval query scans a table (27.398023ms)
- 80✔ the migration backfills start events and permission requests, and can run again (7.774757ms)
- 81CIMD (Client ID Metadata Document) is disabled: add '"compatibility_flags": ["global_fetch_strictly_public"]' to your wrangler.jsonc to enable. See: https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
- 82✔ consecutive MCP calls within a minute write last_seen_at once (20.811348ms)
- 83✔ a PAT used for several git requests within a minute writes last_used_at once (115.174938ms)
- 84✔ the refs CLI sign-in works as the human for git only when its grant has the git scope (19.650397ms)
- 85✔ a mention asks the hub, not the machines projection, whether the machine is connected (22.204869ms)
- 86✔ a hub that fails after the mention is saved does not fail the comment that made it (19.859007ms)
- 87✔ assigning on a pull request hands the agent its branch, never the default branch (40.266605ms)
- 88✔ the SessionEnd hook takes the conversation's session offline without ending it (20.892527ms)
- 89✔ revoking one agent grant ends only the sessions that grant started, and sessions with no recorded grant (22.421819ms)
- 90CIMD (Client ID Metadata Document) is disabled: add '"compatibility_flags": ["global_fetch_strictly_public"]' to your wrangler.jsonc to enable. See: https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
- 91✔ creation and import are captured only after storage and the domain event succeed (120.300233ms)
- 92✔ storage failure captures failure, rolls back the repository, and emits no success (26.995073ms)
- 93✔ validation failures do not become storage attempts or successful adoption (22.332569ms)
- 94✔ a name conflict emits a conflict outcome without a second success (20.852658ms)
- 95✔ a failed domain event write does not emit a provisioning success (21.292618ms)
- 96✔ forks use a separate entry path rather than counting as imports or new projects (24.686591ms)
- 97✔ reads ref updates up to the flush packet (1.552561ms)
- 98✔ asks for more bytes when the command list is cut off (0.1738ms)
- 99✔ rejects a push with a reason per ref, inside side-band when the client asked for it (36.29578ms)
- 100✔ reports ok and ng per ref, with remote: lines on side-band 2 before the status (1.607121ms)
- 101✔ reads a plain receive-pack report (0.505261ms)
- 102✔ drops a prefix that spans chunks (4.085023ms)
- 103code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 104 at file:///work/apps/backend/diff.ts:48:56
- 105 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 106 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 107 at file:///work/apps/backend/code-index/build.ts:46:88
- 108 at Array.map (<anonymous>)
- 109 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 110 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 111 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 112 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 113 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 114code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 115 at file:///work/apps/backend/diff.ts:48:56
- 116 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 117 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 118 at file:///work/apps/backend/code-index/build.ts:46:88
- 119 at Array.map (<anonymous>)
- 120 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 121 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 122 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 123 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 124 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 125push failed on attempt 1, retrying: repo repo refs/heads/main 3333333333333333333333333333333333333333 Error: Artifacts unavailable
- 126 at Object.get (file:///work/apps/backend/test/pushes.test.ts:56:35)
- 127 at detectMerges (file:///work/apps/backend/pushes.ts:160:38)
- 128 at async processPush (file:///work/apps/backend/pushes.ts:53:3)
- 129 at async consumePushes (file:///work/apps/backend/pushes.ts:145:13)
- 130 at async deliver (file:///work/apps/backend/test/pushes.test.ts:67:3)
- 131 at async TestContext.<anonymous> (file:///work/apps/backend/test/pushes.test.ts:113:16)
- 132 at async Test.run (node:internal/test_runner/test:1439:7)
- 133 at async Test.processPendingSubtests (node:internal/test_runner/test:1004:7)
- 134code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 135 at file:///work/apps/backend/diff.ts:48:56
- 136 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 137 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 138 at file:///work/apps/backend/code-index/build.ts:46:88
- 139 at Array.map (<anonymous>)
- 140 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 141 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 142 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 143 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 144 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 145code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 146 at file:///work/apps/backend/diff.ts:48:56
- 147 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 148 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 149 at file:///work/apps/backend/code-index/build.ts:46:88
- 150 at Array.map (<anonymous>)
- 151 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 152 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 153 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 154 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 155 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 156code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 157 at file:///work/apps/backend/diff.ts:48:56
- 158 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 159 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 160 at file:///work/apps/backend/code-index/build.ts:46:88
- 161 at Array.map (<anonymous>)
- 162 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 163 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 164 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 165 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 166 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 167✔ a push delivered twice, by a session that has since ended, has its consequences once (68.484358ms)
- 168✔ a push asks CI for the pipeline at its branch tip, and a CI failure does not fail the push (23.56222ms)
- 169✔ a push whose processing fails is retried until the pull request is merged and its decisions indexed (25.968272ms)
- 170✔ a push is indexed under the session that pushed it, even after the session ended (24.501291ms)
- 171code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 172 at file:///work/apps/backend/diff.ts:48:56
- 173 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 174 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 175 at file:///work/apps/backend/code-index/build.ts:46:88
- 176 at Array.map (<anonymous>)
- 177 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 178 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 179 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 180 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 181 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 182code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 183 at file:///work/apps/backend/diff.ts:48:56
- 184 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 185 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 186 at file:///work/apps/backend/code-index/build.ts:46:88
- 187 at Array.map (<anonymous>)
- 188 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 189 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 190 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 191 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 192 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 193✔ a human push that lands a pull request is captured once as landed work, and a push refs found is not (59.978941ms)
- 194code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 195 at file:///work/apps/backend/diff.ts:48:56
- 196 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 197 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 198 at file:///work/apps/backend/code-index/build.ts:46:88
- 199 at Array.map (<anonymous>)
- 200 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 201 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 202 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 203 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 204 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 205code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 206 at file:///work/apps/backend/diff.ts:48:56
- 207 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 208 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 209 at file:///work/apps/backend/code-index/build.ts:46:88
- 210 at Array.map (<anonymous>)
- 211 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 212 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 213 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 214 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 215 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 216ref sweep: 1 repos checked, 0 seeded, 2 mismatched refs enqueued
- 217code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 218 at file:///work/apps/backend/diff.ts:48:56
- 219 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 220 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 221 at file:///work/apps/backend/code-index/build.ts:46:88
- 222 at Array.map (<anonymous>)
- 223 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 224 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 225 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 226 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 227 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 228ref sweep: 1 repos checked, 0 seeded, 0 mismatched refs enqueued
- 229ref sweep seeded 2 refs of repo repo without replaying them
- 230ref sweep: 1 repos checked, 1 seeded, 0 mismatched refs enqueued
- 231ref sweep: 1 repos checked, 0 seeded, 0 mismatched refs enqueued
- 232code map failed for repo repo at 3333333333333333333333333333333333333333 TypeError: handle.readTree is not a function
- 233 at file:///work/apps/backend/diff.ts:48:56
- 234 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 235 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 236 at file:///work/apps/backend/code-index/build.ts:46:88
- 237 at Array.map (<anonymous>)
- 238 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 239 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 240 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 241 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 242 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 243code map failed for repo repo at bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb TypeError: handle.readTree is not a function
- 244 at file:///work/apps/backend/diff.ts:48:56
- 245 at remembered (file:///work/apps/backend/diff.ts:32:19)
- 246 at readTree (file:///work/apps/backend/diff.ts:48:10)
- 247 at file:///work/apps/backend/code-index/build.ts:46:88
- 248 at Array.map (<anonymous>)
- 249 at walk (file:///work/apps/backend/code-index/build.ts:46:43)
- 250 at indexCommit (file:///work/apps/backend/code-index/build.ts:33:23)
- 251 at async buildCodeMap (file:///work/apps/backend/code-maps.ts:37:19)
- 252 at async indexPushedTips (file:///work/apps/backend/code-maps.ts:57:65)
- 253 at async processPush (file:///work/apps/backend/pushes.ts:56:3)
- 254✔ an indexed push is captured with its commit and decision counts, and a push refs found is not (77.613126ms)
- 255✔ a human push to any branch indexes its decisions, with no session (21.971139ms)
- 256✔ a merge into the default branch changes no task, even when the pull request names one with a closing keyword (24.528331ms)
- 257✔ pushes whose messages were lost are found by the sweep and processed once, as refs (30.938077ms)
- 258✔ the first sweep of a repository records its tips without replaying them (24.14697ms)
- 259✔ a push processed after a later one does not move its ref back (20.144537ms)
- 260✔ parses branches, tags and HEAD from a v0 advertisement (2.031711ms)
- 261✔ returns no refs for an empty repository (0.25578ms)
- 262✔ repository imports classify the provider without sending source URLs or account details (31.598267ms)
- 263✔ agent repository work remains separate from human activity (0.54603ms)
- 264✔ provisioning failures use fixed reason codes without claiming a repository exists (0.33359ms)
- 265✔ anonymous repository activity is not captured (0.2702ms)
- 266CIMD (Client ID Metadata Document) is disabled: add '"compatibility_flags": ["global_fetch_strictly_public"]' to your wrangler.jsonc to enable. See: https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
- 267✔ connect and take keep the token out of the text for the credential helper, and in it for clients without one (66.469277ms)
- 268✔ refs_take hands a session a named branch or a pull request's branch, and never the default branch (32.260598ms)
- 269✔ refs_take on a pull request takes its head branch (58.71494ms)
- 270✔ an agent sees the pull requests of its branch, and no others, and reads tasks like its human (0.67913ms)
- 271✔ refs_open_pull needs a held branch (21.249648ms)
- 272✔ refs_view_pull needs a held branch with an open pull request (22.176899ms)
- 273✔ two refs_events calls at the same time hand an update to only one of them (26.095562ms)
- 274✔ refs_connect names the session outside the text, both for a new session and for a reconnect (24.473141ms)
- 275✔ a new repository's first commit holds the agent set-up files, readable by git (120.410913ms)
- 276✔ a thread anchors to lines or to a decision, never both or neither (19.171846ms)
- 277✔ a pushed decision that supersedes a steered one marks its open threads addressed (19.253367ms)
- 278✔ a branched pull request knows where it started, and its source lists it (20.374647ms)
- 279✔ a new task gets its number, its opened event and its labels in one write (20.637468ms)
- 280✔ a pull request and its commits name the agent that opened and pushed them (19.091766ms)
- 281✔ a private repository is visible only to members of its namespace (19.866797ms)
- 282✔ anyone can read another namespace's public repository, but only members write to it (16.637674ms)
- 283✔ each namespace has its own repository names (17.401265ms)
- 284✔ task lists and labels stay inside their namespace (29.844955ms)
- 285✔ git URLs name the namespace and the repository (0.463901ms)
- 286✔ a handle must be a lowercase slug that no route uses (0.21419ms)
- 287✔ activating a waitlisted user creates their namespace once, and only then can they hold a session (30.971126ms)
- 288✔ an organization's owner manages its members (18.259255ms)
- 289✔ an agent grant stops granting repository access once its expiry time passes (0.619751ms)
- 290✔ CI runs and secrets stay inside their repository and namespace (84.149492ms)
- 291✔ the pipeline from the design page parses (10.955589ms)
- 292✔ a pipeline without on runs on every push, pull request and manual start (0.57579ms)
- 293✔ on lists only the triggers it names (0.932821ms)
- 294✔ a step is named after the first line of its command (1.474141ms)
- 295✔ images: built-in and dated built-in; an unknown image is refused (1.03547ms)
- 296✔ a job names the secrets it gets, in secret-name form (0.866801ms)
- 297✔ every problem is reported with its path, not only the first (0.822471ms)
- 298✔ needs must name other jobs and must not form a cycle (1.514141ms)
- 299✔ YAML that does not parse, a duplicate key, and a file that is not a mapping are invalid (1.683012ms)
- 300✔ on is a key, not the YAML 1.1 boolean (0.43832ms)
- 301✔ a file over 64 KB is refused before parsing (0.15906ms)
- 302✔ an agent job names a hosted agent and an optional prompt, and takes no container keys (1.316811ms)
- 303✔ a new run is queued and starts only the jobs that need nothing (1.861662ms)
- 304✔ a job starts when every job it needs succeeds, and the run succeeds at the end (0.41725ms)
- 305✔ a failure skips every job after it, in one advance (0.2952ms)
- 306✔ an environment that needs approval holds the job until a person approves (0.34269ms)
- 307✔ a rejected deploy cancels the job, and a closed environment fails it with the reason (0.24342ms)
- 308✔ cancel stops live jobs, and a late exit after it is ignored (0.17159ms)
- 309✔ a job that waits for its image moves on when the image is ready, or fails with the build (0.15868ms)
- 310✔ a move the rules do not allow throws (0.41809ms)
- 311✔ saved records load back into the same run (0.483251ms)
- 312✔ trust follows who started the run (0.714311ms)
- 313✔ an environment gate checks existence, branch, trust and approval, in that order (0.25992ms)
- 314✔ branch patterns: * stays in one segment, ** crosses segments, the rest is literal (0.13422ms)
- 315✔ a run ID is stable for one commit and config, and changes with either (9.206248ms)
- 316✔ a run ID fits a Workflow instance ID even for a long repo name (1.335871ms)
- 317✔ the batcher keeps order, splits on step changes and flushes the rest (9.761859ms)
- 318✔ a failed send is dropped and later output still goes out (0.438171ms)
- 319✔ a sealed secret opens with the same scope (12.210811ms)
- 320✔ sealing twice gives different ciphertexts (1.489972ms)
- 321✔ a sealed secret copied to another repo, environment or name does not open (1.459151ms)
- 322✔ another master key cannot open it, and a bad master key is refused (1.275671ms)
- 323✔ the masker hides a secret and its encoded forms (0.57839ms)
- 324✔ the masker finds a secret split across chunks (0.21077ms)
- 325✔ the masker hides each line of a secret that spans lines, and ignores very short secrets (0.35377ms)
- 326✔ the masker sends a very long line in parts instead of holding it (0.340781ms)
- 327✔ the CI tables accept a run and refuse a secret name that is not upper snake case (17.902605ms)
- 328✔ a job gets only the secrets it names: environment over repository over organization, and environment secrets only when allowed (24.396861ms)
- 329✔ the gh-style commands read the repository from the clone, print JSON for agents, and never merge without a terminal (633.60902ms)
- 330✖ the MCP proxy hands refs_take's token to git's credential helper, never to the model, and takes it back on release (180.167874ms)
- 331✔ outside a refs clone, the MCP server answers on its own, offers no tools and never calls refs (133.650134ms)
- 332✔ with no session token, the credential helper answers git with your own sign-in, but only when it has the git scope (196.620488ms)
- 333✔ the credential helper gives a session token only to git that the agent runs, and your sign-in to everyone else (213.970273ms)
- 334✔ refs update keeps the installed CLI when the download is cut off (129.44529ms)
- 335✔ refs update keeps the installed CLI when the checksum does not match (91.307248ms)
- 336✔ refs update replaces the CLI when the download is whole and matches its checksum (114.900338ms)
- 337✔ a failed step fails, the steps before it succeed and the steps after it are skipped (1.447721ms)
- 338✔ in a running job the last started step runs and later steps wait (0.14959ms)
- 339✔ a cancelled job marks the step it stopped in, and a job that never ran skips every step (0.551531ms)
- 340✔ a newer run of the branch replaces an older failure, and a cancelled run does not count (0.67832ms)
- 341✔ parses a full decision record (2.356462ms)
- 342✔ a plain commit message has no decisions (0.14166ms)
- 343✔ reports missing, unknown and malformed fields (0.25735ms)
- 344✔ rejects tabs, unclosed blocks and mixed nesting (1.763672ms)
- 345✔ checks duplicates and supersedes across a push (0.34586ms)
- 346✔ reviews pushed commits into records to index and problems that reject the push (0.772791ms)
- 347✔ a strict review refuses a record that does not say what it costs to reverse (0.37987ms)
- 348✔ net decisions leave out a superseded decision and a repeated sentence (0.3583ms)
- 349✔ derives a stable, valid id from the commit and the block's position (0.2421ms)
- 350✔ supersedes names a decision by id, or by its commit and block number (0.38517ms)
- 351✔ an old record that names a task is still valid, and the task is not kept (0.19293ms)
- 352✔ narrative keeps the body and drops the subject and decision blocks (0.239831ms)
- 353✔ a commit with more decision blocks than allowed is refused, and no block past the cap gets an id (0.55622ms)
- 354✔ narrative drops trailing git trailers and collapses runs of blank lines (0.09965ms)
- 355✔ sessions may only update their own branch (0.797291ms)
- 356✔ a session without a branch claims a new one by pushing it, but never the default branch (0.39581ms)
- 357✔ describes each delivery as an instruction the agent can act on (0.53373ms)
- 358✔ hook output adds context for the hook's event, or nothing (0.578681ms)
- 359ℹ tests 203
- 360ℹ suites 0
- 361ℹ pass 202
- 362ℹ fail 1
- 363ℹ cancelled 0
- 364ℹ skipped 0
- 365ℹ todo 0
- 366ℹ duration_ms 11284.769289
- 367
- 368✖ failing tests:
- 369
- 370test at apps/cli/test/credential.test.ts:18:1
- 371✖ the MCP proxy hands refs_take's token to git's credential helper, never to the model, and takes it back on release (180.167874ms)
- 372 Error: Command failed: git -C /tmp/refs-cli-yolQWw/clone credential fill
- 373 at genericNodeError (node:internal/errors:986:15)
- 374 at wrappedFn (node:internal/errors:540:14)
- 375 at checkExecSyncError (node:child_process:1010:11)
- 376 at execFileSync (node:child_process:1046:15)
- 377 at git (file:///work/apps/cli/test/credential.test.ts:15:10)
- 378 at fill (file:///work/apps/cli/test/credential.test.ts:54:22)
- 379 at TestContext.<anonymous> (file:///work/apps/cli/test/credential.test.ts:61:16)
- 380 at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
- 381 at async Test.run (node:internal/test_runner/test:1439:7)
- 382 at async startSubtestAfterBootstrap (node:internal/test_runner/harness:358:3) {
- 383 status: 128,
- 384 signal: null,
- 385 output: [ null, '', null ],
- 386 pid: 447,
- 387 stdout: '',
- 388 stderr: null
- 389 }