Artifactspublic-v0

ply

main
ply4 git calls611 ms67 KiB1 cachedprotocol v2
875 lines120 KiBRaw
1// The spaces registry: every space ply has (merged, or in an open PR), and for every decision point in src/ and every
2// check in git's source (test/space/git-manifest.json) the space and axis that covers it, or the reason it does not
3// apply. test/space/registry.test.js (gates a, b) and test/space/failsites.test.js (gate c) hold the code to it; SPACES.md
4// is generated from it (npm run spaces -- --md).
5//
6// A space: { name, status: 'main' | 'pending', pending: '#NN' (the open PR), kind, axes: [{ tag, n?, doc }], cells,
7// observed?, derived?, oracle, run, runners: [the files that run its cells] }
8// kind enumerated: the full product of its axes is walked (or a seeded sample of it, said in `run`)
9// curated: a hand-picked list of cases (one axis, `case`); a space in name only, until it is enumerated
10// random: seeded random cells of a product too big to walk; finds bugs, cannot prove a class gone
11// run ci (every PR, inside the recorded unit-test run), ci-step (a separate CI step, outside it), nightly, local
12// (npm test only), manual (an env var or a flag)
13// osDependent why the space's cells can differ by OS (a filesystem that cannot store a name, git defaults that
14// differ per platform). Expectations come from what the git server observably does on that run, never from a
15// model of it; fixtures put refs in reftable (`git refs migrate`, git >= 2.46, as fix/43-bom 716cd77 does) so no
16// filesystem hides a ref name. The Linux run in CI is the pass of record (test/space/failsites.test.js).
17//
18// A rule: { match, space, axisTag } or { match, excluded: '<reason>' }. `match` is an id (scripts/decision-points.mjs
19// or git-manifest.json), or a glob with `*`. An exact id wins over a glob; among globs the first listed wins.
21const curated = (name, runners, oracle, extra = {}) => ({ name, status: 'main', kind: 'curated', axes: [{ tag: 'case', doc: 'the named test cases' }], cells: 'cases', oracle, run: 'ci', runners, ...extra });
22const random = (name, runners, axes, oracle, extra = {}) => ({ name, status: 'main', kind: 'random', axes, cells: 'seeded', oracle, run: 'local', runners, ...extra });
24export const SPACES = [
25 // ---- enumerated, merged ----
26 { name: 'fetch-protocol', status: 'main', kind: 'enumerated', runners: ['test/protocol.test.js'], run: 'ci',
27 axes: [{ tag: 'want', n: 8 }, { tag: 'have', n: 11 }, { tag: 'deepen', n: 6 }, { tag: 'filter', n: 9 }, { tag: 'server', n: 3 }, { tag: 'cycled', doc: 'thin-pack, ofs-delta, done and client shallow cycle with the cell index (deterministic, not a product axis)' }],
28 cells: 14256, observed: 14256, derived: 0, oracle: 'git pack-objects as upload-pack invokes it (exact object set) + the bound required ⊆ got ⊆ required ∪ had + invocation capture' },
29 { name: 'ident-alphabet', status: 'main', kind: 'enumerated', runners: ['test/compliance.test.js'], run: 'ci',
30 axes: [{ tag: 'name', doc: 'alphabet³ plus curated' }, { tag: 'email', doc: 'alphabet³ plus curated, independently' }],
31 cells: 4767, observed: 4767, derived: 0, oracle: 'index-pack --strict (fsck_ident) on a commit carrying the ident' },
32 { name: 'refname-alphabet', status: 'main', kind: 'enumerated', runners: ['test/compliance.test.js'], run: 'ci',
33 axes: [{ tag: 'component', doc: 'component strings over an alphabet' }, { tag: 'shape', doc: 'prefix, depth, trailing forms' }],
34 cells: 1431, observed: 1431, derived: 0, oracle: 'git check-ref-format' },
35 { name: 'tree-name-alphabet', status: 'main', kind: 'enumerated', runners: ['test/compliance.test.js'], run: 'ci',
36 axes: [{ tag: 'name', doc: 'alphabet², .git variants, NTFS/HFS forms' }],
37 cells: 924, observed: 924, derived: 0, oracle: 'index-pack --strict + fsck --strict on a tree with the name',
38 osDependent: 'core.protectHFS / protectNTFS default per platform (HFS on macOS, NTFS on Windows): the same name can be refused by a checkout on one OS and not another' },
39 { name: 'tree-encoding', status: 'main', kind: 'enumerated', runners: ['test/compliance.test.js'], run: 'ci',
40 axes: [{ tag: 'pair', n: 600, doc: 'name pairs' }, { tag: 'modes', n: 5 }, { tag: 'order', n: 2 }],
41 cells: 6000, observed: 6000, derived: 0, oracle: 'git mktree / write-tree' },
42 { name: 'push-parity', status: 'main', kind: 'enumerated', runners: ['test/push.test.js'], run: 'ci',
43 axes: [{ tag: 'config', n: 6, doc: 'denyNonFastForwards, denyDeletes, unpackLimit, fsck' }, { tag: 'hook', n: 4 }, { tag: 'command', n: 8 }, { tag: 'caps', n: 4 }],
44 cells: 768, observed: '1 in 8 per day (seeded); 768 with PUSH_MATRIX=full', derived: 0, oracle: '`git push` on a twin repo: same refs, same accept/reject' },
45 { name: 'credential-cells', status: 'main', kind: 'enumerated', runners: ['test/adversarial.test.js'], run: 'ci',
46 axes: [{ tag: 'source', n: 3, doc: 'url userinfo, fields, header (the ssh sources left with the SSH transport, #89)' }, { tag: 'user', n: 6 }, { tag: 'password', n: 4 }],
47 cells: 72, observed: 67, derived: 5, oracle: 'git 2.50 behind a Basic-auth gate (what it sends), stated outcome elsewhere (#40, #48)' },
48 { name: 'wide-limits', status: 'main', kind: 'enumerated', runners: ['test/wide-limits.test.js'], run: 'ci',
49 axes: [{ tag: 'server', n: 2 }, { tag: 'wanted', n: 3 }, { tag: 'sibling', n: 4 }, { tag: 'op', n: 5 }],
50 cells: 120, observed: 120, derived: 0, oracle: 'git cat-file / ls-tree / merge-tree; tree:0 and blob:none agree oid for oid (#46, #47)' },
51 { name: 'limits-sweep', status: 'main', kind: 'enumerated', runners: ['test/sweep/run.mjs'], run: 'ci-step',
52 axes: [{ tag: 'param', doc: 'every Limits key; keys with later:true in test/sweep/params.mjs are registered and not swept yet' }, { tag: 'value', doc: '0, 1, limit−1, limit, limit+1, and powers of two through the first power past the limit' }, { tag: 'heap', n: 2, doc: 'the default heap, and --max-old-space-size=128' }],
53 cells: 'CI: bytes ≤ 16 MiB and entries ≤ 65536, both heaps; nightly: the rest of the matrix',
54 oracle: 'git http-backend over a per-cell fixture (cat-file, ls-tree, rev-list --first-parent, ls-remote, merge-base, verify-pack, fsck). A divergence from the desired status fails unless test/sweep/ratchet.json names that cell and heap; a ratchet line whose cell now matches is itself a failure' },
56 // ---- enumerated, in open PRs ----
57 { name: 'push-outcome', status: 'main', kind: 'enumerated', runners: ['test/space/push-outcome.test.js', 'test/space/push-outcome-boundary.0.test.js', 'test/space/push-outcome-boundary.1.test.js', 'test/space/push-outcome-boundary.2.test.js', 'test/space/push-outcome-boundary.3.test.js', 'test/space/push-oid.test.js'], run: 'ci',
58 axes: [{ tag: 'event', n: 14 }, { tag: 'framing', n: 2 }, { tag: 'delivery', n: 13 }, { tag: 'refs', n: 3 }, { tag: 'commands', n: 2 }, { tag: 'atomic', n: 2 }, { tag: 'format', n: 4 }, { tag: 'unpack', n: 6 }, { tag: 'status', n: 10 }, { tag: 'spread', n: 31 }],
59 cells: '4.3M (412,008 wrong on main) + 36 command-oid pairs', observed: 'scenarios from git 2.50 (push-outcome.observed.js); 36 oid pairs against receive-pack', derived: 'the rest, from git source', oracle: 'expected() derived rule by rule from git v2.50.0 receive-pack/send-pack, checked against observed git. Command oids: every pair of {lower, upper, len39, len41, nonhex, empty} against receive-pack; ply requires lowercase 40-hex, so an uppercase oid git accepts is a typed bad_request' },
60 { name: 'advertisement', status: 'main', kind: 'enumerated', runners: ['test/space/advertisement.test.js'], run: 'ci',
61 axes: [{ tag: 'protocol', n: 8, doc: 'caps: v2 (carries the capability axes), v0, v1, ERR, v2 after the service preamble, the preamble without its flush, text/html, a reset' }, { tag: 'agent', n: 3 }, { tag: 'objectFormat', n: 6 }, { tag: 'fetch', n: 33 }, { tag: 'lsRefs', n: 3 }, { tag: 'serverOption', n: 2 }, { tag: 'sessionId', n: 2 }, { tag: 'malformed', n: 9, doc: 'none, no LF, unknown capability, duplicate, 65519/65520-byte line, no flush, delim, trailing pkt' },
62 { tag: 'record', n: 18, doc: 'refs: one ls-refs record shape' }, { tag: 'eol', n: 2 }, { tag: 'framing', n: 6 },
63 { tag: 'request', n: 4, doc: 'push: none, atomic, push options, both' }, { tag: 'atomic', n: 2 }, { tag: 'options', n: 2 }, { tag: 'format', n: 2 },
64 { tag: 'flag', n: 5, doc: 'request: no-progress, progress, include-tag, deepen-relative, filter' }, { tag: 'server', n: 2 }],
65 cells: 64417, observed: 317, derived: 64100, oracle: 'git ls-remote / git fetch / git push / git clone against a synthetic smart-HTTP server (advertisement and ls-refs rendered per cell, fetch forwarded to git http-backend) and receive-pack configured per cell; git\'s request lines and upload-pack\'s pack-objects invocation for the request cells; six real http-backend configurations render exactly' },
66 { name: 'push-ng', status: 'main', kind: 'enumerated', runners: ['test/space/push-ng.test.js'], run: 'ci',
67 axes: [{ tag: 'reason', n: 42 }, { tag: 'command', n: 8 }, { tag: 'atomic', n: 2 }, { tag: 'refs', n: 3 }, { tag: 'era', n: 2 }],
68 cells: '1,057 (32 wrong on train/1 77eb2c0)', observed: '791 (776 on git 2.50, era v2.51+ on git >= 2.51)', derived: 266, oracle: 'real `git receive-pack --stateless-rpc` arranged per reason (config, hooks, hidden refs, symrefs, shallow lines, worktrees, proc-receive): its report byte for byte = the cell\'s derived report, ply\'s outcome = the class table, refs agree; git v2.50 locally, git >= 2.51 (batched texts) in CI' },
69 { name: 'fsck-commit', status: 'main', kind: 'enumerated', runners: ['test/fsck-space.test.js'], run: 'ci',
70 axes: [{ tag: 'ident', n: 36 }, { tag: 'role', doc: 'author, committer, tagger' }, { tag: 'body', n: 9 }, { tag: 'eol', n: 2 }, { tag: 'commitHeader', n: 29 }, { tag: 'tagHeader', n: 18 }],
71 cells: '51,338 objects (3,598 wrong verdicts on main)', observed: 51338, derived: 0, oracle: 'git fsck --strict (both streams, exit code, msgId) on hash-object --literally objects (#59)' },
72 { name: 'mergebase', status: 'main', kind: 'enumerated', runners: ['test/mergebase-space.test.js'], run: 'ci',
73 axes: [{ tag: 'position', n: 4 }, { tag: 'multiplicity', n: 4 }, { tag: 'settled', n: 3 }, { tag: 'server', n: 7 }, { tag: 'op', n: 3 }],
74 cells: '≤ 1,008 (product; rebase only where git has one base on the honest server) + 8 parent-count picks', oracle: 'git merge-base --all, merge-tree --write-tree, git rebase (#41, #42). pickCommit: 0–3 parents × cherry-pick/revert against git cherry-pick and git revert (a merge, two or three parents, is not_linear; git refuses it with no -m)' },
75 { name: 'merge-depth', status: 'main', kind: 'enumerated', runners: ['test/space/merge-depth.test.js'], run: 'ci',
76 axes: [{ tag: 'relation', n: 3, doc: 'fork (two branches), ancestor (one behind), unrelated (no common)' }, { tag: 'length', n: 5, doc: 'distance from the tip(s): 1, 7, 8, 9, 15' }, { tag: 'cap', n: 8, doc: 'maxDepth: 0, 0.5, 1, 7, 8, 9, 15.5, 16' }],
77 cells: 120, observed: 120, derived: 0, oracle: 'git merge-base --all at the same positions; when capped, report the attempted window size (got) and the cap (max) separately' },
78 { name: 'default-depth', status: 'main', kind: 'enumerated', runners: ['test/space/default-depth.test.js'], run: 'ci',
79 axes: [{ tag: 'asked', n: 3, doc: "the caller's deepen: none, 0, 2" }, { tag: 'expectType', n: 5, doc: 'none, COMMIT, TAG, TREE, BLOB' }, { tag: 'knowledge', n: 3, doc: 'what the quirks record was taught about `shallow`: unlearned, listed, unlisted' }, { tag: 'advertised', n: 2, doc: 'whether fetch= lists `shallow` during the call' }, { tag: 'refusal', n: 5, doc: 'what the server does with `deepen`: takes it, an empty response, an ERR line, HTTP 400, ignores it' }, { tag: 'path', n: 4, doc: "tree:0 single, blob:none wide, unfiltered wide, filter ''" }],
80 cells: 1800, observed: 1800, derived: 0, oracle: "git http-backend behind a proxy that renders the cell's server (git's own advertisement and packs; `shallow` taken off fetch=, `deepen` refused or dropped): the requests in order with their deepen and filter, the outcome, the object against git cat-file, and the pack header's object count against the count hand-derived from upload-pack's rules; expected() is stated from the owner's rule set, not from objectAt" },
81 { name: 'cherry-pick-rename', status: 'main', kind: 'enumerated', runners: ['test/cherrypick-rename.test.js'], run: 'ci',
82 axes: [{ tag: 'rename', n: 6, doc: 'what the target did to the renamed file: same, other name, delete, keep, same + an exact copy, same + a deleted twin' }, { tag: 'content', n: 4, doc: 'same edit, none, a different line, the same line edited further' }, { tag: 'mode', n: 3, doc: 'none, both +x, the target only' }],
83 cells: 72, observed: 72, derived: 0, oracle: 'git cherry-pick in a clone: outcome class (clean / empty / conflict) and tree oid (#103 item 3); one named disagreement (same/same/ours)' },
84 { name: 'stamps', status: 'main', kind: 'enumerated', runners: ['test/stamps.test.js'], run: 'ci',
85 axes: [{ tag: 'pair', n: 3, doc: 'author/committer stamps: +0530/-0800, -1200/+1400, omitted/+0545' }, { tag: 'op', n: 7, doc: 'merge from a branch / a commit id, rebase onto a branch / a commit id, squash, cherry-pick, revert; plus the zero-oid and non-commit from/onto cases' }],
86 cells: 21, observed: 21, derived: 0, oracle: 'git cat-file -p byte-equality with GIT_AUTHOR_* / GIT_COMMITTER_* (#103 item 4)' },
87 { name: 'commit-changes', status: 'main', kind: 'enumerated', runners: ['test/changes.test.js'], run: 'ci',
88 axes: [{ tag: 'start', n: 2, doc: 'an empty repository, or two commits with a side ref at the tip' }, { tag: 'place', n: 7, doc: 'the branch, a new branch, another ref, a commit id, an ancestor, another ref while the target exists, the zero id' }, { tag: 'op', n: 15, doc: 'create, create of an existing path, write, edit, zero matches, two matches, delete, delete missing, rename, rename onto, rename to itself, a sequence, executable, symlink, write the bytes already there' }],
89 cells: 210, observed: 210, derived: 0, oracle: 'git cat-file commit byte-equality and fsck --strict over http-backend (#103 item 2). Named disagreement: create of a path that exists (git add overwrites; ply bad_request). A new ref whose tree matches the parent is bad_request and stays absent' },
90 { name: 'git-bytes', status: 'main', kind: 'enumerated', runners: ['test/git-bytes.test.js'], run: 'ci',
91 axes: [{ tag: 'content', n: 8 }, { tag: 'field', n: 6 }, { tag: 'op', n: 6 }],
92 osDependent: 'APFS cannot store a non-UTF-8 ref name as a loose ref file (EILSEQ): on macOS with the files backend those cells degrade to both-refuse; reftable fixtures since 716cd77',
93 cells: '288 (product)', oracle: 'ls-tree -z, cat-file, for-each-ref, merge-tree, check-attr over http-backend (#43)' },
94 { name: 'streamed-body', status: 'main', kind: 'enumerated', runners: ['test/adversarial.test.js', 'test/space/streamed-lies.test.js'], run: 'ci',
95 axes: [{ tag: 'path', n: 6 }, { tag: 'shape', n: 7 }, { tag: 'size', n: 5 }, { tag: 'rel', n: 3 }],
96 cells: '680 (630 matrix + 50 lie and cap cells)', observed: 680, derived: 0, oracle: 'the stated code per cell; never `timeout`; served ≤ cap + one frame (#36). Declared size against the inflated length (through and one past), a header that fails before the body, and the blob:none cap one under, at, and one past the base header, the delta header, and the resolved length: git index-pack and cat-file on the same bytes' },
97 { name: 'tree-dups', status: 'main', kind: 'enumerated', runners: ['test/git-differential.test.js'], run: 'ci',
98 axes: [{ tag: 'relation', n: 5 }, { tag: 'modeA', n: 5 }, { tag: 'modeB', n: 5 }, { tag: 'position', n: 2 }, { tag: 'order', n: 2 }],
99 cells: 500, observed: 500, derived: 0, oracle: 'git fsck --strict (duplicateEntries, treeNotSorted) cell by cell (#34)' },
100 { name: 'fsck-tree', status: 'main', kind: 'enumerated', runners: ['test/space/fsck-tree.test.js'], run: 'ci',
101 axes: [{ tag: 'trigger', n: 19, doc: 'the other entry: one per fsck_tree msgId trigger, or none' }, { tag: 'mode', n: 14, doc: 'standard, 100664, 100600, 40755, 160644, zero-padded, 16-bit-truncated, unknown types' }, { tag: 'name', n: 48, doc: '.git and dotfile spellings of utf8.c is_hfs_dot* and path.c is_ntfs_dot*, backslash tails, 4096/4097 bytes' }, { tag: 'position', n: 2 }, { tag: 'content', doc: '.gitattributes contents at attr.c/fsck_blob caps: line 2047/2048/2049 x blob/symlink (+100 MiB -1/0/+1 with FSCK_TREE_LARGE=1)' }],
102 cells: '24,864 (5,056 wrong on main, 4,094 on train/1)', observed: 24864, derived: 0, oracle: 'git fsck --strict (both streams, exit code, msgId) on every cell (packed + a loose hash-object --literally sample); git ls-tree modes; git read-tree with protectHFS+protectNTFS; git check-attr --source' },
103 { name: 'thin-base', status: 'main', kind: 'enumerated', runners: ['test/space/thin-base.test.js'], run: 'ci',
104 axes: [
105 { tag: 'base', n: 4, doc: 'blob, tree, commit, tag: the object git stored under the base oid' },
106 { tag: 'claim', n: 8, doc: 'commit, tree, blob, tag, ofs_delta, ref_delta, none (0), reserved (5)' },
107 { tag: 'bytes', n: 2, doc: 'the stored bytes, or those bytes with the last byte flipped' },
108 ],
109 cells: 64, observed: 64, derived: 0,
110 oracle: 'git index-pack --stdin --strict --fix-thin and git cat-file for an honest base; git hash-object -t <claim> (or its refusal) shows a dishonest buffer is not that oid (#143)' },
111 { name: 'pack-cut', status: 'main', kind: 'enumerated', runners: ['test/space/pack-cut.test.js'], run: 'ci',
112 axes: [{ tag: 'pack', n: 9, doc: 'git pack-objects output: non-delta (every type), OFS, REF, OFS chain, thin, and four single-object packs' }, { tag: 'cut', doc: 'every byte offset' }, { tag: 'path', n: 6, doc: 'parsePack+resolvePack, fetchPack, fetchWide, spStep (one chunk, bytewise), fetchObject, the exported readers' }, { tag: 'corrupt', n: 176, doc: 'header field × value class × trailer {restamped, stale}' }, { tag: 'cap', doc: 'maxObjectSize, maxInflatedTotal (parse, resolve), maxDeltaChain at and one under each pack' }],
113 cells: '29,293 ply cells (9,609 cuts × paths, 352 corruptions, caps)', observed: '9,609 cuts by git index-pack --strict nightly (PACK_SPACE=full); 1,373 per PR', derived: 0,
114 oracle: 'git index-pack --strict on the same bytes: every cut refused, a corruption refused exactly where git refuses it; ply typed pack_corrupt (limit_exceeded where a cap decides), never ok, never untyped (#5)' },
115 { name: 'describe-pack', status: 'main', kind: 'enumerated', runners: ['test/space/describe-pack.test.js'], run: 'ci',
116 axes: [
117 { tag: 'content', n: 5, doc: 'one blob, one commit, an annotated tag, a file edited six times, four files edited once' },
118 { tag: 'compression', n: 2, doc: 'pack.compression 0 and 9' },
119 { tag: 'ofs', n: 2, doc: 'with and without --delta-base-offset' },
120 { tag: 'depth', n: 3, doc: '--depth 0, 1, 50 (window equals depth)' },
121 { tag: 'thin', n: 2, doc: '--thin of HEAD ^HEAD~1 where the repo has a parent, otherwise the same rev' },
122 { tag: 'cap', doc: 'on one self-contained pack: maxPackObjects, maxObjectSize, maxInflatedTotal, maxDeltaChain, maxDeltaResult at the git-measured boundary and one past, plus NaN and a missing cap' },
123 ],
124 cells: '132 (120 packs + 12 limit probes)', observed: 132, derived: 0,
125 oracle: 'git verify-pack -v (oid, resolved type, header size, size-in-pack, offset, depth, base oid) and git index-pack --fix-thin (the appended bases are missingBases); a thin object with no resolved id has a null oid and type (#121)' },
126 { name: 'pkt-frame', status: 'main', kind: 'enumerated', runners: ['test/space/pkt-frame.test.js'], run: 'ci',
127 axes: [{ tag: 'length', n: 64, doc: 'prefix classes: 0000-0006, 000a, 0100, fff0-fff3 (legal), fff4, ffff, mixed case, a non-hex byte in each position' }, { tag: 'relation', n: 7, doc: 'exact, short, long, cut1-3, last' }, { tag: 'position', n: 8, doc: 'adv-v2, adv-v0, ls-refs, band 1/2/3, push report, push side-band' }, { tag: 'writer', n: 18, doc: 'field × payload 65515/65516/65517 (#14)' }],
128 cells: '444 framing + 3,562 position + 18 writer', observed: 444, derived: 'positions: from the reader model and the consumer rules of connect.c/sideband.c',
129 oracle: 'git upload-pack --stateless-rpc with GIT_TRACE_PACKET (packet_read_with_status) on every framing cell, a port of it as the model for the rest; format_packet for the writer (#6, #14)' },
130 { name: 'fsck-oracle', status: 'main', kind: 'curated', runners: ['test/fsck-oracle.test.js'], run: 'ci',
131 axes: [{ tag: 'case', doc: 'objects each fsck verdict must fail on' }],
132 cells: 'cases', oracle: 'the fsck oracle itself must be able to fail: every git-as-oracle check audited' },
134 // ---- curated, merged ----
135 curated('hostile-server', ['test/adversarial.test.js'], 'safety invariants I1, I2, I4, I6 checked against git after every fault'),
136 curated('lying-server', ['test/fetch-lying-server.test.js'], 'real git fetch against the same proxy that replaces one upload-pack answer (git must fail, so must ply), and fetch-pack.c process_ack / do_fetch_pack_v2 for the acknowledgment lines and sections git dies on'),
137 curated('commit-shapes', ['test/compliance.test.js', 'test/git-differential.test.js'], 'git cat-file / log on every commit shape git writes; fsck --strict on header variants'),
138 curated('edges', ['test/edges.test.js', 'test/oracle.test.js', 'test/concurrency.test.js'], 'git state after each edit (ref, blob, fsck), concurrency convergence'),
139 curated('host-reports', ['test/push-unpack-host.test.js'], 'receive-pack reports Cloudflare Artifacts writes (observed with cf-ray, #246, #266): each typed exactly, unpack refusals push_rejected, the 64 MiB body cap limit_exceeded with got/max in bytes, an empty 200 ambiguous and settled by read-back'),
140 curated('parity', ['test/parity.test.js'], 'git clone/fetch over file:// vs ply over HTTP against the same upload-pack'),
141 curated('push-tree', ['test/push-tree.test.js', 'test/encode-tree-fsck.test.js', 'test/encode-tree-error-bound.test.js'], 'git write-tree, ls-tree, rev-list, fsck --strict, clone', { osDependent: 'filesFromDir reads the local filesystem (exec bits, symlinks, case): what exists to push differs by OS' }),
142 curated('push-repo', ['test/push-repo.test.js', 'test/push-repo-fs.test.js'], 'a local repository built by git (loose and packed objects, packed and loose refs, an annotated tag, a gitlink) pushed to git http-backend (default and stock): git rev-list --objects is the object set git push would send, git index-pack --strict on the captured pack, git fsck --strict and for-each-ref on the remote, git clone --mirror; git pack-objects for the pack size; git itself for the refusals (shallow, alternates, sha256, a non-fast-forward)'),
143 curated('push-stream', ['test/packwrite.test.js', 'test/push-stream.test.js', 'test/push-pack.test.js'], 'the streamed push (#172): both deflate passes byte for byte against buildPack and each other; git http-backend takes the streamed pack (rev-parse, fsck --strict); an object changed between the passes is refused before the trailer and git moves no ref; the same under workerd (test/workerd.test.js). pushPack (#234): a stock git pack from a caller\'s stream lands and fsck --strict is clean; a wrong length, a failed source or the cap withholds the final bytes and git moves no ref; a caller\'s stream whose read() and cancel() never settle does not hold the outcome (the server\'s report, the caller\'s abort, the idle timeout on a fake clock)'),
144 curated('push-commands', ['test/push-commands.test.js', 'test/prefix-closure.test.js'], 'push commands parsed once (#156): every refusal cell (empty list after every other check, ref before oids, the single-ref form) equal on the converted src/ and on main b36f82a (PUSH_COMMANDS_SRC), with requests and spans counted; prefix closure of each field and of the list'),
145 curated('http-options', ['test/http-options.test.js', 'test/prefix-closure.test.js', 'test/url-scheme.test.js'], 'HttpOptions parsed once (#156): the refusal order (limits last), a bad requestTimeoutMs or maxPackBytes refused at construction with no request (createTransport, GitHttp.create, an operation), the settings each request reads; prefix closure of the URL; the scheme of the URL that would be requested (http: or https: only, checked after allowUrl), with a fetch double that counts requests and main ec337c5 for every verdict the scheme rule leaves alone'),
146 curated('sync-ref', ['test/sync-ref.test.js'], 'two git http-backend bare repositories (default and stock): after every syncRef git rev-parse on the destination equals the source tip and git fsck --strict is clean; the captured pack goes through git index-pack without --fix-thin (never thin) and its object set is git rev-list --objects <new> --not <old dst tip> on the source, disjoint from everything the old tip reaches; request logs per side (in_sync: no fetch, no receive-pack; a refused non-fast-forward: no receive-pack); git update-ref between ls-refs and receive-pack for the lost races (#122)'),
147 curated('pack-index', ['test/packindex.test.js'], 'git\'s own packs (OFS_DELTA from repack, REF_DELTA from pack-objects, the empty pack) and ply\'s (objectsForPack → planDeltas → buildPack): the idx byte for byte against git index-pack, the 64-bit offset table through git show-index, the object set against git rev-list --objects and paths against ls-tree, git index-pack itself for the thin and duplicate refusals, and a dumb-HTTP clone of the static files with git fsck --strict'),
148 curated('checkout-tree', ['test/checkout-tree.test.js'], 'git clone + diff -r', { osDependent: 'writes the tree to the local filesystem: case-insensitive (APFS default) and Unicode-normalizing filesystems collide names Linux keeps apart' }),
149 curated('packcache', ['test/packcache.test.js', 'test/uprequest.test.js'], 'the outcome with and without the cache; parseUploadPackRequest of fetchBody/lsRefsBody is the spec, and git\'s own v2 requests (GIT_TRACE_PACKET) parse; a pack exchange answers the same object set before and after an unrelated ref update (git upload-pack); verifyFetchAnswer refuses a flipped byte, a cut, a missing want and a lying shallow-info in git\'s answers (#120)'),
150 curated('pack-stream', ['test/packstream.test.js', 'test/stream-memory.test.js'], 'the buffered decoders ply had before #172, kept as oracles in test/oracle (inflate, parsePack: same bytes, consumed count, stats, objects, trailer, error code) for every chunking of node:zlib members and buildPack packs, and inflate()/parsePack (collectors over the pulls) against both; git hash-object on a scanned blob; every refusal by a crafted member or pack; fetchWide, fetchPack and a commit want over the scan; peak live arrayBuffers of each cell against streambound.ts under a 64 and a 128 MiB heap (#172)'),
151 curated('pack-subset', ['test/pack-subset.test.js', 'test/plan-build.test.js'], 'every batch planPackBatches plans over a git repack --depth=50 OFS pack (crossBatchRef off and on, several budgets) built with the resolved ids and accepted by git index-pack --strict --fix-thin on top of the earlier batches, a resolved index of another size or without ids refused; git index-pack --strict and git verify-pack -v (exactly the selected ids) on packs built from git-written OFS and REF packs: the whole pack in order byte-identical to the source, an order that differs (OFS distances growing and shrinking a varint byte), REF passthrough, an OFS base left out or written after (refused) and as a REF_DELTA fixed thin by git, extras, an exact length, one range read per run, a short, long and failing range, a cancelled stream, a cancel with a range read in flight that never answers (a stalled range, a read never opened, a range opened late) settling at once with the range cancelled and the signal fired, a pushPack aborted over a stalled range ending ambiguous with the ref unmoved, an abort settling packIdentity, resolvePackRange, scanPackIndex and loadTransferPack (at its trailer read, its scan and its resolve) as aborted while the storage never answers, a late range cancelled and a late rejection dropped, the reason a cancelled or refused range receives, the selection array changed after the call, extras a pack cannot hold (an extra that is not an object among them) refused with no read, a pushPack round trip to git http-backend with fsck --strict, and live memory against a 192 MiB source (#235)'),
152 curated('pack-range-resolve', ['test/pack-range-resolve.test.js', 'test/resolve-memory.test.js'], 'git verify-pack -v (oid, type, chain depth, base) on this repository packed REF-only and with OFS deltas; resolvePack on a thin pack with its bases; the same columns at every cache size down to none and with the scan\'s oids off; a REF chain 100 deep with every base later in the pack; refusals: a thin pack without bases, a lying thin base, a thin id asked before its in-pack delta resolved, a REF cycle, a chain past maxDeltaChain, work past the budget, a delta against the wrong base size, a spool changed between reads, a refusing source, a source of the wrong size, a bad cacheBytes; memory flat (one base, one result, the cache) as a pack of 4 MiB chains grows four times under a 64 MiB heap (#248)'),
153 curated('pack-plan', ['test/pack-plan.test.js', 'test/plan-build.test.js'], 'every planned batch of a git repack --depth=50 OFS pack built by packSubset and accepted by git index-pack --strict --fix-thin in a repository holding only the earlier batches, then fsck --strict and the source object set (a cut below a delta base included; a resolved index without ids fails the plan); git http-backend with receive.fsckObjects: every planned batch of a REF-only and an OFS pack pushed with pushPack (packed by git pack-objects over exactly the batch, a generated temp tree and commit chained per batch), the last push atomic; fsck --strict and the exact object set; children first read from the trees and commits themselves; every batch within every budget dimension; families whole or split under crossBatchRef with REF rewrites; header growth for OFS distances; the hash stable and moved by each budget field, the options and the source pack; refusals: per-object sizes, a family over bytes or objects, trees over one push, a base outside the selection, an unresolved entry, a bad selection or budget; 200,000 entries planned (#237)'),
154 curated('transfer', ['test/transfer.test.js', 'test/transfer-tempref.test.js', 'test/transfer-plancheck.test.js', 'test/transfer-partition.test.js', 'test/transfer-outcomes.test.js'], 'git http-backend with receive.fsckObjects and transfer.fsckObjects: one commit\'s tree from a REF-only and an OFS depth-1 pack copied as a new root commit in several pushes (temp commits chained on a temp ref, generated fan-out trees, the last push atomic and, separately, not), ref at the planned head, no temp ref left, fsck --strict, exactly the tree\'s objects and the new commit, ls-tree -r and author/committer/message equal to the source\'s; one push a run then resumed to the same head; a landed step sent again refused with the refs unchanged; a spool dying mid-push leaving the refs, the next run finishing, a step that never lands refused as ambiguous; refusals before any push (an object over the budget, a tree not in the pack, an unparsable commit), at a step (an edited plan, another pack, other ids, other commit bytes, a step not in the plan) and at status (a foreign temp ref, the ref at another commit); signatures dropped and other headers kept against git hash-object; temp tree ids against git hash-object; sweepTransfers; the plan\'s tagged steps (batch with its temp commit, final without; prev an Option) and refs git would push, malformed plans read back refused; ls-refs lagging a push settled by reading again (three reads), a longer lag pausing the run as settling, a resend refused after a lag shown landed by the settled refs and the run going on; done reporting a temp ref left; the run, status, step, settle and sweep spans with the plan hash, step index, batch bytes and outcome (#238)'),
155 curated('pack-saved', ['test/pack-saved.test.js'], 'a pack\'s index and resolved columns saved as bytes and read back (#260): REF-only and OFS packs, with and without resolved columns, oids on and off, every column, entry view, find() and stat equal and a transfer planned from the decoded index equal to one from a fresh scan; the size exactly 64 + 31/entry (+20 oids, +20 REF bases, +37 resolved, +72 stats) + 20; refused by tag: not a saved index, another version, every truncation length, every single-byte corruption, another pack (trailer or length), and each malformed field under a valid check (flags, reserved, count, resolved count, length, offset, size, header bytes, stored type, type, base index of a whole object, of a REF delta, of an OFS delta, the last entry short of the trailer, resolved type, base, depth, size and stats); encode refusals; loadTransferPack: none scanned, saved used reading only the spool\'s last 20 bytes, no resolved columns resolved again, each refused saved form rescanned with the refusal on the result and the span, a spool too small, failing, short or not a pack; a transfer resumed at every step boundary from the saved index alone reaching the fresh head against git http-backend with fsck on'),
156 curated('pack-scan-index',['test/scan-pack-index.test.js', 'test/stream-memory.test.js'], 'describePack field by field and git verify-pack -v (offset, size in pack, oid, resolved type) on git-written packs (every type, OFS, REF, an OFS chain, a thin pack, this repository with and without --delta-base-offset), for every chunking and both source kinds; REF bases earlier, later, absent and on a delta; an OFS base off an entry boundary, every truncation, a bad trailer, corrupt zlib, a selected object over maxObjectSize, each cancelling the source; bytes per entry at 200,000 entries and three 96 MiB blobs under a 64 and a 128 MiB heap (#236)'),
157 curated('pull-stream', ['test/pullstream.test.js', 'test/stream-memory.test.js'], 'scanPack, pktFrames and inflateChunks against the pull API they wrap (#241): the same pieces, frames and bytes over every chunking from a ReadableStream and an AsyncIterable, inflate equal to node zlib; every refusal the pull API\'s, typed (malformed pkt-lines; corrupt, truncated, trailing, oversized, mis-declared members), a non-Uint8Array chunk bad_request, bad options and an erroring source, each cancelling the source; break, throw and cancel; one source read per need; held bytes under a 64 and a 128 MiB heap (scan-iter, inflate-iter, pkt-iter, #249)'),
158 curated('unit', ['test/pure.test.js', 'test/result.test.js', 'test/format-facts.test.js', 'test/prefix-closure.test.js', 'test/delta-bound.test.js', 'test/bundle.test.js'], 'stated values (format facts from git source, delta bounds)'),
159 curated('lsrefs-unborn', ['test/lsrefs-unborn.test.js'], 'git ls-remote (GIT_TRACE_PACKET: when unborn is sent), upload-pack ls-refs.c (the answer, read with connect.c process_ref_v2), git clone of an empty repository (the HEAD it creates) (#103)'),
160 curated('encode-commit', ['test/encode-commit-roundtrip.test.js'], 'the hand-built commit bytes judged by another implementation: its hash-object -t commit --stdin (fsck) for every refused shape, its cat-file for what is stored (80 generated commits byte for byte, encode then parse and parse then encode), its show --format for a commit that reads back as another one'),
161 curated('encode-tag', ['test/encode-tag.test.js'], 'git hash-object -t tag --stdin (fsck_tag_standalone: same oid, same refusals) and git tag -a byte-for-byte where porcelain can write the cell (#103)'),
162 curated('redirects', ['test/redirect.test.js'], 'opt-in redirects (followRedirects: initial), per case against git http.followRedirects=initial: hop counts, the suffix rule, origin change drops the credential, Location userinfo refused (#150)'),
163 curated('parse-once', ['test/parse-once.test.js', 'test/want-oracle.test.js'], 'git upload-pack --stateless-rpc (protocol v2) on every class of want, have and shallow line: parse_want dies "expected to get oid", process_haves "expected SHA1 object", process_shallow "invalid shallow line" exactly where fetchRequest refuses, but for the two get_oid_hex reads past (an upper-case id, lowercased and answered with the same pack; text after the id, refused); a commit tree and parent id against git hash-object (fsck badTreeSha1, badParentSha1) and git commit-tree (the lowercase bytes it writes); the other edges against the refusal each made before the brand (#156)'),
164 curated('mutant-kill', ['test/mutant-kill.test.js', 'test/mutant-kill-tree.test.js', 'test/mutant-kill-packs.test.js'], 'stated values chosen to kill Stryker mutants'),
165 curated('merge', ['test/merge.test.js', 'test/merge-renames.test.js', 'test/merge-renames-removal.test.js', 'test/rebase.test.js', 'test/linemerge.test.js', 'test/pick-empty.test.js'], 'git merge-tree --write-tree, git rebase, git cherry-pick, git revert'),
166 curated('sign', ['test/sign.test.js'], 'git verify-commit / ssh-keygen -Y verify'),
167 { name: 'refname', status: 'main', kind: 'enumerated', runners: ['test/space/refname.test.js'], run: 'ci',
168 axes: [{ tag: 'components', n: 3, doc: 'refs/ + 1, 2 or 3 components' }, { tag: 'shape', n: 16, doc: 'a, @, @a, @{a, {a, ., .., .a, a., a.lock, a.lockb, -a, empty, a control char, a space, non-ASCII; plus a U+0001-U+00FF sweep inside a component' },
169 { tag: 'question', n: 3, doc: 'format (validateRef), create and delete (validatePushRef)' }],
170 cells: '4,622 (4,368 + 254 sweep; 8 wrong on main before #75)', observed: 4622, derived: 0,
171 oracle: 'git check-ref-format, and a real git receive-pack --stateless-rpc per cell (ng <name> funny refname or not) (#73, #75)' },
172 { name: 'version-refname', status: 'main', kind: 'enumerated', runners: ['test/space/version-refname.test.js'], run: 'ci',
173 axes: [
174 { tag: 'left', n: 6, doc: 'first digit run of the pair product: 0, 00, 1, 2, 10, 01' },
175 { tag: 'mid', n: 5, doc: 'second field: none, .1, .2, .10, .01' },
176 { tag: 'end', n: 4, doc: 'tail: none, -rc1, -alpha, -gamma' },
177 { tag: 'suffixes', n: 9, doc: 'versionsort.suffix lists from git t7004, including the empty release before, between, and after prereleases' },
178 { tag: 'corpus', n: 2, doc: 'the pair product plus a unicode slice (é, U+E000, U+10000), and the 11,880-name rank product (8 prefixes × 9 lefts × 11 mids × 15 ends)' },
179 { tag: 'refusal', doc: 'not_string and not_bytes on the left name, the right name, and a suffix: git versioncmp is only defined on bytes, and the byte string next to each refusal sorts as git tag -l does' },
180 ],
181 cells: '173,664 (66,744 two-name pairs + 106,920 names in a full listing)', observed: 173664, derived: 0,
182 oracle: 'git tag -l --sort=version:refname on every unordered pair (two names are versioncmp, including where versionsort.suffix makes it cyclic). Seven suffix lists: the 11,880-name listing equals a sort by compareVersionRefnames. The release between prereleases, and the release before -rc, make versioncmp cyclic, so git qsort of the whole list differs; each disagreed pair is checked again as two names and matches versioncmp (#124). A non-string or a non-byte string is a typed refusal; the byte strings beside those refusals match the same git listing' },
183 curated('customer-e2e', ['test/e2e-customer.test.js'], 'the README quick start executed as written against git http-backend (default fixture; stock: upload-pack defaults, no filter), then git rev-parse / cat-file / ls-tree / show / merge-tree / write-tree / rev-list / clone + diff -r / fsck --strict after every step; createBranch, deleteBranch, createTag refusals and races against the ref git holds'),
184 curated('read', ['test/read.test.js', 'test/log.test.js', 'test/artifacts-compat.test.js'], 'git cat-file / ls-tree; git rev-list --first-parent and git log for readLog (#56)'),
185 curated('path-trees', ['test/path-trees.test.js', 'test/path-trees-unit.test.js'], 'git show / ls-tree / cat-file on every read, list and walkCommit over servers that take, refuse (git configured as GitHub), cap or lie about combine:blob:none+tree:K; request filters counted at a proxy (#218, #222)'),
186 curated('no-filter', ['test/no-filter.test.js'], 'a stock git http-backend (uploadpack.allowFilter unset, no `filter` advertised) against its allowFilter twin: every read and write answers the same oids, trees and file bytes; fsck --strict after the writes; pack limits still limit_exceeded'),
187 { name: 'chunking', status: 'main', kind: 'random', runners: ['test/props.test.js'], run: 'ci',
188 axes: [{ tag: 'input', doc: 'random valid and corrupt inputs' }, { tag: 'split', doc: 'random chunk boundaries' }],
189 cells: 'seeded', oracle: 'the unsplit run (I10: every pure step is chunking-invariant)' },
191 // ---- random, merged ----
192 random('edit-fuzz', ['test/fuzz/run.mjs'], [{ tag: 'repo' }, { tag: 'edit' }], 'git: ref, blob splice, diff --name-only, fsck --strict (I3)', { osDependent: 'the harness writes generated paths to disk: on a case-insensitive filesystem `a` and `A` collide (EEXIST, observed on macOS 2026-10-31)' }),
193 random('hostile-fuzz', ['test/fuzz/hostile.mjs'], [{ tag: 'exchange' }, { tag: 'mutation', doc: '1-3 composed wire mutations' }], 'safety invariants against git (I1, I2)'),
194 random('below-hash', ['test/fuzz/below-hash.mjs'], [{ tag: 'object' }, { tag: 'mutation', doc: 'decompressed-object byte mutations, re-hashed' }], 'git fsck --strict on the same bytes', { run: 'ci-step' }),
195 random('git-semantic', ['test/fuzz/git-semantic.mjs'], [{ tag: 'object' }, { tag: 'header-mutation' }], 'git cat-file fields; fsck --strict', { run: 'ci-step' }),
196 random('liar', ['test/fuzz/liar.mjs'], [{ tag: 'exchange' }, { tag: 'lie', doc: 'well-formed wrong answers' }], 'oid verification, size contracts, CAS: no bad push'),
197 random('fetch-protocol-random', ['test/fuzz/protocol.mjs'], [{ tag: 'dag' }, { tag: 'want' }, { tag: 'have' }, { tag: 'deepen' }, { tag: 'filter' }, { tag: 'server' }], 'as fetch-protocol, on generated DAGs'),
198 random('pack-read', ['test/fuzz/packs.mjs'], [{ tag: 'dag' }, { tag: 'pack-objects-options' }], 'git cat-file truth; verify-pack -v offsets and chain depths'),
199 random('pack-write', ['test/fuzz/packgen.mjs'], [{ tag: 'repo' }, { tag: 'path' }, { tag: 'edit' }], 'index-pack --fix-thin --strict; objects == git\'s (I12)'),
200 random('codec', ['test/fuzz/codec.mjs'], [{ tag: 'codec', doc: 'inflate, sha1, delta, pkt-line' }, { tag: 'input' }], 'node:zlib, node:crypto, git patch_delta (I13)'),
201 random('usergiven', ['test/fuzz/usergiven.mjs'], [{ tag: 'shape', n: 4 }, { tag: 'repo' }], 'git rev-list --objects --filter'),
202 random('attributes', ['test/fuzz/attributes.mjs'], [{ tag: 'tree' }, { tag: 'gitattributes' }], 'git check-attr --source -a -z'),
203 random('linemerge', ['test/fuzz/linemerge.mjs', 'test/fuzz/diffscript.mjs'], [{ tag: 'base' }, { tag: 'ours' }, { tag: 'theirs' }, { tag: 'driver' }], 'git merge-tree --write-tree; git diff --histogram'),
204];
206// Fail sites a seeded-per-day sample reaches on some days and not others; reported, never ratcheted (a ratchet on them
207// would flap). Each names the runner whose sample decides it and the runs that measured it.
208export const SAMPLED = [
209];
211// ---- ply's decision points (scripts/decision-points.mjs) ----
212// Function globs (`<file>#<fn>:*`) are used where every point of a function has the same space: a new fail() in that
213// function is then claimed for the same space, and gate c's claims check fails unless that space's cells reach it.
214// The generated block was proposed from a recorded run (the space whose runners reached each site: enumerated first,
215// then random, then curated) and reviewed; the manual block above it decides what a run cannot.
216const INTERNAL = 'an internal invariant (code internal): true by construction, no input reaches it; a mutation test holds the check in place';
217export const DECISIONS = [
218 // manual
219 { match: 'src/memtree.ts#*:*', space: 'commit-changes', axisTag: 'op' },
220 { match: 'src/changes.ts#*:*', space: 'commit-changes', axisTag: 'op' },
221 { match: 'src/refops.ts#*:*', space: 'customer-e2e', axisTag: 'case' },
222 { match: 'src/repo-node.ts#*:*', space: 'push-repo', axisTag: 'case' },
223 { match: 'src/sync.ts#*:*', space: 'sync-ref', axisTag: 'case' },
224 { match: 'src/packwalk.ts#*:*', space: 'pack-index', axisTag: 'case' },
225 { match: 'src/packindex.ts#*:*', space: 'pack-index', axisTag: 'case' },
226 { match: 'src/repo-node.ts#get:decode:*', excluded: 'protocol: a loose object header is "<type> <size>" in ASCII, which the regex after the decode checks; a non-ASCII byte fails that check as it fails git (and the object hash is checked too)' },
227 { match: 'src/push.ts#checkBases:*', space: 'push-commands', axisTag: 'case' },
228 { match: 'src/operation.ts#operation:*', space: 'customer-e2e', axisTag: 'case' },
229 { match: 'src/edit.ts#refuseRebase:*', space: 'commit-changes', axisTag: 'op' },
230 // refuseRebase is a wrapper, so the call inside resolve is its own site. The generated resolve:* glob would hand it to
231 // hostile-server, whose runner never takes a 40-hex base off the tip. That cell is commit-changes.
232 { match: 'src/edit.ts#resolve:bad_request:<s.ref>, <b.oid>, <tip.value>', space: 'commit-changes', axisTag: 'op' },
233 { match: 'src/edit.ts#streamBlobEdit:internal:*', excluded: INTERNAL },
234 { match: 'src/rebase.ts#linearChain:internal:*', excluded: INTERNAL },
235 { match: 'src/probe-evaluate.ts#classify:export', excluded: 'probe harness, not a wire decision: names the finding class (client bug, server bug, unresolved) of a difference between probe runs; every branch is asserted by test/probes/probes.test.js on synthetic observations' },
236 { match: 'src/result.ts#assertNever:untyped:unreachable: *', excluded: 'exhaustiveness: the type checker proves the call unreachable (a value of type never); reaching it is a bug, never an outcome' },
237 { match: 'src/linemerge.ts#broken:internal:*', excluded: 'an internal invariant of the diff compaction (code internal since #96: a bug, not an outcome); the linemerge and diffscript fuzzers against git hold it' },
238 { match: 'src/http.ts#httpCode:*', space: 'hostile-server', axisTag: 'case' },
239 { match: 'src/push.ts#rejectionCode:*', space: 'push-ng', axisTag: 'reason' },
240 { match: 'src/push.ts#knownNgClass:*', space: 'push-ng', axisTag: 'reason' },
241 { match: 'src/closed.ts#decideObjectFormat:export', space: 'advertisement', axisTag: 'objectFormat' },
242 { match: 'src/receivecaps.ts#parseReceiveAdvert:protocol:*', space: 'pkt-frame', axisTag: 'position' },
243 { match: 'src/receivecaps.ts#parseReceiveAdvert:unsupported:*', space: 'pkt-frame', axisTag: 'position' },
244 { match: 'src/receivecaps.ts#parseReceiveAdvert:export', space: 'pkt-frame', axisTag: 'position' },
245 { match: 'src/receivecaps.ts#serviceHeaderEnd:protocol:*', space: 'pkt-frame', axisTag: 'position' },
246 { match: 'src/receivecaps.ts#serviceHeaderEnd:decode:*', excluded: 'protocol: the "# service=" keyword git defines' },
247 // the pkt-line framing refusal surfaces at receiveCaps's own finish now (its parser returns Result)
248 { match: 'src/receivecaps.ts#receiveCaps:protocol:<state>', space: 'pkt-frame', axisTag: 'position' },
249 { match: 'src/receivecaps.ts#receiveCaps:*', space: 'push-parity', axisTag: 'caps' },
250 // the advertisement space (#65): discover, ls-refs parsing, the push capability check, the reader's line limit
251 { match: 'src/caps.ts#parseCapabilitiesV2:unsupported:*', space: 'advertisement', axisTag: 'protocol' },
252 { match: 'src/caps.ts#parseCapabilitiesV2:remote_error:*', space: 'advertisement', axisTag: 'protocol' },
253 { match: "src/caps.ts#parseCapabilitiesV2:protocol:advertisement: no flush after the service line", space: 'pkt-frame', axisTag: 'position' },
254 { match: 'src/caps.ts#parseCapabilitiesV2:*', space: 'advertisement', axisTag: 'malformed' },
255 { match: 'src/caps.ts#parseCapabilitiesV2:export', space: 'advertisement', axisTag: 'malformed' },
256 { match: 'src/discover.ts#serverFits:unsupported:server does not advertise …', space: 'advertisement', axisTag: 'lsRefs' },
257 { match: 'src/discover.ts#serverFits:unsupported:unsupported object-format …', space: 'advertisement', axisTag: 'objectFormat' },
258 { match: 'src/discover.ts#discover:protocol:<state>', space: 'pkt-frame', axisTag: 'position' },
259 // the advertisement probe after a filtered fetch died with an empty response (fetch.ts filterUnadvertised)
260 { match: 'src/fetch.ts#filterUnadvertised:*', space: 'no-filter', axisTag: 'case' },
261 { match: 'src/discover.ts#discover:*', space: 'advertisement', axisTag: 'malformed' },
262 { match: 'src/http.ts#advertisementBody:not_git:unexpected content-type from … advertisement', space: 'advertisement', axisTag: 'protocol' },
263 { match: 'src/attributes.ts#parseLine:export', space: 'attributes', axisTag: 'gitattributes' },
264 { match: 'src/attributes.ts#parseFile:export', space: 'attributes', axisTag: 'gitattributes' },
265 { match: 'src/edit.ts#decideHead:export', space: 'packcache', axisTag: 'case' },
266 { match: 'src/objects.ts#parseCommit:export', space: 'commit-shapes', axisTag: 'case' },
267 { match: 'src/objects.ts#parseTag:export', space: 'commit-shapes', axisTag: 'case' },
268 { match: 'src/objects.ts#parseIdent:export', space: 'fsck-commit', axisTag: 'ident' },
269 // decode sites (scripts/decision-points.mjs `decode`). A strict or replacement decode of bytes git passes through raw
270 // (ref names, tree entry names, messages, idents, URL paths, userinfo) is a hole until it is lossless and a space with
271 // a non-UTF-8 content axis (git-bytes, #55) reaches it; those are deliberately not registered. Only display text and
272 // protocol keywords are excluded here, each with why the bytes cannot differ from git's.
273 { match: 'src/caps.ts#text:decode:*', excluded: 'display/protocol: v2 capability lines are ASCII keywords git defines (agent= is recorded, never decided on)' },
274 { match: 'src/fetch.ts#sidebandStep:decode:replacement:band.body*', excluded: 'display-only: band 2 progress and the band 3 message, quoted into a span or an error' },
275 { match: 'src/fetch.ts#memberFinish:internal:*', excluded: INTERNAL },
276 // The decoder and the scan behind parsePack (#172): the refusals the pack-cut space drove through parsePack before it
277 // became a collector over the scan keep that space; the rest are the pull codecs' own cases.
278 { match: "src/inflatestream.ts#truncated:pack_corrupt:inflate: unexpected end of input", space: 'pack-cut', axisTag: 'cut' },
279 { match: "src/inflatestream.ts#truncated:pack_corrupt:inflate: truncated adler32", space: 'pack-cut', axisTag: 'cut' },
280 { match: "src/inflatestream.ts#undecoded:pack_corrupt:inflate: invalid huffman code", space: 'pack-cut', axisTag: 'corrupt' },
281 { match: "src/inflatestream.ts#stepHeader:pack_corrupt:zlib: unsupported method …", space: 'pack-cut', axisTag: 'corrupt' },
282 { match: "src/inflatestream.ts#stepHeader:pack_corrupt:zlib: bad header check", space: 'pack-cut', axisTag: 'corrupt' },
283 { match: "src/inflatestream.ts#room:pack_corrupt:inflate: output exceeds expected …", space: 'pack-cut', axisTag: 'corrupt' },
284 { match: "src/inflatestream.ts#stepAdler:pack_corrupt:inflate: adler32 mismatch", space: 'pack-cut', axisTag: 'corrupt' },
285 { match: "src/inflatestream.ts#finish:pack_corrupt:inflate: size … != expected …", space: 'pack-cut', axisTag: 'corrupt' },
286 { match: "src/packstream.ts#varintLong:pack_corrupt:…: size varint longer than … bits", space: 'pack-cut', axisTag: 'corrupt' },
287 { match: "src/packstream.ts#readVarint:pack_corrupt:<what>", space: 'pack-cut', axisTag: 'corrupt' },
288 { match: "src/packstream.ts#readObjHeader:pack_corrupt:pack: bad object type … at …", space: 'pack-cut', axisTag: 'corrupt' },
289 { match: "src/packstream.ts#readObjHeader:limit_exceeded:pack object size", space: 'pack-cut', axisTag: 'cap' },
290 { match: "src/packstream.ts#stepHeader:pack_corrupt:pack: bad signature", space: 'pack-cut', axisTag: 'cut' },
291 { match: "src/packstream.ts#stepHeader:pack_corrupt:pack: unsupported version …", space: 'pack-cut', axisTag: 'corrupt' },
292 { match: "src/packstream.ts#stepHeader:limit_exceeded:pack objects", space: 'pack-cut', axisTag: 'cap' },
293 { match: "src/packstream.ts#stepOfs:pack_corrupt:pack: ofs delta at … is its own base", space: 'pack-cut', axisTag: 'corrupt' },
294 { match: "src/packstream.ts#stepOfs:pack_corrupt:pack: ofs delta base before pack start at …", space: 'pack-cut', axisTag: 'corrupt' },
295 { match: "src/packstream.ts#stepGate:limit_exceeded:pack inflated bytes", space: 'pack-cut', axisTag: 'cap' },
296 { match: "src/packstream.ts#stepTrailer:pack_corrupt:pack: expected trailer at …, pack length …", space: 'pack-cut', axisTag: 'cut' },
297 { match: "src/packstream.ts#stepTrailer:pack_corrupt:pack: trailer sha mismatch … != …", space: 'pack-cut', axisTag: 'corrupt' },
298 { match: 'src/inflatestream.ts#*', space: 'pack-stream', axisTag: 'case' },
299 { match: "src/inflate.ts#inflate:bad_request:inflate: pos (…) is not a position in a buffer of … byte…", space: 'pack-stream', axisTag: 'case' },
300 { match: 'src/packstream.ts#*', space: 'pack-stream', axisTag: 'case' },
301 { match: 'src/packscanindex.ts#*', space: 'pack-scan-index', axisTag: 'case' },
302 { match: 'src/pullstream.ts#*', space: 'pull-stream', axisTag: 'case' },
303 { match: 'src/packsubset.ts#*', space: 'pack-subset', axisTag: 'case' },
304 { match: 'src/rangesource.ts#*', space: 'pack-subset', axisTag: 'case' },
305 { match: "src/transferload.ts#scanned:aborted:transfer load", space: 'pack-subset', axisTag: 'case' },
306 { match: 'src/packrangeresolve.ts#*', space: 'pack-range-resolve', axisTag: 'case' },
307 { match: 'src/packplan.ts#*', space: 'pack-plan', axisTag: 'case' },
308 { match: 'src/transferplan.ts#*', space: 'transfer', axisTag: 'case' },
309 { match: 'src/transfernames.ts#*', space: 'transfer', axisTag: 'case' },
310 { match: 'src/transfer.ts#*', space: 'transfer', axisTag: 'case' },
311 { match: 'src/packsaved.ts#*', space: 'pack-saved', axisTag: 'case' },
312 { match: 'src/fetch.ts#v2Step:decode:replacement:frame.payload', excluded: 'protocol: v2 section lines are git keywords and hex oids; a non-ASCII byte fails the same parse it fails in git' },
313 { match: 'src/http.ts#statusError:decode:*', excluded: 'display-only: the body preview quoted in an HTTP error' },
314 { match: 'src/http.ts#statusError:*', space: 'hostile-server', axisTag: 'case' },
315 { match: 'src/http.ts#redirectPolicy:*', space: 'redirects', axisTag: 'case' },
316 { match: 'src/http.ts#useAllowed:*', space: 'redirects', axisTag: 'case' },
317 { match: 'src/path.ts#parsePath:*', space: 'unit', axisTag: 'case' },
318 { match: 'src/refname.ts#constantRefname:*', excluded: INTERNAL },
319 { match: 'src/refname.ts#parse*:*', space: 'unit', axisTag: 'case' },
320 { match: 'src/packresolve.ts#externalBase:*', space: 'thin-base', axisTag: 'claim' },
321 { match: 'src/sha1.ts#toHex:decode:replacement:out', excluded: 'the bytes are hex digits toHex wrote itself (ASCII): nothing to replace' },
322 // #120: the upload-pack request parser (every refusal, the lossless line decode) and the verify-before-store checks
323 { match: 'src/uprequest.ts#*', space: 'packcache', axisTag: 'case' },
324 { match: 'src/uprequest.ts#lineOf:decode:*', space: 'packcache', axisTag: 'case' },
325 { match: 'src/packcache.ts#verifyFetchAnswer:*', space: 'packcache', axisTag: 'case' },
326 { match: 'src/packcache.ts#readCapped:*', space: 'packcache', axisTag: 'case' },
327 { match: 'src/packcache.ts#pack:*', space: 'packcache', axisTag: 'case' },
328 { match: 'src/packcache.ts#step:*', space: 'packcache', axisTag: 'case' },
329 { match: 'src/packcache.ts#end:*', space: 'packcache', axisTag: 'case' },
330 { match: 'src/packcache.ts#pull:*', space: 'packcache', axisTag: 'case' },
331 { match: 'src/packcache.ts#cancel:*', space: 'packcache', axisTag: 'case' },
332 { match: 'src/packcache.ts#stop:*', space: 'packcache', axisTag: 'case' },
333 { match: 'src/packcache.ts#heldFor:*', space: 'packcache', axisTag: 'case' },
334 { match: 'src/push.ts#decide:decode:*', excluded: 'display-only: band 2 progress and the band 3 message' },
335 { match: 'src/push.ts#outcomeAttrs:decode:*', excluded: 'display-only: the report lines recorded on the span' },
336 { match: 'src/receivecaps.ts#parseReceiveAdvert:decode:*', excluded: 'protocol: only the capability list after the NUL is read (ASCII keywords); the ref name before it is ignored' },
337 { match: 'src/validate.ts#validatePushRef:*', space: 'refname', axisTag: 'shape' },
338 // release #71: fail sites added by train/1, #57 and #62, each given to the space whose runners reach it (recorded run, macOS)
339 // sem/packs (A1, #99): the packs cluster's Result functions (renamed from `xResult` at the 0.2.0 cut-over); spaces as before
340 { match: "src/packresolve.ts#corrupt:*", space: 'chunking', axisTag: 'input' },
341 { match: "src/pktline.ts#proto:*", space: 'chunking', axisTag: 'input' },
342 { match: "src/bytes.ts#encodeBytes:bad_request:… must be a string", space: 'mutant-kill', axisTag: 'case' },
343 { match: "src/bytes.ts#encodeBytes:bad_request:…: lone surrogate U+… is no byte sequence", space: 'mutant-kill', axisTag: 'case' },
344 { match: "src/bytes.ts#encodeBytes:bad_request:…: escaped bytes spell well-formed UTF-8; pass the chara…", space: 'mutant-kill', axisTag: 'case' },
345 { match: "src/packresolve.ts#parseDelta:pack_corrupt:delta: shorter than DELTA_SIZE_MIN", space: 'pack-cut', axisTag: 'corrupt' },
346 { match: "src/packresolve.ts#parseDelta:limit_exceeded:delta result size", space: 'pack-cut', axisTag: 'corrupt' },
347 { match: "src/packresolve.ts#parseDelta:pack_corrupt:delta: base size … != …", space: 'pack-cut', axisTag: 'corrupt' },
348 { match: "src/packresolve.ts#parseDelta:pack_corrupt:delta: copy out of range", space: 'pack-cut', axisTag: 'corrupt' },
349 { match: "src/packresolve.ts#parseDelta:pack_corrupt:delta: insert out of range", space: 'pack-cut', axisTag: 'corrupt' },
350 { match: "src/packresolve.ts#parseDelta:pack_corrupt:delta: reserved opcode 0", space: 'pack-cut', axisTag: 'corrupt' },
351 { match: "src/packresolve.ts#parseDelta:pack_corrupt:delta: produced … != …", space: 'pack-cut', axisTag: 'corrupt' },
352 { match: "src/packresolve.ts#applyProgram:pack_corrupt:delta: base size … != …", space: 'pack-stream', axisTag: 'case' },
353 { match: "src/packresolve.ts#badObject:*", space: 'mutant-kill', axisTag: 'case' },
354 { match: "src/packresolve.ts#parseBase:*", space: 'mutant-kill', axisTag: 'case' },
355 { match: "src/packresolve.ts#packEntry:*", space: 'mutant-kill', axisTag: 'case' },
356 { match: "src/packresolve.ts#parseDelta:export", space: 'unit', axisTag: 'case' },
357 { match: "src/packresolve.ts#fixpoint:limit_exceeded:delta chain depth", space: 'unit', axisTag: 'case' },
358 { match: "src/packresolve.ts#findBase:pack_corrupt:pack: ofs delta base not at object boundary …", space: 'pack-cut', axisTag: 'corrupt' },
359 { match: "src/packresolve.ts#patch:limit_exceeded:delta chain depth", space: 'pack-cut', axisTag: 'cap' },
360 { match: "src/packresolve.ts#patch:limit_exceeded:pack inflated bytes", space: 'pack-cut', axisTag: 'cap' },
361 { match: "src/packresolve.ts#fixpoint:pack_corrupt:pack: ref delta base … not found", space: 'pack-cut', axisTag: 'corrupt' },
362 { match: "src/pktline.ts#pktStep:protocol:bad pkt-line length at byte …", space: 'pkt-frame', axisTag: 'length' },
363 { match: "src/pktline.ts#pktStep:protocol:bad pkt-line length …", space: 'pkt-frame', axisTag: 'length' },
364 { match: "src/bytes.ts#decodeBytes:decode:strict:b", space: 'git-bytes', axisTag: 'content' },
365 { match: "src/bytes.ts#decodeBytes:decode:strict:b.subarray(run, i)", space: 'git-bytes', axisTag: 'content' },
366 { match: "src/bytes.ts#decodeBytes:decode:strict:b.subarray(run)", space: 'git-bytes', axisTag: 'content' },
367 { match: "src/bytes.ts#encodeBytes:decode:lossless:bytes", space: 'git-bytes', axisTag: 'content' },
368 { match: "src/bytes.ts#decodeChunk:decode:replacement:buf.subarray(0, cut)", excluded: 'display-only: sideband band 2 progress, quoted into a span or an error; a character cut by a frame waits for its tail' },
369 { match: "src/bytes.ts#decodeBytes:export", space: 'unit', axisTag: 'case' },
370 { match: "src/bytes.ts#decodeChunk:export", space: 'unit', axisTag: 'case' },
371 { match: "src/packresolve.ts#parsePack:export", space: 'unit', axisTag: 'case' },
372 { match: "src/bytes.ts#shortRead:<code>:<shortReadMessage(off, n, have)>", space: 'chunking', axisTag: 'input' },
373 { match: "src/pktline.ts#pkt:bad_request:pkt-line payload too large: … bytes, the most git frames…", space: 'pkt-frame', axisTag: 'writer' },
374 { match: "src/pktline.ts#pktStep:protocol:invalid pkt-line length …", space: 'pkt-frame', axisTag: 'length' },
375 { match: "src/pktline.ts#pktFinish:protocol:trailing … bytes after last pkt-line", space: 'pkt-frame', axisTag: 'relation' },
376 { match: "src/checkout-node.ts#refused:unsupported:checkout: the filesystem refuses the name bytes of …", excluded: 'macOS only: APFS answers EILSEQ to a non-UTF-8 name, which Linux filesystems store; git-bytes reaches it on darwin (an allowed refusal there)' },
377 { match: "src/checkout-node.ts#writeFiles:unsupported:<f.path>, <e>", excluded: 'macOS only: APFS answers EILSEQ to a non-UTF-8 name, which Linux filesystems store; git-bytes reaches it on darwin (an allowed refusal there)' },
378 { match: "src/checkout-node.ts#writeFiles:unsupported:<f.path>, <e>#2", excluded: 'macOS only: APFS answers EILSEQ to a non-UTF-8 name, which Linux filesystems store; git-bytes reaches it on darwin (an allowed refusal there)' },
379 { match: "src/fetch.ts#spStep:pack_corrupt:pack: zlib stream longer than its declared size allows (…", space: 'streamed-body', axisTag: 'shape' },
380 { match: "src/fetch.ts#sidebandStep:limit_exceeded:pack bytes", space: 'streamed-body', axisTag: 'shape' },
381 { match: "src/fetch.ts#sidebandStep:limit_exceeded:progress bytes", space: 'streamed-body', axisTag: 'shape' },
382 { match: "src/log.ts#fetchWindow:not_found:… is not a commit (…)", space: 'read', axisTag: 'case' },
383 { match: "src/log.ts#fetchWindow:not_found:commit … not found on the remote", space: 'read', axisTag: 'case' },
384 { match: "src/log.ts#logWindow:pack_corrupt:commit … not in the pack that wanted it", space: 'read', axisTag: 'case' },
385 { match: "src/log.ts#logWindow:pack_corrupt:commit … sent but not an ancestor of …", space: 'read', axisTag: 'case' },
386 { match: "src/log.ts#logWindow:pack_corrupt:parent … of … withheld and … not reported shallow", space: 'read', axisTag: 'case' },
387 { match: "src/log.ts#logOn:bad_request:logOn: commit must be a string", space: 'read', axisTag: 'case' },
388 { match: "src/log.ts#logOn:bad_request:logOn: limit must be an integer from 1 to … (limits.maxM…", space: 'read', axisTag: 'case' },
389 { match: "src/log.ts#logOn:bad_request:logOn: the second argument must be an object ({ commit, …", space: 'read', axisTag: 'case' },
390 { match: "src/log.ts#logArgs:bad_request:readLog: limit must be an integer from 1 to … (limits.ma…", space: 'read', axisTag: 'case' },
391 { match: "src/log.ts#logArgs:bad_request:readLog: the third argument must be an object (options)", space: 'read', axisTag: 'case' },
392 { match: "src/log.ts#logArgs:bad_request:readLog: path filtering is not supported", space: 'read', axisTag: 'case' },
393 { match: "src/log.ts#logArgs:bad_request:readLog: the second argument must be an object ({ ref, l…", space: 'read', axisTag: 'case' },
394 { match: "src/merge.ts#mergeBranch:unsupported:… is an annotated tag (git merge writes a mergetag heade…", space: 'git-bytes', axisTag: 'op' },
395 { match: "src/objects.ts#corrupt:pack_corrupt:…: …: …", space: 'fsck-commit', axisTag: 'commitHeader' },
396 { match: "src/objects.ts#badTree:pack_corrupt:tree: …", space: 'fsck-tree', axisTag: 'trigger' },
397 { match: "src/objects.ts#duplicate:pack_corrupt:commit: bad header order | …: duplicate …", space: 'fsck-commit', axisTag: 'commitHeader' },
398 { match: "src/objects.ts#fsckIdent:pack_corrupt:badDate", space: 'fsck-commit', axisTag: 'ident' },
399 { match: "src/objects.ts#fsckIdent:pack_corrupt:badDate#2", space: 'fsck-commit', axisTag: 'ident' },
400 { match: "src/objects.ts#fsckIdent:pack_corrupt:badDateOverflow", space: 'fsck-commit', axisTag: 'ident' },
401 { match: "src/objects.ts#fsckIdent:pack_corrupt:badEmail", space: 'fsck-commit', axisTag: 'ident' },
402 { match: "src/objects.ts#fsckIdent:pack_corrupt:badName", space: 'fsck-commit', axisTag: 'ident' },
403 { match: "src/objects.ts#fsckIdent:pack_corrupt:badTimezone", space: 'fsck-commit', axisTag: 'ident' },
404 { match: "src/objects.ts#fsckIdent:pack_corrupt:badTimezone#2", space: 'fsck-commit', axisTag: 'ident' },
405 { match: "src/objects.ts#fsckIdent:pack_corrupt:badTimezone#3", space: 'fsck-commit', axisTag: 'ident' },
406 { match: "src/objects.ts#fsckIdent:pack_corrupt:missingEmail", space: 'fsck-commit', axisTag: 'ident' },
407 { match: "src/objects.ts#fsckIdent:pack_corrupt:missingNameBeforeEmail", space: 'fsck-commit', axisTag: 'ident' },
408 { match: "src/objects.ts#fsckIdent:pack_corrupt:missingSpaceBeforeDate", space: 'fsck-commit', axisTag: 'ident' },
409 { match: "src/objects.ts#fsckIdent:pack_corrupt:missingSpaceBeforeEmail", space: 'fsck-commit', axisTag: 'ident' },
410 { match: "src/objects.ts#fsckIdent:pack_corrupt:zeroPaddedDate", space: 'fsck-commit', axisTag: 'ident' },
411 { match: "src/objects.ts#oidLine:pack_corrupt:invalid '…' line format - bad sha1", space: 'fsck-commit', axisTag: 'commitHeader' },
412 { match: "src/objects.ts#parseCommit:limit_exceeded:commit parents", space: 'mutant-kill', axisTag: 'case' },
413 { match: "src/objects.ts#parseCommit:pack_corrupt:commit", space: 'fsck-commit', axisTag: 'commitHeader' },
414 { match: "src/objects.ts#parseCommit:pack_corrupt:commit#2", space: 'fsck-commit', axisTag: 'commitHeader' },
415 { match: "src/objects.ts#parseCommit:pack_corrupt:commit#3", space: 'fsck-commit', axisTag: 'commitHeader' },
416 { match: "src/objects.ts#parseCommit:pack_corrupt:commit#4", space: 'fsck-commit', axisTag: 'commitHeader' },
417 { match: "src/objects.ts#parseCommit:pack_corrupt:commit#5", space: 'fsck-commit', axisTag: 'commitHeader' },
418 { match: "src/objects.ts#parseCommit:pack_corrupt:commit#6", space: 'fsck-commit', axisTag: 'commitHeader' },
419 { match: "src/objects.ts#parseCommit:pack_corrupt:commit#7", space: 'fsck-commit', axisTag: 'commitHeader' },
420 { match: "src/objects.ts#parseTag:pack_corrupt:tag", space: 'fsck-commit', axisTag: 'tagHeader' },
421 { match: "src/objects.ts#parseTag:pack_corrupt:tag#2", space: 'fsck-commit', axisTag: 'tagHeader' },
422 { match: "src/objects.ts#parseTag:pack_corrupt:tag#3", space: 'fsck-commit', axisTag: 'tagHeader' },
423 { match: "src/objects.ts#parseTag:pack_corrupt:tag#4", space: 'fsck-commit', axisTag: 'tagHeader' },
424 { match: "src/objects.ts#parseTag:pack_corrupt:tag#5", space: 'fsck-commit', axisTag: 'tagHeader' },
425 { match: "src/objects.ts#refuseShadowed:pack_corrupt:<kind>, <key>", space: 'fsck-commit', axisTag: 'commitHeader' },
426 { match: "src/objects.ts#verifyHeaders:pack_corrupt:nulInHeader", space: 'fsck-commit', axisTag: 'body' },
427 { match: "src/objects.ts#verifyHeaders:pack_corrupt:unterminatedHeader", space: 'fsck-commit', axisTag: 'commitHeader' },
428 { match: "src/push.ts#outcomeResult:<o.code>:<message>", space: 'push-outcome', axisTag: 'status' },
429 { match: "src/push.ts#outcomeResult:cas_conflict:<message>", space: 'push-outcome', axisTag: 'status' },
430 { match: "src/push.ts#outcomeResult:limit_exceeded:push is too large: …", space: 'host-reports', axisTag: 'case' },
431 { match: "src/push.ts#outcomeResult:ambiguous:push outcome unknown: ……", space: 'push-outcome', axisTag: 'delivery' },
432 { match: "src/push.ts#readResponse:limit_exceeded:report bytes", space: 'mutant-kill', axisTag: 'case' },
433 { match: "src/push.ts#readResponse:limit_exceeded:report lines", space: 'mutant-kill', axisTag: 'case' },
434 { match: "src/push.ts#outcomeResult:push_partial:push partially applied: … updated; … refused", space: 'push-outcome', axisTag: 'spread' },
435 { match: "src/read.ts#readFailure:<rethrown or pack_corrupt>:<e>", space: 'streamed-body', axisTag: 'shape' },
436 { match: "src/checkout.ts#walk:pack_corrupt:tree …: duplicate entry … (git fsck duplicateEntries)", space: 'mutant-kill', axisTag: 'case' },
437 { match: "src/objects.ts#bad:pack_corrupt:invalid … line - …", space: 'fsck-commit', axisTag: 'ident' },
438 { match: "src/read.ts#transform:pack_corrupt:server streamed more than the … bytes it declared", space: 'streamed-body', axisTag: 'shape' },
439 { match: "src/checkout-node.ts#ensureDir:unsupported:<rel>, <e>", excluded: 'macOS only: APFS answers EILSEQ to a non-UTF-8 name, which Linux filesystems store; git-bytes reaches it on darwin (an allowed refusal there)' },
440 // release #71 (train/1 #55 bytes, #51 push outcome, #54 spans): the lossless decodes and the new exports
441 { match: 'src/lsrefs.ts#lsRefsStep:decode:lossless:f.payload', space: 'git-bytes', axisTag: 'field' },
442 { match: 'src/objects.ts#parseCommit:decode:lossless:data', space: 'git-bytes', axisTag: 'field' },
443 { match: 'src/objects.ts#parseTag:decode:lossless:data', space: 'git-bytes', axisTag: 'field' },
444 { match: 'src/objects.ts#parseTree:decode:lossless:nameBytes', space: 'git-bytes', axisTag: 'field' },
445 { match: 'src/push.ts#reportStep:decode:lossless:payload', space: 'git-bytes', axisTag: 'field' },
446 { match: 'src/push.ts#cutReportLine:decode:lossless:line', space: 'git-bytes', axisTag: 'field' },
447 { match: 'src/push.ts#wholeReason:decode:lossless:line', space: 'git-bytes', axisTag: 'field' },
448 { match: 'src/push.ts#classifyNew:decode:lossless:whole', space: 'git-bytes', axisTag: 'field' },
449 { match: 'src/push.ts#streamStep:decode:replacement:body', excluded: 'display-only: the band 3 message, quoted into the error' },
450 { match: 'src/sign.ts#withGpgsig:decode:lossless:commitBytes', space: 'sign', axisTag: 'case' },
451 { match: 'src/push.ts#classifyReport:export', space: 'push-outcome', axisTag: 'status' },
452 { match: 'src/push.ts#decideOutcome:*', space: 'push-outcome', axisTag: 'event' },
453 { match: 'src/otel.ts#constructor:untyped:a span has a parent or follows one, not both', excluded: 'a caller programming error (a TypeError by design, never an outcome); test/span-contract.test.js holds it' },
454 // a caller-supplied callback that throws: the failure is the caller's own code, not an input ply decides on
455 { match: 'src/errors.ts#callbackFailed:bad_request:caller-supplied … threw: …', excluded: "a caller's callback threw (signer, filter, any callback at operation()'s edge), not a decision on an input; test/callback-throw.test.js holds the code, `what`, `cause` and the unchanged ref (git)" },
456 { match: 'src/errors.ts#argsError:bad_request:…: … must be …', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/input-validation.test.js holds the code and `what` for null in each argument position" },
457 { match: 'src/option.ts#matchOptionChecked:bad_request:matchOption: the option must be some(value) or none', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/root-option.test.js holds the code and `what` for null, undefined, a number, a string, an array and objects of no or another tag" },
458 { match: 'src/option.ts#matchOptionChecked:bad_request:matchOption: the handlers must be { some, none } functio…', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/root-option.test.js holds the code and `what` for each missing or non-function branch" },
459 { match: 'src/option.ts#matchOptionChecked:bad_request:matchOption handler', excluded: "a caller's branch threw, not a decision on an input; test/root-option.test.js holds the code, `what` and `cause` for both branches" },
460 { match: 'src/repo-node.ts#pushRepo:bad_request:pushRepo: spec must be an object', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/input-validation.test.js holds the code and `what`" },
461 { match: 'src/repo-node.ts#pushRepo:bad_request:pushRepo: options must be an object', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/input-validation.test.js holds the code and `what`" },
462 { match: 'src/tree-node.ts#filesFromDir:bad_request:filesFromDir: options must be an object or null', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/input-validation.test.js holds the code and `what`" },
463 { match: 'src/tree-node.ts#pushDir:bad_request:pushDir: spec must be an object', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/input-validation.test.js holds the code and `what`" },
464 { match: 'src/tree-node.ts#pushDir:bad_request:pushDir: options must be an object', excluded: "an argument that is not the documented type (#296): no input space, one shape check; test/input-validation.test.js holds the code and `what`" },
465 { match: 'src/tree-node.ts#filesFromDir:bad_request:…: the directory could not be read: …', excluded: "node:fs refused the walk (a missing directory, an unreadable file): the file system's state, not a decision on an input; test/callback-throw.test.js holds the code, `what: 'dir'`, node's errno on `cause` (ENOENT, EACCES) and the unchanged ref" },
466 { match: 'src/sign.ts#signCommit:bad_request:signer', excluded: "a caller's signer threw or rejected, not a decision on an input; test/callback-throw.test.js holds it (two rows, ref unchanged in git)" },
467 { match: 'src/sign.ts#signCommit:bad_request:caller-supplied signer returned a signature that is not …', excluded: "a caller's signer broke its type (a non-string signature), a caller programming error; no test holds this branch yet" },
468 { match: 'src/transport.ts#framesFailed:bad_request:transport.frames', excluded: "a caller's transport frames() threw or its stream rejected on a read request, not a decision on an input; test/callback-throw.test.js holds the code, `what`, `cause` and the unchanged ref (git), with the hostile thrown values" },
469 { match: 'src/transport.ts#framesFailed:ambiguous:caller-supplied transport.frames threw after the request…', excluded: "a caller's transport frames() threw or its stream rejected on the push request, not a decision on an input; test/callback-throw.test.js holds it (thrown when called for receive-pack, and after delivering the push: the ref read back in git)" },
470 { match: 'src/transport.ts#frames:ambiguous:<service>, <e>', excluded: "framesFailed's call site for a caller's frames() that throws when called; test/callback-throw.test.js holds both classes (upload-pack: bad_request, receive-pack: ambiguous)" },
471 { match: 'src/transport.ts#guardedFrames:ambiguous:<service>, <e>', excluded: "framesFailed's call site for a caller's stream that rejects on a read; test/callback-throw.test.js holds both classes (rejects on iteration: bad_request; after delivering the push: ambiguous)" },
472 { match: 'src/transport.ts#advertise:bad_request:transport.advertise', excluded: "a caller's transport advertise() threw or rejected, not a decision on an input; test/callback-throw.test.js holds the code, `what` and `cause` (one row)" },
473 { match: 'src/packcache.ts#calling:bad_request:<what>, <e>', excluded: "a caller's pack-cache callback threw when called (shouldCache, waitUntil, the cache's match, delete or put), not a decision on an input; test/callback-throw.test.js holds each of the five (code, `what`, `cause`)" },
474 // generated, reviewed
475 { match: "src/checkout-node.ts#collision:*", space: 'checkout-tree', axisTag: 'case' },
476 { match: "src/checkout-node.ts#emptyDir:*", space: 'checkout-tree', axisTag: 'case' },
477 { match: "src/checkout-node.ts#filesystem:*", space: 'checkout-tree', axisTag: 'case' },
478 { match: "src/checkout-node.ts#ensureDir:*", space: 'checkout-tree', axisTag: 'case' },
479 { match: "src/checkout-node.ts#writeFiles:bad_request:already exists#2", space: 'checkout-tree', axisTag: 'case' },
480 { match: "src/checkout-node.ts#writeFiles:unsupported:checkout: git refuses to check out … on …: …", space: 'checkout-tree', axisTag: 'case' },
481 { match: "src/checkout.ts#walk:*", space: 'checkout-tree', axisTag: 'case' },
482 { match: "src/checkout.ts#fetchTrees:not_found:commit … not found on the remote", space: 'mutant-kill', axisTag: 'case' },
483 { match: "src/checkout.ts#fetchTrees:pack_corrupt:commit … not in the … pack (… objects)", space: 'checkout-tree', axisTag: 'case' },
484 { match: "src/checkout.ts#fetchTrees:not_found:… is not a commit", space: 'checkout-tree', axisTag: 'case' },
485 { match: "src/checkout.ts#tree:*", space: 'mutant-kill', axisTag: 'case' },
486 { match: "src/checkout.ts#subtree:not_found:path component … not found", space: 'checkout-tree', axisTag: 'case' },
487 { match: "src/checkout.ts#subtree:not_found:… is not a directory (mode …)", space: 'wide-limits', axisTag: 'wanted' },
488 { match: "src/checkout.ts#checkoutArgs:*", space: 'checkout-tree', axisTag: 'case' },
489 { match: "src/checkout.ts#fetchBlobs:pack_corrupt:object … served but not wanted (… blobs asked for)", space: 'checkout-tree', axisTag: 'case' },
490 { match: "src/checkout.ts#fetchBlobs:pack_corrupt:expected blob …, got …", space: 'mutant-kill', axisTag: 'case' },
491 { match: "src/edit.ts#validateSpec:bad_request:find/replace must be string or Uint8Array", space: 'unit', axisTag: 'case' },
492 { match: "src/edit.ts#validateSpec:bad_request:find must be non-empty", space: 'hostile-server', axisTag: 'case' },
493 { match: "src/edit.ts#headHint:bad_request:head must be a 40-hex oid", space: 'packcache', axisTag: 'case' },
494 { match: "src/edit.ts#findEntry:not_found:path component … not found", space: 'unit', axisTag: 'case' },
495 { match: "src/edit.ts#findEntry:not_found:… is not a directory", space: 'edges', axisTag: 'case' },
496 { match: "src/edit.ts#findEntry:not_found:… is not a regular file (mode …)", space: 'edges', axisTag: 'case' },
497 { match: "src/edit.ts#needsHead:*", space: 'edges', axisTag: 'case' },
498 { match: "src/edit.ts#resolve:*", space: 'hostile-server', axisTag: 'case' },
499 { match: "src/edit.ts#editOnce:*", space: 'edges', axisTag: 'case' },
500 { match: "src/edit.ts#strictParent:*", space: 'edges', axisTag: 'case' },
501 { match: "src/edit.ts#begin:pack_corrupt:expected blob, got type …", space: 'liar', axisTag: 'lie' },
502 { match: "src/edit.ts#begin:match_count:blob (… bytes) is shorter than find (… bytes): expected …", space: 'edges', axisTag: 'case' },
503 { match: "src/edit.ts#inflate:pack_corrupt:inflated bytes before header", excluded: 'unreachable: zlib is written only after the pack phase is body, and a header-phase size is 0, so any positive inflate chunk already failed the declared-size check; DecompressionStream emits no empty chunk' },
504 { match: "src/edit.ts#inflate:lfs_pointer:… is a Git LFS pointer (… bytes); the file's content is …", space: 'packcache', axisTag: 'case' },
505 { match: "src/edit.ts#inflate:pack_corrupt:server streamed more than the … bytes it declared", space: 'hostile-server', axisTag: 'case' },
506 { match: "src/edit.ts#streamBlobEdit:pack_corrupt:blob stream: …", space: 'streamed-body', axisTag: 'shape' },
507 { match: "src/edit.ts#streamBlobEdit:pack_corrupt:inflated … != header size …", space: 'streamed-body', axisTag: 'shape' },
508 { match: "src/edit.ts#streamBlobEdit:match_count:expected exactly one match, found …", space: 'hostile-server', axisTag: 'case' },
509 { match: "src/errors.ts#ambiguousAfterPush:*", space: 'hostile-server', axisTag: 'case' },
510 { match: "src/fetch.ts#countField:*", space: 'mutant-kill', axisTag: 'case' },
511 { match: "src/fetch.ts#v2Step:protocol:v2: frame after flush", space: 'pkt-frame', axisTag: 'position' },
512 { match: "src/fetch.ts#sidebandStep:protocol:v2: … inside the packfile section", space: 'pkt-frame', axisTag: 'position' },
513 { match: "src/fetch.ts#sidebandStep:remote_error:remote: …", space: 'pkt-frame', axisTag: 'position' },
514 { match: "src/fetch.ts#sidebandStep:protocol:v2: bad sideband …", space: 'hostile-server', axisTag: 'case' },
515 { match: "src/fetch.ts#v2Step:remote_error:remote: …", space: 'chunking', axisTag: 'input' },
516 { match: "src/fetch.ts#v2Step:limit_exceeded:section headers", space: 'mutant-kill', axisTag: 'case' },
517 { match: "src/fetch.ts#v2Step:limit_exceeded:shallow-info lines", space: 'hostile-server', axisTag: 'case' },
518 { match: "src/fetch.ts#v2Step:limit_exceeded:acknowledgment lines", space: 'mutant-kill', axisTag: 'case' },
519 { match: "src/fetch.ts#v2Step:limit_exceeded:section lines", space: 'mutant-kill', axisTag: 'case' },
520 { match: "src/fetch.ts#v2End:protocol:v2: response ended without flush", space: 'fetch-protocol', axisTag: 'deepen' },
521 { match: "src/fetch.ts#v2End:protocol:v2: no packfile section (sections: …)", space: 'hostile-server', axisTag: 'case' },
522 { match: "src/fetch.ts#v2End:protocol:v2: the server said ready and sent no packfile section", space: 'lying-server', axisTag: 'case' },
523 { match: "src/fetch.ts#v2End:protocol:v2: expected packfile, received acknowledgments", space: 'lying-server', axisTag: 'case' },
524 { match: "src/fetch.ts#doneField:bad_request:invalid done: must be true, false or left out", space: 'lying-server', axisTag: 'case' },
525 { match: "src/fetch.ts#v2Step:protocol:v2: unexpected acknowledgment line …", space: 'lying-server', axisTag: 'case' },
526 { match: "src/fetch.ts#parseSideband:export", space: 'unit', axisTag: 'case' },
527 { match: "src/push.ts#parseReceivePackTooLarge:export", space: 'unit', axisTag: 'case' },
528 { match: "src/fetch.ts#spHeader:pack_corrupt:pack: bad signature", space: 'pack-cut', axisTag: 'corrupt' },
529 { match: "src/fetch.ts#spHeader:pack_corrupt:pack: bad version", space: 'pack-cut', axisTag: 'corrupt' },
530 { match: "src/fetch.ts#spHeader:pack_corrupt:pack: expected 1 object, got …", space: 'pack-cut', axisTag: 'corrupt' },
531 { match: "src/fetch.ts#spHeader:pack_corrupt:pack: single-object pack is a delta", space: 'pack-cut', axisTag: 'corrupt' },
532 { match: "src/fetch.ts#spFinish:pack_corrupt:pack: truncated before object header", space: 'pack-cut', axisTag: 'cut' },
533 { match: "src/fetch.ts#spFinish:pack_corrupt:pack: missing trailer", space: 'unit', axisTag: 'case' },
534 { match: "src/fetch.ts#spFinish:pack_corrupt:pack: trailer … != …", space: 'chunking', axisTag: 'input' },
535 { match: "src/fetch.ts#memberFinish:pack_corrupt:pack: … trailing bytes after object", space: 'streamed-body', axisTag: 'shape' },
536 { match: "src/fetch.ts#singleObject:pack_corrupt:object … served for want …", space: 'mutant-kill', axisTag: 'case' },
537 { match: "src/fetch.ts#singleObject:pack_corrupt:expected …, got …", space: 'read', axisTag: 'case' },
538 { match: "src/fetch.ts#refuseNonCommit:not_found:… is not a commit", space: 'read', axisTag: 'case' },
539 { match: "src/fetch.ts#wideObject:limit_exceeded:object size", space: 'streamed-body', axisTag: 'size' },
540 { match: "src/fetch.ts#fetchExchange:coded=pack_corrupt:r = await coded('pack_corrupt', () => spanned(t, 'git.up…", space: 'hostile-server', axisTag: 'case' },
541 { match: "src/http.ts#userinfo:*", space: 'hostile-server', axisTag: 'case' },
542 { match: "src/http.ts#noCredential:*", space: 'credential-cells', axisTag: 'source' },
543 { match: "src/http.ts#explicitAuth:*", space: 'hostile-server', axisTag: 'case' },
544 { match: "src/http.ts#redirectError:*", space: 'hostile-server', axisTag: 'case' },
545 { match: "src/http.ts#readCapped:*", space: 'mutant-kill', axisTag: 'case' },
546 { match: "src/http.ts#parseHttpOptions:export", space: 'http-options', axisTag: 'case' },
547 // The scheme refusal is executed by test/url-scheme.test.js (http-options): hostile-server's runner
548 // (test/adversarial.test.js) never offers a base that is not http(s).
549 { match: "src/http.ts#parseHttpOptions:bad_request:invalid url: only http: and https: remotes are supported", space: 'http-options', axisTag: 'case' },
550 { match: "src/http.ts#parseHttpOptions:*", space: 'hostile-server', axisTag: 'case' },
551 { match: "src/http.ts#recordResponseHeaderNames:bad_request:recordResponseHeaders: expected a list of header names", space: 'mutant-kill', axisTag: 'case' },
552 { match: "src/http.ts#recordResponseHeaderNames:bad_request:recordResponseHeaders: at most … names", space: 'mutant-kill', axisTag: 'case' },
553 { match: "src/http.ts#recordResponseHeaderNames:bad_request:recordResponseHeaders: … is not a header name", space: 'mutant-kill', axisTag: 'case' },
554 { match: "src/http.ts#postStream:protocol:…: HTTP … response has no body", space: 'mutant-kill', axisTag: 'case' },
555 { match: "src/http.ts#frames:protocol:<st>", space: 'pkt-frame', axisTag: 'relation' },
556 { match: "src/http.ts#postStream:*", space: 'hostile-server', axisTag: 'case' },
557 { match: "src/http.ts#advertisementBody:protocol:… advertisement: HTTP … response has no body", space: 'mutant-kill', axisTag: 'case' },
558 { match: "src/http.ts#advertisementBody:<httpCode(res.status)>:HTTP … … advertisement", space: 'hostile-server', axisTag: 'case' },
559 { match: "src/http.ts#advertisementBody:limit_exceeded:advertisement bytes", space: 'mutant-kill', axisTag: 'case' },
560 { match: "src/fetchpack.ts#fetchPackFiltered:bad_request:fetchPackFiltered: expected { wants, filter, deepen }", space: 'read', axisTag: 'case' },
561 { match: "src/fetchpack.ts#fetchPackFiltered:bad_request:fetchPackFiltered: filter must be tree:0 or blob:none, g…", space: 'read', axisTag: 'case' },
562 { match: "src/fetchpack.ts#fetchPackFiltered:bad_request:fetchPackFiltered: wants must be a list of object ids", space: 'read', axisTag: 'case' },
563 { match: "src/fetchpack.ts#fetchPackFiltered:bad_request:fetchPackFiltered: wants must name at least one object", space: 'read', axisTag: 'case' },
564 { match: "src/limits.ts#checkLimit:*", space: 'unit', axisTag: 'case' },
565 { match: "src/limits.ts#parseLimits:export", space: 'unit', axisTag: 'case' },
566 { match: "src/limits.ts#parseLimits:bad_request:limits.… must be at most … ms (0 turns the timer off)", space: 'http-options', axisTag: 'case' },
567 { match: "src/limits.ts#parseLimits:bad_request:limits.maxResolveWork must be at least*", space: 'unit', axisTag: 'case' },
568 { match: "src/limits.ts#limitExceeded:*", space: 'hostile-server', axisTag: 'case' },
569 { match: "src/lsrefs.ts#v2Refusal:unsupported:ls-refs: the server does not speak protocol v2*", space: 'mutant-kill', axisTag: 'case' },
570 { match: "src/lsrefs.ts#parseLsRefLine:remote_error:remote: …", space: 'advertisement', axisTag: 'record' },
571 { match: "src/lsrefs.ts#parseLsRefLine:protocol:ls-refs: malformed line …", space: 'advertisement', axisTag: 'record' },
572 { match: "src/lsrefs.ts#parseLsRefLine:unsupported:unsupported object-format: only sha1 repositories are su…", space: 'advertisement', axisTag: 'record' },
573 { match: "src/lsrefs.ts#parseLsRefLine:protocol:ls-refs: malformed line …#2", space: 'advertisement', axisTag: 'record' },
574 { match: "src/lsrefs.ts#parseLsRefLine:protocol:ls-refs: malformed line …#3", space: 'advertisement', axisTag: 'record' },
575 { match: "src/lsrefs.ts#parseLsRefLine:export", space: 'advertisement', axisTag: 'record' },
576 { match: "src/lsrefs.ts#parseUnbornLine:export", space: 'lsrefs-unborn', axisTag: 'case' },
577 { match: "src/lsrefs.ts#lsRefsStep:protocol:ls-refs: … after the terminating flush-pkt", space: 'pkt-frame', axisTag: 'position' },
578 { match: "src/lsrefs.ts#lsRefsStep:protocol:ls-refs: unexpected … in ref listing", space: 'pkt-frame', axisTag: 'position' },
579 { match: "src/lsrefs.ts#lsRefsStep:limit_exceeded:ls-refs bytes", space: 'mutant-kill', axisTag: 'case' },
580 { match: "src/lsrefs.ts#lsRefsStep:limit_exceeded:ls-refs lines", space: 'hostile-server', axisTag: 'case' },
581 { match: "src/lsrefs.ts#lsRefsEnd:protocol:ls-refs: response ended without the terminating flush-pk…", space: 'pkt-frame', axisTag: 'relation' },
582 { match: "src/lsrefs.ts#lsRefs:coded=protocol:return coded('protocol', () => spanned(t, 'git.upload-pa…", space: 'advertisement', axisTag: 'framing' },
583 { match: "src/merge.ts#ancestors:*", space: 'hostile-server', axisTag: 'case' },
584 { match: "src/merge.ts#mergeBaseOf:*", space: 'merge', axisTag: 'case' },
585 { match: "src/mergeio.ts#givenOid:*", space: 'stamps', axisTag: 'op' },
586 { match: "src/mergeio.ts#assertCommit:*", space: 'stamps', axisTag: 'op' },
587 { match: "src/merge.ts#validateAttributes:*", space: 'merge', axisTag: 'case' },
588 { match: "src/merge.ts#decideMerge:unrelated_histories:… and … share no common ancestor within the search depth", space: 'merge', axisTag: 'case' },
589 { match: "src/merge.ts#decideMerge:merge_conflict:… and … have … merge bases (criss-cross history); ply do…", space: 'merge', axisTag: 'case' },
590 { match: "src/merge.ts#decideMerge:not_fast_forward:… has moved past the merge base; a merge commit would be…", space: 'merge', axisTag: 'case' },
591 { match: "src/merge.ts#mergeBranch:merge_conflict:conflicts: ……", space: 'merge', axisTag: 'case' },
592 { match: "src/negotiate.ts#negotiateCaps:bad_request:negotiate batch must be a positive integer", space: 'mutant-kill', axisTag: 'case' },
593 { match: "src/objects.ts#parseTree:limit_exceeded:tree entries", space: 'wide-limits', axisTag: 'wanted' },
594 { match: "src/objects.ts#parseTree:pack_corrupt:malformed entry", space: 'unit', axisTag: 'case' },
595 { match: "src/objects.ts#parseTree:pack_corrupt:malformed entry#2", space: 'unit', axisTag: 'case' },
596 { match: "src/objects.ts#parseTree:pack_corrupt:empty mode", space: 'unit', axisTag: 'case' },
597 { match: "src/objects.ts#parseTree:pack_corrupt:malformed mode", space: 'fsck-tree', axisTag: 'trigger' },
598 { match: "src/objects.ts#parseTree:pack_corrupt:zero-padded mode", space: 'fsck-tree', axisTag: 'mode' },
599 { match: "src/objects.ts#parseTree:pack_corrupt:empty name", space: 'fsck-tree', axisTag: 'name' },
600 { match: "src/objects.ts#parseTree:pack_corrupt:full pathname", space: 'fsck-tree', axisTag: 'name' },
601 { match: "src/objects.ts#parseTree:pack_corrupt:bad name", space: 'fsck-tree', axisTag: 'name' },
602 { match: "src/objects.ts#parseTree:pack_corrupt:not strictly sorted", space: 'wide-limits', axisTag: 'sibling' },
603 { match: "src/objects.ts#parseTree:pack_corrupt:large pathname", space: 'fsck-tree', axisTag: 'name' },
604 { match: "src/objects.ts#parseTree:pack_corrupt:null sha1", space: 'fsck-tree', axisTag: 'trigger' },
605 { match: "src/objects.ts#parseTree:pack_corrupt:.gitmodules is a symbolic link", space: 'fsck-tree', axisTag: 'name' },
606 { match: "src/objects.ts#parseTree:pack_corrupt:.gitmodules is not a blob", space: 'fsck-tree', axisTag: 'name' },
607 { match: "src/objects.ts#parseTree:pack_corrupt:.gitattributes is not a blob", space: 'fsck-tree', axisTag: 'trigger' },
608 { match: "src/objects.ts#parseTree:pack_corrupt:duplicate entry …", space: 'fsck-tree', axisTag: 'trigger' },
609 { match: "src/objects.ts#parseTree:export", space: 'wide-limits', axisTag: 'wanted' },
610 { match: "src/objects.ts#encodeEntries:*", space: 'push-tree', axisTag: 'case' },
611 { match: "src/objects.ts#treeEntryOf:*", space: 'parse-once', axisTag: 'case' },
612 { match: "src/fetch.ts#oidList:*", space: 'parse-once', axisTag: 'case' },
613 { match: "src/negotiate.ts#negotiate:*", space: 'parse-once', axisTag: 'case' },
614 { match: "src/objects.ts#headerOid:*", space: 'parse-once', axisTag: 'case' },
615 { match: "src/objects.ts#encodeCommit:bad_request:*", space: 'parse-once', axisTag: 'case' },
616 { match: "src/fetch.ts#objectId:*", space: 'parse-once', axisTag: 'case' },
617 { match: "src/objects.ts#encodeTag:*", space: 'encode-tag', axisTag: 'case' },
618 { match: "src/objects.ts#encodeCommitOf:*", space: 'encode-commit', axisTag: 'case' },
619 { match: 'src/refs.ts#notString:bad_request:… must be a string', space: 'version-refname', axisTag: 'refusal' },
620 { match: "src/oid.ts#parseOid:bad_request:oid must be a string", space: 'mutant-kill', axisTag: 'case' },
621 { match: "src/oid.ts#parseOid:bad_request:oid must be … lowercase hex characters", space: 'mutant-kill', axisTag: 'case' },
622 { match: "src/oid.ts#parseOid:bad_request:oid must be lowercase hex", space: 'mutant-kill', axisTag: 'case' },
623 { match: "src/oid.ts#parseOid:export", space: 'mutant-kill', axisTag: 'case' },
624 { match: "src/oid.ts#parseCommitId:bad_request:the zero oid is not a commit", space: 'mutant-kill', axisTag: 'case' },
625 { match: "src/oid.ts#parseCommitId:export", space: 'mutant-kill', axisTag: 'case' },
626 { match: "src/objects.ts#ident:*", space: 'mutant-kill', axisTag: 'case' },
627 { match: "src/objects.ts#assertFetched:pack_corrupt:object: bad type …", space: 'mutant-kill', axisTag: 'case' },
628 { match: "src/objects.ts#headerValue:*", space: 'hostile-server', axisTag: 'case' },
629 { match: "src/objects.ts#headerValues:*", space: 'hostile-server', axisTag: 'case' },
630 { match: "src/objects.ts#messageBody:*", space: 'mutant-kill', axisTag: 'case' },
631 { match: "src/operation.ts#verifyRef:ambiguous:push reported ok but the verification read-back failed: …", space: 'push-tree', axisTag: 'case' },
632 { match: "src/operation.ts#verifyRef:ambiguous:push reported ok but … is …, not …", space: 'packcache', axisTag: 'case' },
633 { match: "src/push.ts#planPush:limit_exceeded:push commands", space: 'mutant-kill', axisTag: 'case' },
634 { match: "src/push.ts#parseCommand:bad_request:push: oids must be 40-hex", space: 'push-outcome', axisTag: 'commands' },
635 { match: 'src/push.ts#parseCommand:export', space: 'push-commands', axisTag: 'case' },
636 { match: 'src/push.ts#parseCommands:export', space: 'push-commands', axisTag: 'case' },
637 { match: 'src/push.ts#nonEmpty:*', space: 'push-commands', axisTag: 'case' },
638 { match: "src/push.ts#planPush:bad_request:push: unchecked atomic or push options", space: 'mutant-kill', axisTag: 'case' },
639 { match: "src/push.ts#send:limit_exceeded:push pack bytes", space: 'push-tree', axisTag: 'case' },
640 { match: "src/push.ts#decide:ambiguous:<r.cause>", space: 'hostile-server', axisTag: 'case' },
641 // F34: empty band-3 tip read-back → typed cas_conflict (or landed); covered by mutant-kill + edit-race-f34
642 { match: 'src/push.ts#resolveAmbiguousByTip:cas_conflict:push rejected: stale ref', space: 'mutant-kill', axisTag: 'case' },
643 { match: "src/push.ts#resolveAmbiguousByTip:conditional=cas_conflict:span.set({ 'git.push.verify.ref': seen === null ? '' : s…", space: 'mutant-kill', axisTag: 'case' },
645 { match: 'src/push.ts#decide:ambiguous:<cut>', space: 'push-stream', axisTag: 'case' },
646 { match: 'src/packwrite.ts#refuse:*', space: 'push-stream', axisTag: 'case' },
647 // pushPack (#234): test/push-pack.test.js
648 { match: 'src/push.ts#planPackPush:*', space: 'push-stream', axisTag: 'case' },
649 { match: 'src/packwrite.ts#pull:*', space: 'push-stream', axisTag: 'case' },
650 { match: 'src/packwrite.ts#mismatch:*', space: 'push-stream', axisTag: 'case' },
651 { match: "src/push.ts#receivePack:coded=protocol:return coded('protocol', () => spanned(t, 'git.receive-p…", space: 'mutant-kill', axisTag: 'case' },
652 { match: "src/read.ts#refCandidates:*", space: 'mutant-kill', axisTag: 'case' },
653 { match: 'src/read.ts#lookupRef:bad_request:abbrev must be "advertised" or "off"', space: 'mutant-kill', axisTag: 'case' },
654 { match: "src/read.ts#resolveCommit:*", space: 'checkout-tree', axisTag: 'case' },
655 { match: "src/read.ts#resolveAbbrev:bad_request:abbreviated oid must be 4..39 lowercase hex", space: 'mutant-kill', axisTag: 'case' },
656 { match: "src/read.ts#advertisedCommit:bad_request:abbreviated oid … matches … advertised objects", space: 'mutant-kill', axisTag: 'case' },
657 { match: "src/commit.ts#commitById:*", space: 'read', axisTag: 'case' },
658 { match: "src/read.ts#walkFrom:*", space: 'read', axisTag: 'case' },
659 { match: 'src/read.ts#walkCommit:*', space: 'path-trees', axisTag: 'case' },
660 { match: "src/read.ts#listedDir:*", space: 'wide-limits', axisTag: 'wanted' },
661 { match: "src/read.ts#fileEntry:*", space: 'read', axisTag: 'case' },
662 { match: "src/read.ts#failHere:*", space: 'checkout-tree', axisTag: 'case' },
663 { match: "src/read.ts#openBlob:bad_request:maxBytes must be an integer >= 0", space: 'mutant-kill', axisTag: 'case' },
664 { match: "src/read.ts#blobHeader:pack_corrupt:pack ended before the object header", space: 'mutant-kill', axisTag: 'case' },
665 { match: "src/read.ts#blobHeader:pack_corrupt:expected blob, got …", space: 'mutant-kill', axisTag: 'case' },
666 { match: "src/read.ts#openBlob:<rethrown or pack_corrupt>:<header.error>", space: 'streamed-body', axisTag: 'shape' },
667 { match: "src/read.ts#openBlob:pack_corrupt:<failHere(header.error)>", excluded: 'unreachable: failHere already returns a coded value (the error itself, or its pack_corrupt wrap), so raised keeps it and builds nothing' },
668 { match: "src/read.ts#abortWith:<rethrown or pack_corrupt>:<e>", space: 'checkout-tree', axisTag: 'case' },
669 { match: "src/read.ts#readBlob:pack_corrupt:<e>", excluded: 'unreachable: the blob stream errors only with what failHere returned (a coded value), so raised keeps it and builds nothing' },
670 { match: "src/read.ts#flush:<rethrown or pack_corrupt>:<e>", excluded: 'unreachable: pump.catch aborts the inflater, so the verify transform flush never runs on a pump rejection; await pump there only observes a pump that has already resolved' },
671 { match: "src/read.ts#flush:pack_corrupt:inflated … != declared …", space: 'streamed-body', axisTag: 'shape' },
672 { match: "src/rebase.ts#linearChain:not_linear:… has … parents; only linear branches are rebased", space: 'merge', axisTag: 'case' },
673 { match: "src/rebase.ts#rebaseBaseOf:*", space: 'merge', axisTag: 'case' },
674 { match: "src/rebase.ts#rebaseBranch:not_linear:… and … have … merge bases (criss-cross history); rebase…", space: 'merge', axisTag: 'case' },
675 { match: "src/rebase.ts#rebaseBranch:merge_conflict:replaying … onto … conflicts: …", space: 'merge', axisTag: 'case' },
676 { match: "src/rebase.ts#emptyPolicy:bad_request:empty must be 'stop' or 'keep'", space: 'merge', axisTag: 'case' },
677 { match: "src/rebase.ts#pickCommit:not_linear:… has … parents; only single-parent commits are picked", space: 'mergebase', axisTag: 'op' },
678 { match: "src/rebase.ts#pickCommit:merge_conflict:… of … onto … conflicts: …", space: 'merge', axisTag: 'case' },
679 { match: "src/receivecaps.ts#checkPushCaps:*", space: 'advertisement', axisTag: 'request' },
680 { match: "src/sign.ts#withGpgsig:*", space: 'sign', axisTag: 'case' },
681 { match: "src/transport.ts#proto:*", space: 'chunking', axisTag: 'input' },
682 { match: "src/transport.ts#wrapNet:*", space: 'hostile-server', axisTag: 'case' },
683 { match: "src/transport.ts#coded:*", space: 'mutant-kill', axisTag: 'case' },
684 { match: "src/tree-node.ts#walk:*", space: 'push-tree', axisTag: 'case' },
685 { match: "src/tree.ts#fileEntries:bad_request:files must be an object or an iterable of { path, mode, …", space: 'push-tree', axisTag: 'case' },
686 { match: "src/tree.ts#fileEntries:limit_exceeded:files", space: 'push-tree', axisTag: 'case' },
687 { match: "src/tree.ts#fileEntries:bad_request:…: a gitlink (160000) takes a 40-hex oid and no data", space: 'push-tree', axisTag: 'case' },
688 { match: "src/tree.ts#fileEntries:bad_request:…: mode … is not 100644, 100755, 120000 or 160000", space: 'push-tree', axisTag: 'case' },
689 { match: "src/tree.ts#fileEntries:bad_request:…: data must be a string or Uint8Array", space: 'mutant-kill', axisTag: 'case' },
690 { match: "src/tree.ts#fileEntries:limit_exceeded:object size", space: 'push-tree', axisTag: 'case' },
691 { match: "src/tree.ts#charge:limit_exceeded:push bytes", space: 'mutant-kill', axisTag: 'case' },
692 { match: "src/tree.ts#fileEntries:bad_request:…: a symlink target must be non-empty and contain no NUL", space: 'push-tree', axisTag: 'case' },
693 { match: "src/tree.ts#buildTree:*", space: 'push-tree', axisTag: 'case' },
694 { match: "src/tree.ts#validateTreeSpec:*", space: 'mutant-kill', axisTag: 'case' },
695 { match: "src/tree.ts#baseFound:*", space: 'push-tree', axisTag: 'case' },
696 { match: "src/tree.ts#pushTreeOnce:*", space: 'push-tree', axisTag: 'case' },
697 { match: "src/validate.ts#bad:*", space: 'hostile-server', axisTag: 'case' },
698 { match: "src/validate.ts#validateIdent:bad_request:must be a string", space: 'mutant-kill', axisTag: 'case' },
699 { match: "src/validate.ts#validateIdent:bad_request:must not contain NUL, newline, < or >", space: 'ident-alphabet', axisTag: 'name' },
700 { match: "src/validate.ts#validateIdent:bad_request:time", space: 'hostile-server', axisTag: 'case' },
701 { match: "src/validate.ts#validateIdent:bad_request:tz", space: 'hostile-server', axisTag: 'case' },
702 { match: "src/validate.ts#validateIdent:bad_request:tz#2", space: 'hostile-server', axisTag: 'case' },
703 { match: "src/validate.ts#validateIdent:bad_request:tz#3", space: 'mutant-kill', axisTag: 'case' },
704 { match: "src/validate.ts#validateIdent:bad_request:tz#4", space: 'mutant-kill', axisTag: 'case' },
705 { match: "src/validate.ts#validateWire:*", space: 'hostile-server', axisTag: 'case' },
706 { match: 'src/validate.ts#validateFieldValue:bad_request:must be an HTTP field value: visible ASCII, Latin-1, spa…', excluded: "a userAgent outside RFC 9110 field-value (#300-1): one character-class check; test/input-validation.test.js holds the refused (controls, DEL, above U+00FF) and accepted (HTAB, SP, obs-text) cases, code and `what`" },
707 { match: "src/validate.ts#validateRef:bad_request:ref", space: 'refname-alphabet', axisTag: 'component' },
708 { match: "src/validate.ts#validateRef:bad_request:ref#2", space: 'refname-alphabet', axisTag: 'component' },
709 { match: "src/validate.ts#validatePath:bad_request:path", space: 'hostile-server', axisTag: 'case' },
710 { match: "src/validate.ts#validatePath:bad_request:path#2", space: 'edges', axisTag: 'case' },
711 { match: "src/validate.ts#validatePath:bad_request:path#3", space: 'hostile-server', axisTag: 'case' },
712 { match: "src/validate.ts#validatePath:bad_request:path#4", space: 'tree-name-alphabet', axisTag: 'name' },
713 { match: "src/validate.ts#validatePath:bad_request:path#5", space: 'tree-name-alphabet', axisTag: 'name' },
714 { match: "src/validate.ts#validateMessage:bad_request:message#2", space: 'hostile-server', axisTag: 'case' },
715];
717// ---- git's checks (test/space/git-manifest.json) ----
718const NO_REF_STORE = 'git fsck of a local ref store (files / packed-refs backends): ply has no ref store, it reads refs from ls-refs';
719const GIT_CURL = 'git\'s libcurl transport (buffers, proxies, SSL backend, temp files, dumb-HTTP pack indexes): ply\'s HTTP is fetch(), and it never speaks dumb HTTP';
720const GIT_CONNECT = 'git\'s connection setup (sockets, proxies, the ssh command line, git:// URLs): ply connects with fetch(), so there is no command line for a host or path to reach';
721const SERVER_INTERNAL = 'a server-internal process failure: the client sees only a response that ends early, the same bytes as a cut connection (covered as that effect)';
722const NEVER_SENDS = what => `ply never sends ${what}, so the server never runs this check on ply's request`;
723export const GIT = [
724 // the advertisement space (#65)
725 { match: 'capability:receive-pack v0:object-format', space: 'advertisement', axisTag: 'format' },
726 { match: 'capability:receive-pack v0:push-options', space: 'advertisement', axisTag: 'options' },
727 { match: 'capability:v2 serve:object-format', space: 'advertisement', axisTag: 'objectFormat' },
728 { match: 'connect.c:die:die_initial_contact:*', space: 'advertisement', axisTag: 'protocol' },
729 { match: 'connect.c:die:ensure_server_supports_v2:*', space: 'advertisement', axisTag: 'lsRefs' },
730 { match: 'connect.c:die:server_supports_feature:*', space: 'advertisement', axisTag: 'fetch' },
731 { match: 'connect.c:die:send_capabilities:*', space: 'advertisement', axisTag: 'objectFormat' },
732 { match: 'connect.c:die:check_stateless_delimiter:*', space: 'advertisement', axisTag: 'framing' },
733 ...['process_ref', 'process_shallow'].map(f => ({ match: `connect.c:die:${f}:*`, excluded: 'v0 ref-advertisement parsing: ply reads a v0 advertisement only for receive-pack\'s capability list (receivecaps.js: the list after the first NUL), never its refs or shallow lines; a v0 upload-pack advertisement is refused before its refs are read (advertisement space, protocol axis); push old oids come from the caller (ls-refs v2)' })),
734 { match: 'send-pack.c:die:send_pack:the receiving end does not support this repository\'s hash algorithm', space: 'advertisement', axisTag: 'format' },
735 { match: 'send-pack.c:die:send_pack:the receiving end does not support --atomic push', space: 'advertisement', axisTag: 'request' },
736 { match: 'send-pack.c:die:send_pack:the receiving end does not support push options', space: 'advertisement', axisTag: 'request' },
737 { match: 'send-pack.c:error:send_pack:atomic push failed for ref %s. status: %d', excluded: 'a client-side check before sending: git fails an atomic push when its own remote-tracking refs already mark a ref rejected (non-fast-forward, stale); ply keeps no refs, so every command reaches receive-pack, which decides it (push-outcome space)' },
738 { match: 'receive-pack.c:die:read_head_info:error: unsupported object format \'%s\'', space: 'advertisement', axisTag: 'format' },
739 ...['no-progress', 'include-tag', 'deepen-relative'].map(a => ({ match: `request-arg:v2 fetch:${a}`, space: 'advertisement', axisTag: 'flag' })),
740 // fsck message ids
741 { match: 'fsck:badName', space: 'ident-alphabet', axisTag: 'name' },
742 { match: 'fsck:badEmail', space: 'ident-alphabet', axisTag: 'email' },
743 { match: 'fsck:nulInHeader', space: 'fsck-commit', axisTag: 'commitHeader' },
744 { match: 'fsck:unterminatedHeader', space: 'fsck-commit', axisTag: 'body' },
745 ...['badDate', 'badDateOverflow', 'badTimezone', 'missingEmail', 'missingNameBeforeEmail', 'missingSpaceBeforeDate', 'missingSpaceBeforeEmail', 'zeroPaddedDate'].map(m => ({ match: `fsck:${m}`, space: 'fsck-commit', axisTag: 'ident' })),
746 ...['badParentSha1', 'badTreeSha1', 'missingAuthor', 'missingCommitter', 'missingTree', 'multipleAuthors'].map(m => ({ match: `fsck:${m}`, space: 'fsck-commit', axisTag: 'commitHeader' })),
747 ...['badObjectSha1', 'badType', 'missingObject', 'missingTag', 'missingTagEntry', 'missingType', 'missingTypeEntry', 'badTagName', 'missingTaggerEntry', 'extraHeaderEntry'].map(m => ({ match: `fsck:${m}`, space: 'fsck-commit', axisTag: 'tagHeader' })),
748 { match: 'fsck:nulInCommit', space: 'fsck-commit', axisTag: 'body' },
749 { match: 'fsck:duplicateEntries', space: 'tree-dups', axisTag: 'relation' },
750 { match: 'fsck:treeNotSorted', space: 'tree-dups', axisTag: 'order' },
751 ...['emptyName', 'fullPathname', 'hasDot', 'hasDotdot', 'hasDotgit'].map(m => ({ match: `fsck:${m}`, space: 'tree-name-alphabet', axisTag: 'name' })),
752 ...['badPackedRefEntry', 'badPackedRefHeader', 'badRefContent', 'badRefFiletype', 'badRefName', 'badReferentName', 'packedRefEntryNotTerminated', 'packedRefUnsorted', 'emptyPackedRefsFile', 'symlinkRef', 'refMissingNewline', 'symrefTargetIsNotARef', 'trailingRefContent'].map(m => ({ match: `fsck:${m}`, excluded: NO_REF_STORE })),
753 ...['gitmodulesUrl', 'gitmodulesPath', 'gitmodulesUpdate', 'gitmodulesName', 'gitmodulesParse', 'gitmodulesLarge'].map(m => ({ match: `fsck:${m}`, excluded: 'the content of .gitmodules: ply has no submodule support (a gitlink is listed, never followed or cloned), so it never reads one; a push carrying a bad one is the server\'s fsck verdict, reported as its ng' })),
754 // fsck_tree
755 ...['S_IFREG|0755', 'S_IFREG|0644', 'S_IFLNK', 'S_IFDIR', 'S_IFGITLINK'].map(m => ({ match: `tree-mode:case ${m}`, space: 'tree-encoding', axisTag: 'modes' })),
756 ...['EMPTY_NAME', 'FULL_PATHNAME', 'HAS_DOT', 'HAS_DOTDOT', 'HAS_DOTGIT'].map(m => ({ match: `tree-mode:reports ${m}`, space: 'tree-name-alphabet', axisTag: 'name' })),
757 { match: 'tree-mode:reports DUPLICATE_ENTRIES', space: 'tree-dups', axisTag: 'relation' },
758 { match: 'tree-mode:reports TREE_NOT_SORTED', space: 'tree-dups', axisTag: 'order' },
759 // fsck_tree's other checks, and the dotfile objects fsck_finish checks (space/fsck-tree, hole #4)
760 ...['badTree', 'nullSha1', 'zeroPaddedFilemode', 'gitmodulesBlob', 'gitattributesBlob', 'gitattributesMissing'].map(m => ({ match: `fsck:${m}`, space: 'fsck-tree', axisTag: 'trigger' })),
761 ...['largePathname', 'gitmodulesSymlink', 'gitmodulesMissing', 'gitattributesSymlink', 'gitignoreSymlink', 'mailmapSymlink'].map(m => ({ match: `fsck:${m}`, space: 'fsck-tree', axisTag: 'name' })),
762 { match: 'fsck:badFilemode', space: 'fsck-tree', axisTag: 'mode' },
763 ...['gitattributesLarge', 'gitattributesLineLength'].map(m => ({ match: `fsck:${m}`, space: 'fsck-tree', axisTag: 'content' })),
764 { match: 'tree-mode:case S_IFREG|0664', space: 'fsck-tree', axisTag: 'mode' },
765 ...['BAD_FILEMODE', 'ZERO_PADDED_FILEMODE'].map(m => ({ match: `tree-mode:reports ${m}`, space: 'fsck-tree', axisTag: 'mode' })),
766 ...['BAD_TREE', 'BAD_TREE#2', 'NULL_SHA1'].map(m => ({ match: `tree-mode:reports ${m}`, space: 'fsck-tree', axisTag: 'trigger' })),
767 ...['GITMODULES_SYMLINK', 'GITMODULES_SYMLINK#2', 'GITATTRIBUTES_SYMLINK', 'GITIGNORE_SYMLINK', 'MAILMAP_SYMLINK', 'LARGE_PATHNAME'].map(m => ({ match: `tree-mode:reports ${m}`, space: 'fsck-tree', axisTag: 'name' })),
768 // ref names
769 { match: 'refname:*', space: 'refname-alphabet', axisTag: 'component' },
770 { match: 'refname:Refname has only one component.', space: 'refname-alphabet', axisTag: 'shape' },
771 { match: 'refname:unless REFNAME_ALLOW_ONELEVEL', space: 'refname-alphabet', axisTag: 'shape' },
772 { match: 'refname:it ends with a "/"', space: 'refname-alphabet', axisTag: 'shape' },
773 { match: 'refname:Refname ends with \'.\'.', space: 'refname-alphabet', axisTag: 'shape' },
774 { match: 'refname:Refname is a single character \'@\'.', space: 'refname-alphabet', axisTag: 'shape' },
775 // capabilities
776 { match: 'capability:receive-pack v0:report-status', space: 'push-outcome', axisTag: 'format' },
777 { match: 'capability:receive-pack v0:report-status-v2', space: 'push-outcome', axisTag: 'format' },
778 { match: 'capability:receive-pack v0:side-band-64k', space: 'push-outcome', axisTag: 'framing' },
779 { match: 'capability:receive-pack v0:atomic', space: 'push-outcome', axisTag: 'atomic' },
780 { match: 'capability:receive-pack v0:delete-refs', space: 'push-outcome', axisTag: 'commands' },
781 { match: 'capability:receive-pack v0:push-cert', excluded: NEVER_SENDS('a push certificate (no signed push)') },
782 { match: 'capability:receive-pack v0:quiet', excluded: NEVER_SENDS('`quiet`') },
783 { match: 'capability:receive-pack v0:ofs-delta', excluded: 'ply\'s push packs carry whole objects and REF_DELTAs only (pack.js), never an OFS_DELTA, so the capability never changes what it sends' },
784 { match: 'capability:v2 fetch:wait-for-done', excluded: NEVER_SENDS('`wait-for-done` (discover.js only records that the server offers it)') },
785 { match: 'capability:*:agent', excluded: 'informational: ply records the server\'s agent on the span and never decides on it' },
786 { match: 'capability:*:session-id', excluded: 'informational: ply never reads or sends a session id' },
787 { match: 'capability:upload-pack v0:*', excluded: 'ply fetches with protocol v2 only (discover.js refuses a reply that is not `version 2`), so a v0 upload-pack capability list is never parsed' },
788 { match: 'capability:v2 fetch:shallow', space: 'fetch-protocol', axisTag: 'deepen' },
789 { match: 'capability:v2 fetch:filter', space: 'fetch-protocol', axisTag: 'filter' },
790 { match: 'capability:v2 fetch:sideband-all', excluded: NEVER_SENDS('`sideband-all`') },
791 { match: 'capability:v2 fetch:packfile-uris', excluded: NEVER_SENDS('`packfile-uris`') },
792 { match: 'capability:v2 fetch:ref-in-want', excluded: NEVER_SENDS('`want-ref` (ply wants oids; packcache.js only refuses to cache a body carrying one)') },
793 { match: 'capability:v2 ls-refs:unborn', excluded: NEVER_SENDS('`unborn` on ls-refs') },
794 { match: 'capability:v2 serve:ls-refs', space: 'parity', axisTag: 'case' },
795 ...['peel', 'symrefs', 'ref-prefix'].map(a => ({ match: `request-arg:v2 ls-refs:${a}`, space: 'parity', axisTag: 'case' })),
796 { match: 'capability:v2 serve:fetch', space: 'fetch-protocol', axisTag: 'want' },
797 { match: 'capability:v2 serve:object-info', excluded: NEVER_SENDS('the object-info command') },
798 { match: 'capability:v2 serve:bundle-uri', excluded: NEVER_SENDS('the bundle-uri command') },
799 { match: 'capability:v2 serve:promisor-remote', excluded: NEVER_SENDS('promisor-remote') },
800 { match: 'capability:v2 serve:server-option', excluded: NEVER_SENDS('server-option lines (discover.js records whether the server offers them)') },
801 // request arguments
802 ...['want', 'done'].map(a => ({ match: `request-arg:v2 fetch:${a}`, space: 'fetch-protocol', axisTag: a === 'want' ? 'want' : 'cycled' })),
803 { match: 'request-arg:v2 fetch:have', space: 'fetch-protocol', axisTag: 'have' },
804 ...['thin-pack', 'ofs-delta', 'shallow'].map(a => ({ match: `request-arg:v2 fetch:${a}`, space: 'fetch-protocol', axisTag: 'cycled' })),
805 ...['deepen', 'deepen-since', 'deepen-not'].map(a => ({ match: `request-arg:v2 fetch:${a}`, space: 'fetch-protocol', axisTag: 'deepen' })),
806 { match: 'request-arg:v2 fetch:filter', space: 'fetch-protocol', axisTag: 'filter' },
807 ...['wait-for-done', 'sideband-all', 'packfile-uris', 'want-ref'].map(a => ({ match: `request-arg:v2 fetch:${a}`, excluded: NEVER_SENDS(`\`${a}\``) })),
808 { match: 'request-arg:v2 ls-refs:unborn', excluded: NEVER_SENDS('`unborn` on ls-refs') },
809 // receive-pack: the reasons it writes on an ng line, and its checks on ply's request
810 { match: 'receive-pack.c:reject:failed to update ref*', space: 'push-outcome', axisTag: 'status' },
811 { match: 'receive-pack.c:reject:hook declined', space: 'push-outcome', axisTag: 'status' },
812 { match: 'receive-pack.c:reject:atomic push failure', space: 'push-outcome', axisTag: 'status' },
813 { match: 'receive-pack.c:reject:unpacker error', space: 'push-outcome', axisTag: 'status' },
814 { match: 'receive-pack.c:reject:non-fast-forward', space: 'push-parity', axisTag: 'config' },
815 { match: 'receive-pack.c:reject:deletion prohibited', space: 'push-parity', axisTag: 'config' },
816 { match: 'receive-pack.c:reject:pre-receive hook declined', space: 'push-parity', axisTag: 'hook' },
817 ...['eof before pack header was fully read', 'protocol error (pack signature mismatch detected)', 'protocol error (pack version unsupported)', 'unknown error in parse_pack_header', 'unable to create temporary object directory', 'unpack-objects abnormal exit', 'index-pack fork failed', 'index-pack abnormal exit'].map(r => ({ match: `receive-pack.c:reject:${r}`, space: 'push-outcome', axisTag: 'unpack' })),
818 { match: 'receive-pack.c:ng:*', space: 'push-outcome', axisTag: 'status' },
819 // every other reason receive-pack writes: its class, judged by real git per command shape, atomic and refs (#64)
820 { match: 'receive-pack.c:reject:*', space: 'push-ng', axisTag: 'reason' },
821 { match: 'receive-pack.c:die:queue_command:*', space: 'push-parity', axisTag: 'command' },
822 { match: 'receive-pack.c:die:read_head_info:protocol error: got an unexpected packet', space: 'push-parity', axisTag: 'command' },
823 { match: 'receive-pack.c:die:read_head_info:protocol error: expected shallow sha*', excluded: NEVER_SENDS('`shallow` on a push') },
824 { match: 'receive-pack.c:die:queue_commands_from_cert:*', excluded: NEVER_SENDS('a push certificate') },
825 { match: 'receive-pack.c:error:parse_pack_header:*', space: 'push-outcome', axisTag: 'unpack' },
826 { match: 'receive-pack.c:error:update:*', space: 'pack-write', axisTag: 'edit' },
827 // upload-pack: its checks on ply's fetch request
828 ...['got_oid', 'get_common_commits', 'do_got_oid'].map(f => ({ match: `upload-pack.c:*:${f}:*`, space: 'fetch-protocol', axisTag: 'have' })),
829 ...['check_non_tip', 'parse_want', 'receive_needs'].map(f => ({ match: `upload-pack.c:*:${f}:*`, space: 'fetch-protocol', axisTag: 'want' })),
830 { match: 'upload-pack.c:die:receive_needs:git upload-pack: filtering capability not negotiated', space: 'fetch-protocol', axisTag: 'filter' },
831 ...['send_shallow_list', 'process_deepen', 'process_deepen_since', 'process_deepen_not'].map(f => ({ match: `upload-pack.c:*:${f}:*`, space: 'fetch-protocol', axisTag: 'deepen' })),
832 { match: 'upload-pack.c:*:process_shallow:*', space: 'fetch-protocol', axisTag: 'cycled' },
833 { match: 'upload-pack.c:*:process_args:*', space: 'fetch-protocol', axisTag: 'cycled' },
834 { match: 'upload-pack.c:*:parse_want_ref:*', excluded: NEVER_SENDS('`want-ref`') },
835 { match: 'upload-pack.c:*:create_pack_file:*', space: 'hostile-server', axisTag: 'case', note: SERVER_INTERNAL },
836 { match: 'upload-pack.c:die:find_symref:*', excluded: 'a server-internal consistency check on its own ref store; never driven by a request' },
837 // connect.c: git's client-side parsing (ply has its own; listed where a space drives the same input)
838 { match: 'connect.c:die:process_capabilities_v2:expected flush after capabilities', space: 'pkt-frame', axisTag: 'position' },
839 { match: 'connect.c:die:get_remote_heads:invalid packet', space: 'pkt-frame', axisTag: 'position' },
840 { match: "connect.c:die:get_remote_heads:protocol error: unexpected '%s'", space: 'pkt-frame', axisTag: 'position' },
841 { match: 'connect.c:die:get_remote_refs:expected flush after ref listing', space: 'pkt-frame', axisTag: 'position' },
842 { match: 'connect.c:die:get_remote_refs:invalid ls-refs response: %s', space: 'pkt-frame', axisTag: 'position' },
843 { match: 'connect.c:error:get_remote_bundle_uri:*', excluded: NEVER_SENDS('the bundle-uri command') },
844 ...['get_protocol', 'enable_keepalive', 'git_tcp_connect_sock', 'git_proxy_connect', 'parse_connect_url', 'git_connect_git', 'push_ssh_options', 'fill_ssh_args', 'git_connect'].map(f => ({ match: `connect.c:*:${f}:*`, excluded: GIT_CONNECT })),
845 // pkt-line.c
846 ...['packet_flush', 'packet_delim', 'packet_response_end', 'packet_flush_gently', 'packet_write_fmt_1', 'packet_write_gently', 'packet_write'].map(f => ({ match: `pkt-line.c:*:${f}:*`, excluded: 'git writing a pkt-line to its own file descriptor failed (a local I/O error): ply builds request bodies in memory' })),
847 { match: 'pkt-line.c:*:packet_read_with_status:protocol error: bad line length*', space: 'pkt-frame', axisTag: 'length' },
848 { match: 'pkt-line.c:*:get_packet_data:the remote end hung up unexpectedly', space: 'pkt-frame', axisTag: 'relation' },
849 { match: 'pkt-line.c:*:get_packet_data:*', space: 'hostile-server', axisTag: 'case' },
850 { match: 'pkt-line.c:die:format_packet:protocol error: impossibly long line', space: 'pkt-frame', axisTag: 'writer' },
851 { match: 'pkt-line.c:die:packet_fwrite:packet write failed - data exceeds max packet size', space: 'pkt-frame', axisTag: 'writer' },
852 { match: 'pkt-line.c:err-pkt:*', space: 'push-outcome', axisTag: 'event' },
853 { match: 'pkt-line.c:die:packet_read_with_status:remote error: %s', space: 'push-outcome', axisTag: 'event' },
854 // sideband.c
855 { match: 'sideband.c:die:demultiplex_sideband:remote error: %s', space: 'push-outcome', axisTag: 'event' },
856 { match: 'sideband.c:die:demultiplex_sideband:%s', space: 'push-outcome', axisTag: 'delivery' },
857 // send-pack.c
858 { match: 'send-pack.c:*:receive_unpack_status:*', space: 'push-outcome', axisTag: 'unpack' },
859 { match: 'send-pack.c:*:receive_status:*', space: 'push-outcome', axisTag: 'status' },
860 { match: 'send-pack.c:*:pack_objects:*', excluded: 'git spawns pack-objects to build the push pack; ply builds it in-process (the pack-write space judges that pack)' },
861 ...['generate_push_cert', 'reject_invalid_nonce', 'option_parse_push_signed'].map(f => ({ match: `send-pack.c:*:${f}:*`, excluded: NEVER_SENDS('a signed push') })),
862 { match: 'send-pack.c:*:get_commons_through_negotiation:*', excluded: 'push negotiation (push.negotiate): ply never negotiates a push; its haves are the ref tips it read' },
863 { match: 'send-pack.c:die:send_pack:the receiving end does not support --signed push', excluded: NEVER_SENDS('a signed push') },
864 { match: 'send-pack.c:*:send_pack:*sideband demultiplexer', excluded: 'git forks a demultiplexer process; ply demultiplexes in-process (pktline.js, the push-outcome framing axis)' },
865 // transport.c
866 ...['get_refs_from_bundle_inner', 'transport_get_remote_bundle_uri', 'die_with_unpushed_submodules', 'transport_push', 'parse_protocol_config', 'transport_get', 'transport_connect', 'git_transport_push'].map(f => ({ match: `transport.c:*:${f}:*`, excluded: 'git transport plumbing ply has no counterpart for (bundles, submodule pushes, protocol config, rsync, connect helpers, a v2 push)' })),
867 { match: 'connect.c:die:die_initial_contact:Could not read from remote repository. Please make sure you have the correct access rights and the reposit', excluded: 'ssh only: ply has no SSH transport since #89 (archived on branch archive/ssh); over HTTP this failure is the server\'s HTTP status' },
868 { match: "receive-pack.c:die:cmd_receive_pack:'%s' does not appear to be a git repository", excluded: 'ssh only: ply has no SSH transport since #89 (archived on branch archive/ssh); over HTTP this failure is the server\'s HTTP status' },
869 { match: 'transport.c:die:transport_check_allowed:*', excluded: 'git\'s protocol allowlist: ply speaks only https/http, chosen by URL scheme (createTransport)' },
870 { match: 'transport.c:die:die_if_server_options:*', excluded: NEVER_SENDS('server options') },
871 { match: 'transport.c:die:set_git_option:*', space: 'fetch-protocol', axisTag: 'deepen' },
872 // http.c
873 { match: 'http.c:die:update_url_from_redirect:*', excluded: 'ply follows redirects only when the caller opts in (followRedirects: initial, #150), and then rebases its own base URL (src/http.ts rebase); git\'s curl-side rewrite is not ported' },
874 { match: 'http.c:*', excluded: GIT_CURL },
875];
Diagnostics4 git calls · 611 ms
CallStatusSizeTime0611 ms
discover200152 B4 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=4
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200145 B4 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=4
git.response.bytes=145
git.response.cache=UPDATING
git.response.duration_ms=4
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=145
git.pkt.payload.max=76
git.ls_refs.count=2
git.ls_refs.head=refs/heads/main
fetchblob:none · deepen 1020038 KiB · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=38434
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=19912563f540228593df0c489082e5e2508e21e4
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=6
git.pkt.data=4
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=38434
git.pkt.payload.max=38339
git.sideband.band1.bytes=38338
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=63
git.pack.bytes=38338
git.pack.ofs_delta=0
git.pack.ref_delta=8
git.pack.chain.max=8
git.pack.trailer=0bc36ab7adf82d3109177f11f1ea93f1ce071f77
git.pack.full=55
Open pack map
fetch20029 KiB604 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=604
git.response.bytes=30026
git.response.cache=MISS
git.response.duration_ms=604
git.fetch.wants=bec2ceb40f2f12e04cf7e198a808061d0d8efd2b
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=30026
git.pkt.payload.max=30005
git.sideband.band1.bytes=30004
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/ply.git
Ref
refs/heads/main
Commit
19912563f540228593df0c489082e5e2508e21e4
cf-ray
a5e1e395cc9ed96e
Request
e07d2966…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format