Repository navigation
fix(refs): a transient git fault class was spelled out of the vocabulary, so it was never retried - #285
Conversation
…ary, so it was never retried The classifier matched `http/2` — with a slash — while git writes `Error in the HTTP2 framing layer` — without one. The two never met, so a transient transport fault was classified PERMANENT, `runGitOp` broke out of its retry loop at attempt 0, and one fault aborted a whole `charly marketplace generate` at entity 253 of ~1400 (opencharly/marketplace run 40922093306, attempt 1). The vocabulary is now a table of fault CLASSES, and the class names are the key a RECORDED fixture table is keyed by: refs/git_transient_signatures_test.go holds one observed stderr string per class, with where it was seen, and the tests assert both directions — every recorded fault is retried, every recorded permanent failure fails fast with exactly one attempt, and every class in the table is backed by a record. A class added without a record behind it fails the test, so the list can no longer miss a class again. AGENTS.md's build section now names the toolchain the pinned linter must run under: `golangci-lint` v2.13.2 reads only export-data version 4, and go1.27's standard library writes version 5, so a newer local toolchain fails the lint in an unrelated package — an environment mismatch a contributor must be able to recognise. Closes #284 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
|
STATUS — the fix for #284 is open; the gate is green on the committed tree. What is done. The transient-fault vocabulary in What was run. The repo's own CI gate on the committed tree: build, test, gofmt and Next. The org validator's verdict on this head. Every finding it raises is fixed in one appended commit, never filed away. Agent: charly · session |
Review — PASSI re-derived every claim in the body against the current diff and commit, and traced the classifier, the retry loop, and each recorded fixture by hand. Per-file analysis
Body honesty
Security / cleanliness
Comments
All claims are reproduced by the diff, the fix is the classification decision itself, and the coverage fails without the change. No blocking findings. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
RESOLVED — landed, tagged, and the issue is closed by hand. The verdict. The org validator's report is The merge. Squash commit The issue. What this unblocks. The corpus's regeneration (the consumer that tripped over the defect) is no longer exposed to a transient transport fault that was classified permanent. The umbrella's Agent: charly · session |
Summary
What this changes.
refs/git.go's transient-fault classifier — the vocabulary that decides whether a failed git subprocess is retried or given up on — missed an entire fault class, and the miss was invisible until a transient transport fault aborted a corpus regeneration at entity 253 of ~1400.The classifier carried the pattern
http/2— with a slash. Git writesError in the HTTP2 framing layer— without one. The two never met, so curl's HTTP/2 framing fault was classified permanent:runGitOpbroke out of its bounded retry at attempt 0, and the whole operation failed.Head
4f6b5b9f8aeba4c3273750ff3c556b0a134ad7f7— 4 files changed, +393 -11.What the fix is. The one hand-written pattern becomes a table of fault classes (
gitOpTransientSignatures), and the class names are the key a recorded fixture table is keyed by:refs/git_transient_signatures_test.go— new, +226 — the RECORD: one observed stderr string per fault class, with where it was seen, and the BEHAVIOUR the vocabulary must produce.refs/git_transient_classes_test.go— new, +84 — the accountability half: every recorded fault is classified under its own class, every recorded permanent failure is not, every class in the production table is backed by a record, and the failure names the class it carries.refs/git.go— +75 -11 — the class table, the classifiertransientFaultClass, the retry decision, and the class named in the returned error.AGENTS.md— +8 -0 — the build section now names the toolchain the pinned linter must run under.The behavioural file references no new production symbol — only
runGitOp, which has existed unchanged since the runner was introduced — so it runs against any revision ofrefs/git.go. That is what makes it the red proof, and it is why the accountability file, which necessarily asserts the new vocabulary's internals, is a separate file.The widening is bounded on the other side: the recorded permanent failures — a missing repository, a 403, a 404, a credential challenge — keep failing fast with exactly ONE request (the run is pasted below).
Why it matters here. The corpus regeneration in
opencharly/marketplace(run 40922093306, attempt 1, 2026-10-29T17:36:44Z) died on exactly this string, and with it the job that owns the corpus, its deployment, and the auto-merge arm. #284 carries the full RCA.How tested
The R7 red proof — the behavioural coverage FAILS without the change. The behavioural test file was run against the PRE-FIX production code (
origin/main'srefs/git.go), with the accountability file moved aside because it asserts the new vocabulary's internals. Exactly one recorded fault turns red, and it is the HTTP/2 framing fault:The same coverage is GREEN against the changed code, together with the accountability half:
The change-class gate — this repo's own CI, on the committed tree.
opencharly/spec's.github/workflows/ci.ymlruns build, test, gofmt and golangci-lint; all four ran here, on commit4f6b5b9:The toolchain is named because it is part of the gate:
golangci-lintv2.13.2 embeds a type-checker that reads only export-data version 4, and go1.27's standard library writes version 5, so a newer local toolchain fails the lint in an unrelated package withexport data version 5 is greater than maximum supported version 4.AGENTS.md's build section now says so.The R5 sweep, claim-keyed — the retired symbol survives nowhere.
The head this body describes.
Rulebook compliance
/charly-internals:go(the module's Go work) and this repo's ownAGENTS.md, which adds the repo-specific rules on top of the umbrella rulebook. The change is Go source underrefs/plus one prose section, so that pair is the whole admission set.AGENTS.md's build section. Zero warnings is the only pass, and the gate above reports 0 issues.gitOpTransientRepattern is replaced by one table and one classifier, and the recorded fixture table is keyed by that same class name, so the vocabulary and its record share one key rather than two lists that can drift.git statuswas stated before the first edit and the tree was clean; the branchfeat/transient-signature-284is offorigin/main; the red proof restored the committed tree (git checkout -- refs/git.go) and the tree was clean before the push; no amend, no force-push, no hook bypass, and no direct push tomain.runGitOpruns, driven through a fakegitonPATH, so the retry decision is measured by the invocation count rather than asserted about.opencharly/specis a Go library module, not thecharlybinary, and the diff touches no packaging.disposable: truetarget and no deployment surface: itscharly.yml'sdisposable-skillnode is askill:routing node, not a deployment target, and the repo carries no.check/directory, so there is no bed to realize.Change classification
Change class. A runtime change in a Go library module: the retry decision of
runGitOp, the code path every remote-ref resolution in the org takes.Impact. The transient-fault vocabulary widens: git's slashless
HTTP2spelling, and the other twelve recorded classes, are retried instead of given up on. The permanent classes are unchanged — a missing repository, a 403, a 404 and a credential challenge still fail fast with exactly one attempt.Breaking change + rollback: none — no exported symbol, wire shape, schema key or CLI surface changes;
gitOpTransientRewas unexported and is replaced by unexported equivalents, and the only observable difference in a failure message is the added(transient network fault: <class>)suffix. The rollback is this change's revert.Downstream.
opencharly/marketplace— the consumer that tripped over the defect — resolves through the charly binary that vendors this module, so it picks the fix up when the module's tag is consumed.Filed issues
None filed by this change. Every finding this change's own gate raised is fixed in it. The defect this PR fixes was filed as #284 by the RCA that found it — from the red gate of
opencharly/marketplace's corpus regeneration — and this PR closes it.Agent: charly · session
ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)