livery.workshop._diagnostics¶
livery.workshop._diagnostics ¶
Diagnostic bundles: the classifier's raw inputs, kept for reading.
Every non-merged watch outcome writes one bundle as a row of a local series of the state store (livery.git): in the checkout's git directory, never in its working tree (it would get committed) and never on the forge (it would get published). The premise: a predicate vector nobody has seen before IS an uncovered case, findable by reading bundles instead of waiting for it to bite again.
Each section guards itself, so a token that cannot read one still yields the rest, and the section's own error is recorded as data; for a scope-poor token that error is itself the diagnosis. Structural fields only, no bodies, no tokens: a bundle is shareable.
Functions:
| Name | Description |
|---|---|
gather_bundle |
The bundle's content for one verdict on one branch. |
record |
Write one bundle as a row of the local series in root's checkout. |
Attributes:
| Name | Type | Description |
|---|---|---|
SCHEMA |
|
|
KEEP |
|
|
SERIES |
|
SERIES
module-attribute
¶
gather_bundle ¶
The bundle's content for one verdict on one branch.
Source code in packages/workshop/src/livery/workshop/_diagnostics.py
record ¶
Write one bundle as a row of the local series in root's checkout.
Returns the row's name and "", or "" and why nothing was
written. Never raises: the verdict being recorded is the thing
worth seeing, and a failed recording must not take it down.