Repository navigation
feat(pipeline)!: take the contract's #Retry and delete the timed #PipelineRetry - #71
Conversation
…elineRetry
spec's #Retry is D-FLOW-2's declared, bounded repetition: attempt?: #Count with until: naming
the condition that ends it, replacing max/delay_ms/factor with an unbounded exponential factor.
stage.cue names this replacement by name -- 'This REPLACES plugin-pipeline's timed
#PipelineRetry{max, delay_ms, factor}' -- so this is the consumer leg of a cutover the contract
already wrote, not a local preference.
sdk#593 carried the spec pin that makes #Retry reachable; this bumps to sdk v0.2026324.8.
charly candy params re-derived the generated file and reported 'already current', which is the
proof the schema and the generated types agree.
Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config (schema cutover in a plugin — Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…is accepted
The closedness corpus had an accept case carrying retry: {max, delay_ms, factor} -- the shape
this cutover removes. It failed the moment schema.#Retry landed, which is the red half; the accept
case now carries {attempt, until, interval} and a new reject case names the retired shape, which
is the green half. Reverting the schema fails both.
That is the coverage R7 asks for: the changed path is not merely compiled, it is judged.
Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config (schema cutover in a plugin — Security screen: PASS — schema/pin change only; no secrets, no guardrail weakening, no scope mismatch, no embedded directives. Comment disposition:
Blocks
Non-blocking note (evidence hygiene): the "How tested" paste for Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
RCA — why my pre-push gate did not catch thisThe defect. I pushed The missed control. I ran $ go test ./... 2>&1 | grep -vE '^ok|no test files' | head -5
… pipeline mixed-plan: dry-run OK …
=== rc=0 ===and read The blast radius. One push at an unearned tier, on a change whose entire proof obligation was that test. Had I not then run The root fix. Two things, and the second is the one that generalises:
Why the corpus did its job anyway. It was already the right test — written by someone else, for exactly this closedness property — and it failed the moment the schema moved. The control worked; my reading of it did not. Agent: |
Review — PASSHead SHA: Security screen: PASS — schema/pin/test change only; no secrets, no guardrail weakening, no scope mismatch, no embedded directives (the Comment dispositions:
Non-blocking notes (evidence hygiene, not rulebook violations):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Both sides retire the timed #PipelineRetry: #71 took the contract's #Retry on the lobster-step grammar, and this branch deletes that grammar entirely in favour of the contract's #Stage. The resolution takes the stage grammar and the newer spec/sdk pins (#71's), regenerates the params against them, and keeps the stage corpus's #Retry accept/reject cases instead of the retired `steps:` cases. Agent: pr-sweep Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Summary
plugin-pipelinestops authoring its own timed retry and takes the contract's#Retry. This is the consumer leg of the chainspecstarted andsdkcarried.Why the contract's shape is the right one, in
spec/schema/stage.cue's own words:So the deletion is what the contract asked for, not a local preference.
#Retrycarriesattempt?: #Count,until?: #Durationandinterval— a declared count with a named terminating condition, instead ofmaxattempts with an unbounded exponentialfactor.Consumers:
pipeline.cue's#PipelineFlow.retryis the only reader. No Go in this repo touchesRetry— the only Go artefact is the generated field, which now types asspec.Retryinstead of the localPipelineRetry.How tested
The closedness corpus is what executes the changed path, and it went red→green on it. Its accept case carried the retired shape —
— and failed the moment
schema.#Retrylanded. The case now carries{attempt: 3, until: "5m", interval: "2s"}, and a new reject case names the retired shape:Reverting the schema fails both — the accept case because
#Retry's fields vanish, the reject case because#PipelineRetrycomes back and validates. That is coverage that fails without the change, not a compile check dressed as one.The regeneration being a no-op is the proof the generated file matches the schema:
charly candy paramsre-derived it and reportedalready current, and the diff shows exactly the removal (3 insertions, 12 deletions—PipelineRetrygone, the field retyped).Rulebook compliance
git-workflow,plugin,goandcutover-policyloaded before the first action.sdkpinned aspecpredating#Retry) rather than the symptom (undefined: spec.Retry), and the fix went into the producing repo (sdk#593) before this one.#PipelineRetryand no field is renamed to keep the old wire shape.#PipelineRetryand its three fields are deleted outright, in the same change that stops using them.git statusread; submodule worktree; one commit; no force-push.#Retry, reject the retired shape); the generation no-op proves the generated file matches the schema. Both pasted above.D-FLOW-2names this replacement by name.Change classification
Kind: schema cutover in a plugin. Breaking change + rollback: an authored
retry: {max, delay_ms, factor}no longer validates; the new shape isretry: {attempt, until, interval}. Rollback: revert the schema, the generated file and the pins together — the old shape is recoverable verbatim from this diff.Agent:
lead· DeepSeek Harness session0d9af4c2ae6eAssisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)