Skip to content

feat(sdk): workflowkit (lobster IR helpers + lowering), nested plan desugar/resugar, systemd timer - #331

Closed
aitrawog wants to merge 6 commits into
mainfrom
feat/workflow-ir
Closed

aitrawog wants to merge 6 commits into
mainfrom
feat/workflow-ir

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Wave W1 of the workflow-IR work: the sdk half of making kind:pipeline speak lobster
syntax while executing the full charly plugin grammar.

Tracks opencharly/charly#758 (the workflow-IR epic) — this is wave W1 of its producer-first chain.

  • sdk/workflowkit (NEW, 8 files) — the kind-blind IR helpers the lobster engine and the
    lowering both build on:
    expr.go (lobster $ref grammar over expr-lang/expr + gjson), template.go
    (${arg} + LOBSTER_ARG_*), args.go (ResolveArgs/ResolveTaskDir), closure.go
    (DFS cycle path), validate.go (ValidatePipeline), lower.go (Lower),
    cron.go (CronToOnCalendar), graph.go (mermaid/dot/ascii), plus 8 test files and
    6 .golden fixtures.
  • loaderkit/parse.go — desugarNestedPlans: a recursive, kind-blind desugar of any nested
    plan: sequence of mappings, stopping at member-kind keys.
  • deploykit — resugarPlan → exported ResugarPlan; new ResugarNested(node, primaries)
    (the recursive inverse); SystemdUnitConfig gains Type/OmitStop; new
    systemd_timer.go with GenerateSystemdTimer + GenerateTimerService.
  • kit — enableUnit/reloadDaemon exported as EnableUnit/ReloadDaemon, internal
    callers repointed.
  • Tests outside workflowkit — deploykit/systemd_test.go plus its four
    deploykit/testdata/*.golden (systemd-oneshot.service, systemd-unit.service,
    systemd-timer.service, systemd-timer.timer), and loaderkit/nested_desugar_test.go.
  • go.mod / go.sum — exactly five direct requires change: spec v0.2026273.203 →
    v0.2026276.0 (the W0 tag); tidwall/gjson v1.19.0 promoted to direct; and three
    additions, each with an importing file in this diff — expr-lang/expr v1.17.8 (expr.go),
    robfig/cron/v3 v3.0.1 (cron.go), emicklei/dot v1.11.0 (graph.go). go mod tidy -diff
    is empty.

Three decisions worth naming, each taken from a live read rather than an assumption:

  1. The systemd timer lives in deploykit, not in the new plugin. GenerateSystemdUnit
    emits Type=simple with a conditional ExecStop, and its argv escaper is unexported.
    A timer-triggered job needs a oneshot with no stop. Putting GenerateSystemdTimer in
    deploykit reuses that escaper without exporting an escaping primitive into the public
    API
    .
  2. The lowered charly.yml flat-imports the project's charly.yml BY FILE PATH. The
    loader reads a flat (non-@) import entry straight with os.ReadFile and never joins it
    against a directory, so a flat import pointing at a directory silently fails; only an
    @-namespaced entry is stat'ed and joined with the unified file name. A file path is the
    one form that works. The generated file carries that reasoning as a comment.
  3. The lowering emits --output, never plugin-task's internal --json. --json is
    plugin-task's user-facing listing shape; --output (added by W3) is the final step's
    raw stdout, which is what lobster's $id.json must parse. W1's own goldens assert
    generated text only, so no live flag is needed at this gate.

Lower produces the env: {REF_n: $id.path} + -p REF_n="$REF_n" pair so a lobster ref
reaches the charly step shell-safely, and quotes charly: argv with spec.ShellQuote
(no hand-rolled quoting).

Review round 1 — BLOCK, all four findings fixed in ONE commit (f8ab8cc)

The first verdict blocked. Every finding is addressed in a single commit; none was re-argued.

  1. A real bug in this wave's core deliverable. validateStepBase listed steps among the
    mutually-exclusive execArms, while spec.PipelineStepBase groups steps under
    "--- for_each companions (meaningful only alongside for_each) ---" — it is the for_each body,
    not an arm. Every valid for_each step therefore set two arms and was rejected with
    2 execution arms set (for_each, steps), i.e. the validator rejected every valid for_each
    pipeline. The PR's own tests missed it because the one for_each case asserted with
    strings.Contains, which masked the spurious error. Fix: steps is removed from execArms and
    moved into the existing stray-companion rule (guarded by v.forEach == "" beside
    item_var/index_var/batch_size/pause_ms), so a bare steps: with no for_each is still
    rejected — one rule for all five companions. parallel is untouched (its own arm via
    parallelBranches > 0).
  2. Dead code dropped. cron.go's const cronStarBit = 1 << 63 was referenced by nothing;
    bitValues reconstructs the bit-set from the field width, so it had no use site.
  3. go.mod drift removed. cenkalti/backoff/v4 and mvdan.cc/sh/v3 were direct requires with no
    importing file in the diff. Their consumers are W4 (plugin-lobster), which adds them together
    with their imports. go mod tidy -diff is now empty; 10 stale go.sum lines went with them.
  4. This body's inventory was corrected — it had claimed "workflowkit … 9 files … plus 5 test
    files"; the diff adds 8 source files and 8 test files (6 goldens, which was right).

New test TestValidatePipelineAcceptsForEach (3 sub-tests: bare for_each; for_each with every
companion; for_each whose sub-steps carry arms of their own). It asserts zero errors, not a
substring. It FAILED against 641f074 with exactly the spurious-arm error:

=== RUN   TestValidatePipelineAcceptsForEach/bare_for_each
    validate_test.go:61: ValidatePipeline rejected a valid bare for_each pipeline:
      step "fan": 2 execution arms set (for_each, steps) — set exactly one of
      run/pipeline/workflow/parallel/for_each/input/steps/plan/charly/approval
--- FAIL: TestValidatePipelineAcceptsForEach (0.00s)

and passes at f8ab8cc, together with the pre-existing TestValidatePipelineRules table including
its new steps_without_for_each case.

Review round 2 — two A1 body findings, both fixed here

Round 2 blocked on the body alone; it re-derived all four round-1 findings against f8ab8cc and
marked every one fixed (steps out of execArms + the zero-error test; cronStarBit gone;
the two unimported requires gone; the counts reconciled), and recorded placement: CORRECT. Both
round-2 findings were mine and are corrected in this revision:

  1. This Summary's go.mod bullet was stale against the commit it describes — it still listed
    cenkalti/backoff/v4 and mvdan.cc/sh/v3 as added, the two the round-1 fix removed. It now
    names exactly the five requires that change.
  2. The Summary under-accounted the diff: it never named deploykit/systemd_test.go, its four
    deploykit/testdata/*.golden, or loaderkit/nested_desugar_test.go. All are now listed.

Full file accounting — 35 files, +2881/-27:

group files
workflowkit 8 source + 8 _test.go + 6 .golden = 22
deploykit deploy_nodeform.go, systemd_unit.go (M); systemd_timer.go, systemd_test.go (A); 4 testdata/*.golden (A) = 8
loaderkit parse.go (M), nested_desugar_test.go (A) = 2
kit walk.go (M) = 1
module go.mod, go.sum (M) = 2

Review round 3 — BLOCK on the merged head 7bfa61d: two CODE findings

Placement re-confirmed CORRECT; every round-1 and round-2 finding re-derived as fixed.
Round 3 raised two code findings, both in workflowkit/cron.go, and both fixed in ONE commit
(a5b81bf):

  1. The doc example stated an output the code cannot produce. The comment claimed
    "*/15 9-17 * * Mon-Fri" -> "Mon,Tue,Wed,Thu,Fri *-*-* 09..17:0/15:00". padTimeField zero-pads
    every numeric component of a rendered field, so the minute step start is 00, not 0 — and the
    file's own table already proved the convention ({"*/5 * * * *", "*-*-* *:00/05:00"}). The
    example also padded the hours (09..17) while leaving the minute step unpadded: internally
    inconsistent, not merely stale. Verified by running the function, not by reasoning:

    "*/15 9-17 * * Mon-Fri"  -> "Mon,Tue,Wed,Thu,Fri *-*-* 09..17:00/15:00" err=<nil>
    "*/5 * * * *"            -> "*-*-* *:00/05:00"                        err=<nil>
    

    The code was right and the comment was wrong, so the comment was corrected and an
    exact-string table row now pins the documented example.

  2. A silently WRONG lowering at cron's divergence from systemd. 0 3 1 * 1 lowered to
    Mon *-*-01 03:00:00 — a restricted day-of-month and a restricted day-of-week on one
    OnCalendar= line. That is wrong semantics: robfig/cron — the parser this function validates
    through — fires when EITHER field matches
    when both are restricted, while systemd's
    OnCalendar= requires BOTH
    . A single line cannot express cron's OR, so the output was
    correct-looking and wrong, and the doc's blanket claim that "every cron form lowers correctly"
    was false exactly there.

    Fix: reject with a descriptive diagnostic, not a second line and not a chosen
    interpretation. CronToOnCalendar returns a single string and GenerateSystemdTimer
    (deploykit/systemd_timer.go:63) writes exactly one OnCalendar=%s line by documented
    contract, so emitting two alternatives would change both APIs — out of scope for this wave. The
    guard is if !domAll && !dowAll (domAll = all 31 days, dowAll = all 7), so it fires only
    when both fields are restricted; an unrestricted field is not a restriction, and the
    single-restriction forms are pinned byte-for-byte in the table:

    "0 3 1 * *"  -> "*-*-01 03:00:00"        (DOM only — unchanged)
    "0 3 * * 1"  -> "Mon *-*-* 03:00:00"     (DOW only — unchanged)
    "0 3 1 * 1"  -> ERROR (the message names both values and the cause)
    

    New test TestCronToOnCalendarRejectsRestrictedDomAndDow — asserts an error, that it quotes
    the expression, names both field values, and explains the either/both divergence with the
    "split it into two schedules" remedy. It FAILED against 7bfa61d:

    === RUN   TestCronToOnCalendarRejectsRestrictedDomAndDow
        cron_test.go:62: CronToOnCalendar("0 3 1 * 1") = "Mon *-*-01 03:00:00" with no error:
          cron ORs day-of-month/day-of-week while systemd ANDs them, so a single OnCalendar=
          cannot express this
    --- FAIL: TestCronToOnCalendarRejectsRestrictedDomAndDow (0.00s)
    

    and passes at a5b81bf, with the full TestCronToOnCalendar table (19 rows) green.

    The doc's blanket claim is gone, replaced by the three working examples plus an explicit
    paragraph naming the rejected form, why it is rejected, and that single-restriction forms are
    unaffected.

No in-repo caller is affected: the only non-test references to CronToOnCalendar are doc
references in deploykit/systemd_timer.go, whose contract (it receives a pre-resolved
OnCalendar string) already places the resolution — and therefore the possible error — at the
caller, which is W4's.

Review round 4 — BLOCK on a5b81bf: ONE finding, a wrong comment

Everything else re-derived as fixed. The round-4 verdict re-derived all four round-1 findings,
both round-2 A1 findings, and all four round-3 findings as fixed at a5b81bf; verified the
+2881/-27 accounting as truthful against the 35 file headers; and confirmed the
analysed on a live system tier as honest, not inflated. Security screen PASS, placement
CORRECT.

The one block was R1 — comment ↔ reality, deploykit/systemd_test.go:12, which read:

// systemd_unit_test.go / systemd_timer_test.go share this `-update` switch: ...

Both named files were wrong, and I verified it against the tree rather than taking it on trust:

  • systemd_timer_test.go does not exist anywhere.
  • systemd_unit_test.go does exist but is pre-existing (present in origin/main, absent from
    this PR's diff) and references updateGoldens / checkGolden / golden / testdata
    nowhere — so it does not share the switch either.
  • updateGoldens is declared and used only in deploykit/systemd_test.go, which checks exactly
    four goldens. grep -rn 'updateGoldens\|checkGolden' deploykit/ now returns eight hits, all in
    systemd_test.go
    .

Fixed in 0593f7c — a three-line comment change and nothing else:

// The unit and timer golden tests both live in this file and share this `-update` switch:
// the emitted text is what the operator reads and what systemd parses, so a change to it
// must be a reviewable diff, never a silent drift.

This is the second consecutive round blocked on the same defect class, and it is worth naming
because it is where this wave's remaining risk lives: round 3 blocked on a cron.go comment
asserting an output the code could not produce; round 4 blocks on a systemd_test.go comment
asserting files that do not exist. Both are comments asserting state that does not hold — and a
reader believes them. In an otherwise-clean 35-file wave, the residue was in the prose, not the
code. Every comment in this diff that names a file, symbol, or output has now been checked against
the tree.

How tested — final head 0593f7c

main advanced while this PR was open (PR #332, which also touches loaderkit/parse.go), so the
branch was brought up to date with gh pr update-branch (never a force-push), producing the merge
commit 7bfa61d. Because the two changes share loaderkit/parse.go, the gate below was re-run on
the merged tree
, not carried over from the pre-merge head. The round-3 fix (a5b81bf) then
touched only workflowkit/cron.go and workflowkit/cron_test.go, and the round-4 fix (0593f7c)
only a three-line comment in deploykit/systemd_test.go — so the diff against the updated main
remains 35 files, +2881/-27, the same 35-file list (+60 lines from the round-3 fix; round 4
changed no line counts).

Ran exactly this repo's CI gate on the final committed tree
(GOWORK=off GOTMPDIR=~/.cache/go-tmp TMPDIR=/tmp/cs):

$ gofmt -l .
$ echo rc=$?
rc=0
$ go vet ./...
$ echo rc=$?
rc=0
$ go test ./... -count=1
ok  	github.com/opencharly/sdk	0.207s
ok  	github.com/opencharly/sdk/agentkit	0.915s
ok  	github.com/opencharly/sdk/buildkit	0.014s
ok  	github.com/opencharly/sdk/candywalk	0.015s
ok  	github.com/opencharly/sdk/charlylib	0.014s
ok  	github.com/opencharly/sdk/checkkit	0.008s
ok  	github.com/opencharly/sdk/cmd/charly-lib-gen	0.005s
ok  	github.com/opencharly/sdk/deploykit	5.094s
ok  	github.com/opencharly/sdk/enginekit	0.010s
ok  	github.com/opencharly/sdk/kit	11.745s
ok  	github.com/opencharly/sdk/llmkit	1.885s
ok  	github.com/opencharly/sdk/loaderkit	0.929s
ok  	github.com/opencharly/sdk/packagekit	0.038s
ok  	github.com/opencharly/sdk/vmshared	0.136s
ok  	github.com/opencharly/sdk/workflowkit	0.010s
$ go mod tidy -diff
$ echo rc=$?
rc=0

The three cron tests on this head: TestCronToOnCalendar, TestCronToOnCalendarRejectsBadInput,
and the new TestCronToOnCalendarRejectsRestrictedDomAndDow — all PASS. The Lower goldens are
TestLowerGolden, TestLowerCharlyStep, TestLowerNestedPlan, TestLowerRejectsInvalid. The repo
also carries a cross-compile job; it was re-run on this head too — linux/{amd64,arm64,arm,386}
with CGO_ENABLED=0 → OK on all four. go mod tidy -diff is empty on this head (rc=0).

R10 — the assembled bed is CARRIED to W6, and this is NOT a waiver. This repo is a pure
library with no charly.yml; the beds that gate it (B1/B2/B3/B5) compose plugin-lobster and
the plugin-pipeline cutover, neither of which exists until W4/W6. The bed therefore
cannot run against this tag, and W6 must paste B1/B2/B3/B5 against it; if anything there
fails, the failure reopens this scope rather than W6's. No library waiver is claimed.

Rulebook compliance

Every rule R0–R10 is answered below; none is left implicit.

  • R0 — Skills first. The dispatcher-selected skills were loaded before the first action, and
    charly's own rulebook (charly/AGENTS.md) was read for the R-rules this section answers.
  • R1 — RCA every anomaly. Every non-obvious decision above was read from live source
    (systemd_unit.go, walk.go, cli.go, migrations.cue), not inferred. The two round-3
    findings were both R1 items and are fixed rather than narrated: the cron.go example that
    stated an output the code cannot produce, and the DOM+DOW lowering that silently encoded
    systemd's AND where cron means OR.
  • R2 — Finish the whole cutover. Within sdk the cutover is complete — the moved helpers exist
    exactly once, here. The duplicate copies live in plugin-task, a different repository; their
    deletion is W3, a named, sequenced PR that is blocked on this tag and cannot land before it.
    That is a cross-repo producer/consumer sequence, not a deferral, a partial rename, or a hidden
    follow-up inside this repo.
  • R3 — No duplication. resugarPlan is exported and its caller repointed rather than
    duplicated; the desugar/resugar pair is one implementation each. Lower and the validator are the
    single implementation of their behaviour, consumed by more than one plugin.
  • R4 — No workarounds. No sleeps, blind retries, suppressions, or fallback branches. The
    import: constraint was solved by using the loader's real contract, not by writing around it.
    The DOM+DOW case is rejected with a diagnostic rather than silently mis-lowered — a loud
    failure, not a workaround.
  • R4a — Fix the product first; documentation never routes around a defect. Applied in both
    directions on the round-3 findings, by first establishing which side holds the intent:
    the 0/15 example was a prose error (the code's 00/15 padding is intended and its own
    table proves it), so the comment was corrected; the DOM+DOW lowering was a code defect, so
    the code was fixed and the doc's blanket "every cron form lowers correctly" claim was
    narrowed to match. No doc was edited to hide a bug.
  • R5 — Delete legacy completely. The unexported helpers were renamed to exported ones, not
    shadowed by copies; the retired forms are removed in the same change, not left alongside.
  • R6 — Git safety. No force-push, no hook bypass, no direct push to main. The BEHIND branch
    was recovered with gh pr update-branch, never a force-push.
  • R8 — Preserve emitted artifacts. Every user-visible output this change produces — the
    lowered charly.yml, the workflow.lobster text, and the systemd unit/timer text — is pinned by
    an exact golden file (TestLowerGolden, TestLowerCharlyStep, TestLowerNestedPlan, and the
    four deploykit/testdata/*.golden), so a change in emitted bytes fails the gate rather than
    shipping. The stronger check, running the generated charly.yml through
    charly box validate, is a bed step in B1's pipeline-emit-lowering and therefore belongs to the
    carried bed (see R10), not to this repo's unit gate; this PR does not claim it.
  • R9 — Binary equals source. N/A — reason: sdk is a pure Go library with no charly.yml
    and no binary; this change builds and installs nothing, so there is no worktree-local binary whose
    version or gitlink consistency could drift.
  • R10 — Fresh disposable proof. Stated above, with the carry named: the assembled bed is carried
    to W6 by name, and W6 must paste B1/B2/B3/B5 against this tag.

R3 is transiently open, deliberately. plugin-task still holds its own copies of
resolveParams/resolveTaskDir/expandVars/closure. Deleting them is W3's step, in a
different repo; until W3 lands the two copies coexist by design, not by oversight.

Change classification

  • Change class: library (kind-blind SDK helpers) — additive.
  • Verification gate: the three CI commands above, run on the final tree.
  • Attribution tier: analysed on a live system — the changed code paths (the lowering,
    the expression grammar, the desugar/resugar pair, the timer generator) are executed live by
    the unit and golden tests with retained output, but the full R10 bed did not pass and is
    carried to W6 as stated above.

Agent: workflow-ir · session session_01MSxu48GQwoQuBkfwQrkntk
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Adds sdk/workflowkit — the engine-agnostic workflow IR library the workflow
engine plugins build on:

- expr.go      the lobster expression grammar: the $ref rewrite + an expr-lang
               AST patcher that rejects everything lobster cannot express.
- template.go  ${arg} substitution + the LOBSTER_ARG_* naming.
- args.go      ResolveArgs / ResolveTaskDir / MergedEnv, moved from plugin-task.
- closure.go   the depends_on closure, moved from plugin-task (cycles named).
- validate.go  ValidatePipeline: exec-arm XOR, co-fields, unique ids incl.
               branches, earlier-step-only refs, the expression grammar,
               item_var != index_var.
- lower.go     Lower: the pipeline -> (.lobster, generated charly.yml) pair.
- cron.go      CronToOnCalendar, the ONE cron -> systemd conversion.
- graph.go     mermaid / dot / ascii renderings of the dataflow graph.

Also:
- loaderkit: desugarNestedPlans, the kind-blind desugar of nested plan: lists.
- deploykit:  ResugarPlan exported + ResugarNested, its recursive inverse; the
              deploy-state writer resugars nested plans through it.

Assisted-by: Claude Code Anthropic Claude Opus 4.5 (fully tested and validated)
…l helpers

The workflow lowering needs a scheduled engine run: a systemd user .timer plus the
ONESHOT service it activates. deploykit gains systemd_timer.go (GenerateSystemdTimer
/ GenerateTimerService), and GenerateSystemdUnit gains Type (oneshot) and OmitStop —
a run-to-completion job has neither a long-lived process to stop nor a reason to be
restarted on failure, so a oneshot service defaults to Restart=no with no RestartSec.

kit.EnableUnit / kit.ReloadDaemon are exported and the deployment walk's own call
sites repointed, so the workflow path drives systemd through the ONE call site.

Tests: golden unit/timer text (deploykit/testdata/*.golden), the table tests ported
from upstream lobster's own expression tests, the cron->OnCalendar table, the nested
plan desugar (incl. an inline entity's plan), and a ResugarNested round-trip.

go.mod: spec v0.2026276.0, gjson promoted to direct, and the workflow deps declared
direct (backoff/v4, expr-lang/expr, robfig/cron/v3, mvdan.cc/sh/v3, emicklei/dot).

Assisted-by: Claude Code Anthropic Claude Opus 4.5 (fully tested and validated)
@aitrawog

aitrawog commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

OWNING — workflow-ir owns this scope (wave W1 of the workflow-IR work).

What this blocks, and the unblock order. This PR is the producer leg for the whole
downstream chain; the consumer legs cannot start until its tag exists:

sdk#331 (workflowkit) → tag → plugin-task (W3, repoints to workflowkit and deletes
its own copies) → plugin-lobster (W4, the engine) → plugin-migrate (W5) →
plugin-pipeline (W6, the cutover — its bed composes W4+W3) → charly (W7, must NOT land
before W6) → consumers → marketplace/docs (W9) → umbrella sync (W10).

W2 (plugin-command) and W3 (plugin-task) are the immediate dependents.

R3 is transiently open by design, not oversight. plugin-task still holds its own copies
of resolveParams/resolveTaskDir/expandVars/closure; deleting them is W3's step, in a
different repo, and cannot be done from this PR.

R10 is carried to W6, and is not a waiver. This repo is a pure library with no
charly.yml; its gating beds (B1/B2/B3/B5) compose plugin-lobster and the plugin-pipeline
cutover, which do not exist until W4/W6 — so the bed cannot run against this tag. W6 must
paste B1/B2/B3/B5 against it, and any failure there reopens THIS scope.

Tracking issue: charly#758.

Agent: workflow-ir · session session_01MSxu48GQwoQuBkfwQrkntk
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

…nimported deps

Three findings from the sdk#331 review.

1. The exec-arm XOR counted `steps:` as an arm AND the co-field rule required it
   alongside `for_each`, so every valid for_each step set TWO arms and was rejected
   with "2 execution arms set (for_each, steps)". `steps:` is the for_each BODY, not an
   arm — `spec` groups it with the other for_each companions ("--- for_each companions
   (meaningful only alongside for_each) ---", PipelineStepBase). It is now out of
   `execArms` entirely rather than conditionally skipped, which also drops it from the
   "set exactly one of ..." hint, and a bare `steps:` with no `for_each` is reported by
   the stray-companion rule beside item_var/index_var/batch_size/pause_ms. `parallel` is
   unaffected: it is its own arm via `parallelBranches > 0`.

   The bug was uncaught because the only for_each case asserted with strings.Contains,
   where a stray arm error passes. TestValidatePipelineAcceptsForEach asserts ZERO
   errors instead (bare for_each, for_each with every companion, for_each with a
   sub-step arm of its own) and failed on all three sub-tests before this fix.

2. cron.go declared `const cronStarBit = 1 << 63` with no reference anywhere in the
   package (`bitValues` uses `uint64(1) << uint(v)`); removed.

3. go.mod listed `cenkalti/backoff/v4` and `mvdan.cc/sh/v3` as direct requires while no
   package imports either — `go mod tidy` drift. Both are removed; their consumers are
   W4 (plugin-lobster), which adds them with its imports. `go mod tidy` is now a no-op
   (`go mod tidy -diff` is empty).

Gate: gofmt -l . (clean), go vet ./..., go test ./... -count=1 (all 15 packages ok),
plus the CI cross-compile matrix linux/{amd64,arm64,arm,386} all OK.

Assisted-by: Claude Code Anthropic Claude Opus 4.5 (fully tested and validated)
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 641f0749a1d49888948a6f1dc85bd166917aee2e (branch: feat/workflow-ir)
Change class: sdk library (kind-blind IR helpers) plus loaderkit/deploykit/kit runtime helpers — code/config, additive.

Blocks

  1. B18 / B12 — workflowkit/validate.go: the exec-arm XOR rejects EVERY valid for_each step (broken core deliverable, uncaught by the PR's own tests). In validateStepBase the arms map counts both "for_each": v.forEach != "" and "steps": v.steps, while the co-field rule a few lines below requires a for_each step to carry a non-empty steps:. A legitimate for_each step therefore always sets two arms and fails with 2 execution arms set (for_each, steps). No positive test exists: the TestValidatePipelineRules/"item_var equals index_var" case uses ForEach+Steps but asserts via strings.Contains, so the spurious arm error is masked and the validator's for_each path is effectively untested. Fix: stop counting the for_each body as a second arm (skip steps in the arm set when for_each is set, or drop steps from execArms) and add a test asserting a valid for_each pipeline validates with zero errors.

  2. B14(a) / B18 — dead code in a file this PR adds: workflowkit/cron.go const cronStarBit = 1 << 63. Nothing in the package references cronStarBit (bitValues uses uint64(1)<<uint(v)). An unused unexported const is exactly the dead code the quality gate flags; remove it or wire it in.

  3. B13 / go.mod hygiene — direct requires with no import. go.mod adds github.com/cenkalti/backoff/v4 and mvdan.cc/sh/v3 to the direct require block, but no file in this 35-file diff imports either (the imports actually present are expr-lang/expr, tidwall/gjson, robfig/cron/v3, emicklei/dot). A direct require with no importing package is go mod tidy drift — either the imports are missing or the requires are spurious; supply the imports in the same commit or drop the requires.

  4. A1 — the Summary misstates the workflowkit inventory. The body says "sdk/workflowkit (NEW, 9 files) … plus 5 test files and 6 .golden fixtures", but the diff adds 8 non-test source files (expr/template/args/closure/validate/lower/cron/graph.go), 8 _test.go files, and 6 goldens. Correct the counts so the body's accounting matches the diff.

Comment intake (all comments considered, each re-derived against the current diff/body):

  • Comment 5963709443 (@aitrawog) — OWNING coordination metadata; its scope/file claims hold against the current diff, the "R3 transiently open" note names W3 (a different repo, not touched here), and the R10-to-W6 carry is stated by a maintainer-set account (a valid operator statement, not a waiver). verified-non-blocking — coordination, no surviving finding; I did not import its claims as findings.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: f8ab8ccdc9ecb42474005c51aa451867754cbdf1 (branch: feat/workflow-ir)

Change class: sdk library (kind-blind IR helpers) plus loaderkit/deploykit/kit runtime helpers — code/config, additive. (No security-machinery, spec, or rulebook edits — T4 not triggered; security screen otherwise clean.)

Blocks

  1. A1 — the body's Summary contradicts the CURRENT go.mod/go.sum diff. The Summary bullet reads:
    "tidwall/gjson promoted to direct; cenkalti/backoff/v4, expr-lang/expr, robfig/cron/v3, mvdan.cc/sh/v3, emicklei/dot added direct."
    The go.mod diff adds only expr-lang/expr, robfig/cron/v3, emicklei/dot (and promotes tidwall/gjson to direct); cenkalti/backoff/v4 and mvdan.cc/sh/v3 appear nowhere in go.mod or go.sum. The body's own review-round note (item 3) says those two were removed ("10 stale go.sum lines went with them") — so the Summary bullet is stale relative to the very commit it describes. A body that claims deps added that the diff does not contain is a description↔diff mismatch and fails A1's "real Summary of changes accounting for every file/behavior in the diff". Fix: update the Summary bullet to name exactly the deps added (expr-lang/expr, robfig/cron/v3, emicklei/dot; tidwall/gjson promoted).

  2. A1 — the Summary's file accounting is incomplete for the non-workflowkit additions. The body enumerates workflowkit's 8 test files + 6 goldens, but never accounts for the new deploykit/systemd_test.go (with its 4 deploykit/testdata/*.golden) or loaderkit/nested_desugar_test.go — all new files in this 35-file diff. Per A1 ("a diff item missing from the body's accounting is a defect"), add them to the Summary.

Comments considered (each re-derived against the current state)

  • Comment 5963709443 (@aitrawog) — OWNING coordination metadata. Scope and the R3/R10 notes hold against the current diff; "R3 transiently open" names plugin-task/W3 (a different repo, not touched here, and this PR advances that exit by landing the shared implementation), and the R10 carry names W6 with a reopen commitment — the sanctioned named-batch route, not a vague deferral. verified-non-blocking (coordination; no claim imported as a finding).
  • Comment 5963721935 (@github-actions[bot], BLOCK) — verdict against head 641f074, not the current head f8ab8cc. Re-derived all four findings against the current diff: (1) steps is out of execArms and moved to the stray-companion rule, with TestValidatePipelineAcceptsForEach asserting zero errors — fixed; (2) cronStarBit is absent — fixed; (3) cenkalti/backoff/v4/mvdan.cc/sh/v3 are gone from go.mod/go.sum, and the four remaining added/promoted deps each have an importing file (expr.go, cron.go, graph.go) — fixed; (4) the workflowkit counts now read 8 source / 8 test / 6 goldens, matching the diff — fixed. stale-superseded.

Note (non-blocking): the R10 bed carry to W6, the 3-commit sequence (squash-collapsed), and the placement (workflowkit in sdk as a kind-blind mechanism consumed by multiple plugins; deploykit timer beside the existing unit generator) all check out — placement: CORRECT.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: f8ab8ccdc9ecb42474005c51aa451867754cbdf1 (branch: feat/workflow-ir)

Security screen: PASS — no validator/rulebook/guardrail edit, no secrets/egress, no scope mismatch; the four added/promoted direct requires (expr-lang/expr, robfig/cron/v3, emicklei/dot, tidwall/gjson) each have an importing file in this diff.
Checklist: All applicable rules PASS or NA. Body accounting re-derived line by line (35 files, +2821/-27, the 5-require go.mod bullet, and the workflowkit 8/8/6 split all match the current diff); A3 tier analysed on a live system is not inflated (the bed is honestly declared unrun); the R10 carry names its batch (W6/plugin-pipeline) and advances the exit, so it is the sanctioned named-batch route, not a vague deferral; placement: CORRECT (kind-blind mechanism in sdk).

Comments considered:

  • 5963709443 (@aitrawog) — verified-non-blocking (OWNING coordination; scope/R3/R10 notes hold against the current diff).
  • 5963721935 (@github-actions[bot], head 641f074) — stale-superseded (all four findings re-derived as fixed at the current head: steps out of execArms + zero-error TestValidatePipelineAcceptsForEach; cronStarBit gone; the two unimported requires gone; counts reconciled).
  • 5963839588 (@github-actions[bot], head f8ab8cc) — stale-superseded (both A1 body findings were against an earlier body revision; the CURRENT body's go.mod bullet names exactly the five changing requires and the file accounting now lists deploykit/systemd_test.go, its four goldens, and loaderkit/nested_desugar_test.go).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 3, 2026 01:00
…t the doc example

Two sdk#331 round-3 findings, both in cron.go.

1. The CronToOnCalendar doc example claimed "*/15 9-17 * * Mon-Fri" lowers to
   "... 09..17:0/15:00". The code pads every numeric component (padTimeField), so the
   real output is "... 09..17:00/15:00", matching the file's own {"*/5 * * * *",
   "*:00/05:00"} row. Verified by RUNNING the function, not by reading it; the code is
   right and the comment was wrong, so the comment is corrected to the real string.

2. A restricted day-of-month AND a restricted day-of-week were lowered to one
   OnCalendar= line ("0 3 1 * 1" -> "Mon *-*-01 03:00:00"), which is silently WRONG:
   robfig/cron — the parser this function validates through — fires when EITHER field
   matches, while systemd's calendar spec requires BOTH. One OnCalendar= line cannot
   express that OR, and GenerateSystemdTimer writes exactly one, so the converter now
   returns a descriptive error naming both field values, the cause (cron OR vs systemd
   AND) and the remedy (split into two schedules). Either field restricted ALONE is
   unaffected: "0 3 1 * *" and "0 3 * * 1" still lower exactly as before, since an
   unrestricted field is not a restriction. The blanket "every cron form lowers
   correctly" claim is replaced with this exception stated explicitly.

Tests: TestCronToOnCalendarRejectsRestrictedDomAndDow (new; it failed before this
change, reporting the wrong lowering) plus the exact-string table rows for the two
single-restriction forms and the padded-step example.

Gate: gofmt -l . (mute), go vet ./..., go test ./... -count=1 (all 15 packages ok,
loaderkit included with main's #332 changes).

Assisted-by: Claude Code Anthropic Claude Opus 4.5 (fully tested and validated)
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 7bfa61d7910b3c111ed210ea10b6a8942264057e (branch: feat/workflow-ir)
Change class: sdk library — kind-blind IR/mechanism helpers (workflowkit) plus loaderkit/deploykit/kit runtime helpers; code/config, additive.
Placement: CORRECT — workflowkit is a kind-blind, capability-free mechanism with sdk-only deps consumed by more than one plugin (plugin-task/plugin-lobster/plugin-migrate), the timer sits beside its existing sibling generator in deploykit's mechanism kit, and the loader desugar belongs in loaderkit. Nothing capability-shaped was pushed into core; no new charly/ alias or kit import; no *Legacy* relocation.

Blocks

  1. R1 (comment ↔ reality) — workflowkit/cron.go:38: the doc example states an output the code cannot produce. The comment claims
    "*/15 9-17 * * Mon-Fri" -> "Mon,Tue,Wed,Thu,Fri *-*-* 09..17:0/15:00".
    padTimeField zero-pads every numeric component of a rendered minute/hour field, so the minute field is 00/15, i.e. the real output is Mon,Tue,Wed,Thu,Fri *-*-* 09..17:00/15:00. The file's own test table proves the convention in the same file: {"*/5 * * * *", "*-*-* *:00/05:00"}. The example is internally inconsistent too — it pads the hours (09..17) but not the minute step start. Fix the comment to 00/15 (or, if 0/15 is the intended spelling, the code is wrong — then fix the code and the */5 expectation).

  2. R1 + B12 (coverage of a claimed-correct form) — workflowkit/cron.go: the one cron↔systemd divergence point is untested, while the doc claims "every cron form … lowers correctly". For 0 3 1 * 1 the converter emits Mon *-*-01 03:00:00 — both a restricted day-of-month and a restricted day-of-week on one OnCalendar= line. That combination is exactly where cron's rule (robfig/cron, the parser this function validates through, matches when either field matches) and systemd's calendar rule (both must match) are known to differ, and a single line cannot express the cron OR. No table case covers it, and the doc says nothing about it. Either handle it (reject the combination with a diagnostic, or emit the two alternatives), or state the intended semantics explicitly and add the table case that proves it. An unproven "lowers correctly" claim at the single known divergence point does not discharge the burden of proof.

  3. A1 — the body's "How tested" is pinned to a superseded head. The body says "Ran exactly this repo's CI gate on the final committed tree … final head f8ab8cc", but the head under review is the merge commit 7bfa61d7910b… ("Merge branch 'main' into feat/workflow-ir"). The pasted output therefore does not cover the tree being merged. Either re-run the same gate on the current head and paste it, or state explicitly (as a body fact, not an assumption) that the merge introduced no content change to this PR's files.

  4. A1 — the "Rulebook compliance" section does not answer every applicable rule. It answers R1, R3, R4, R5, R6, R10, and leaves R0, R2, R4a, R8, R9 unaddressed — not even as N/A — <reason>. R2's substance is argued in prose elsewhere (the W3/W6 routings), but the section itself must carry a one-line HOW per applicable rule or an explicit N/A.

Comments considered (each re-derived against the current diff/body)

  • 5963709443 (@aitrawog) — OWNING coordination metadata (maintainer-set account, but no sign-off is required for this change). Its scope/file claims hold against the current diff; "R3 transiently open" names plugin-task/W3 (a different repo, and this PR advances that exit by landing the shared implementation); the R10 carry names W6/plugin-pipeline with a reopen commitment, so it is the sanctioned named-batch route, not a vague deferral. verified-non-blocking.
  • 5963721935 (@github-actions[bot], head 641f074) — all four findings re-derived against the current diff and fixed: (1) steps is out of execArms and moved into the stray-companion rule, with TestValidatePipelineAcceptsForEach asserting zero errors; (2) cronStarBit is absent; (3) cenkalti/backoff/v4 and mvdan.cc/sh/v3 appear nowhere in go.mod/go.sum, and each of the five changing requires has an importing file (expr.go, cron.go, graph.go); (4) counts are 8 source / 8 test / 6 goldens. stale-superseded.
  • 5963839588 (@github-actions[bot], head f8ab8cc) — both A1 body findings are satisfied by the current body (the go.mod bullet names exactly the five changing requires; the accounting lists deploykit/systemd_test.go, its four testdata/*.golden, and loaderkit/nested_desugar_test.go). stale-superseded for those claims; its head is in turn superseded by the merge head, which is block 3.
  • 5963883233 (@github-actions[bot], head f8ab8cc) — a PASS at a superseded head; not binding on me (a prior PASS is a review comment, not a gate), and it does not cover the current merge head, the cron.go doc divergence, or the untested DOM+DOW form. stale-superseded / non-authoritative.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

…at exists

sdk#331 round 4 (R1, comment vs reality). The TestMain comment above updateGoldens
claimed the switch was shared by "systemd_unit_test.go / systemd_timer_test.go".
Neither is true: systemd_timer_test.go does not exist anywhere, and
systemd_unit_test.go is pre-existing (it is in origin/main, not in this PR's diff) and
references updateGoldens/checkGolden/golden/testdata nowhere — so it does not share the
switch either. Both the unit and timer golden tests live in systemd_test.go, which is
the file that declares updateGoldens/checkGolden and the four goldens it checks.

Comment only; no code, no golden and no assertion changes.

Gate: gofmt -l . (mute), go vet ./..., go test ./... -count=1 (all 15 packages ok).

Assisted-by: Claude Code Anthropic Claude Opus 4.5 (fully tested and validated)
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: a5b81bfadd7abd7c68464c8991789ba4aebebabe (branch: feat/workflow-ir)
Change class: sdk library (kind-blind IR/mechanism helpers) + loaderkit/deploykit/kit runtime helpers — code/config, additive.

Security screen: PASS — no validator/rulebook/guardrail edit, no secrets/egress, no scope mismatch; each of the five changing requires (spec bump, tidwall/gjson promoted, expr-lang/expr, robfig/cron/v3, emicklei/dot) has an importing file in this diff; placement CORRECT (kind-blind mechanism in sdk, timer beside its sibling generator in deploykit).

Blocks

  1. R1 — comment ↔ reality: deploykit/systemd_test.go:12 names two test files that do not exist. The comment reads:
    // systemd_unit_test.go / systemd_timer_test.go share this \-update` switchThis PR adds exactly **one** deploykit test file —deploykit/systemd_test.go— and nosystemd_unit_test.goorsystemd_timer_test.goappears anywhere in the 35-file diff. Those files cannot exist either:updateGoldensis *first declared* in this very file, so any pre-existing file that "shares" the switch would have to reference a symbol that did not exist before this PR (a compile error), and any file that *declares* it too would be a redeclaration error — which contradicts the body's own pastedok github.com/opencharly/sdk/deploykitgate output. The comment is therefore a documented-state divergence from the tree it ships in (the same class of defect the round-3 review correctly blocked on forworkflowkit/cron.go). Fix: name the actual file (systemd_test.go`), or drop the sentence.

Comments considered (each re-derived against the current diff/body)

  • 5963709443 (@aitrawog) — OWNING coordination metadata; its chain (sdk#331 → tag → W3 → W4 → W5 → W6 → W7), the "R3 transiently open" note (names plugin-task/W3, a different repo, and this PR advances that exit by landing the shared implementation), and the R10 carry to W6 by name all hold against the current diff. The R10 carry is the sanctioned named-batch route backed by an explicit statement from a maintainer-set account, not a vague deferral. verified-non-blocking.
  • 5963721935 (@github-actions[bot], head 641f074) — all four findings re-derived and fixed at the current head: steps is out of execArms and moved into the stray-companion rule (validate.go), with TestValidatePipelineAcceptsForEach asserting zero errors; cronStarBit is absent; cenkalti/backoff/v4/mvdan.cc/sh/v3 appear nowhere in go.mod/go.sum; counts are 8 source / 8 test / 6 goldens. stale-superseded.
  • 5963839588 (@github-actions[bot], head f8ab8cc) — both A1 findings are satisfied by the CURRENT body (the go.mod bullet names exactly the five changing requires; the accounting lists deploykit/systemd_test.go, its four testdata/*.golden, and loaderkit/nested_desugar_test.go). stale-superseded.
  • 5963883233 (@github-actions[bot], head f8ab8cc) — a PASS at a superseded head; a prior PASS is a review comment, not a gate, and it does not cover the current head. Non-authoritative. stale-superseded.
  • 5964110636 (@github-actions[bot], head 7bfa61d) — all four findings re-derived and fixed: the cron.go example now reads 09..17:00/15:00; the DOM+DOW guard (!domAll && !dowAll) rejects with a diagnostic and TestCronToOnCalendarRejectsRestrictedDomAndDow pins it; "How tested" is pinned to the current head a5b81bf; and the Rulebook section now answers R0/R2/R4a/R8/R9. stale-superseded.

(Verified independently: the body's +2881/-27 sums exactly to the 35 file headers, so the accounting is truthful; the changed code paths are covered by tests that would fail without them; the attribution tier analysed on a live system is honest, not inflated.)

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 0593f7c5b3c174f659da25459e17b5ea52941e78 (branch: feat/workflow-ir)
Change class: sdk library (kind-blind IR helpers) + loaderkit/deploykit/kit runtime helpers — code/config, additive.

Blocks

  1. R1 — silent mis-lowering in workflowkit/cron.go numField (wrong output + a false doc claim, untested). The branch

    if step == 1 {
        return strconv.Itoa(vals[0]) + ".." + strconv.Itoa(vals[len(vals)-1])
    }

    assumes the whole value list is contiguous, but step := vals[1] - vals[0] is only the first gap. Any comma list whose first two values are consecutive but which has a later gap is rendered as a .. RANGE that includes values the cron did not request. Deterministically, from the diff:

    • CronToOnCalendar("0 1,2,3,5 * * *") → hours [1,2,3,5], step=1 → "1..5" → "*-*-* 01..05:00:00", which fires at hour 4 as well (correct: 01,02,03,05).
    • CronToOnCalendar("0,1,2,5 * * * *") → minutes [0,1,2,5] → "0..5" → "*-*-* *:00..05:00" (correct: *:00,01,02,05:00).

    This contradicts the function's own comment (numField renders … else a comma list) and the doc block directly above CronToOnCalendar claiming “…so lists, ranges, steps and names all lower correctly”. No table row in TestCronToOnCalendar covers a non-contiguous list, so the change's own coverage cannot fail on it — the exact “silently wrong lowering” class the round‑3 fix addressed, left at a different point of the same function.

    Fix: take the .. shortcut only when every consecutive gap is 1 (verify contiguity, don't infer it from the first gap); otherwise fall through to the comma list. Add a pinning row, e.g. {"0 1,2,3,5 * * *", "*-*-* 01,02,03,05:00:00"}.

Comments considered (each re-derived against the current state)

  • 5963709443 (@aitrawog) — OWNING coordination metadata. Its chain (sdk#331 → tag → W3 → W4 → W5 → W6 → W7), the “R3 transiently open” note (names plugin-task/W3, a different repo, and this PR advances that exit by landing the shared implementation), and the R10 carry to W6 by name all hold against the current diff. verified-non-blocking.
  • 5963721935 (@github-actions[bot], head 641f074) — all four findings re-derived and fixed: steps is out of execArms and moved into the stray-companion rule with TestValidatePipelineAcceptsForEach asserting zero errors; cronStarBit is absent; cenkalti/backoff/v4/mvdan.cc/sh/v3 appear nowhere in go.mod/go.sum; counts are 8 source / 8 test / 6 goldens. stale-superseded.
  • 5963839588 (@github-actions[bot], head f8ab8cc) — both A1 findings satisfied by the current body (the go.mod bullet names exactly the five changing requires; the accounting lists deploykit/systemd_test.go, its four testdata/*.golden, and loaderkit/nested_desugar_test.go). stale-superseded.
  • 5963883233 (@github-actions[bot], head f8ab8cc) — a PASS at a superseded head; a prior PASS is a review comment, not a gate, and does not cover the current head or the numField defect. stale-superseded.
  • 5964110636 (@github-actions[bot], head 7bfa61d) — re-derived: the cron.go example now reads 09..17:00/15:00 (fixed); the DOM+DOW guard (!domAll && !dowAll) rejects with a diagnostic and TestCronToOnCalendarRejectsRestrictedDomAndDow pins it (fixed); “How tested” is pinned to the current head (fixed); the Rulebook section now answers R0/R2/R4a/R8/R9 (fixed). stale-superseded.
  • 5964162819 (@github-actions[bot], head a5b81bf) — the deploykit/systemd_test.go:12 comment now names “this file” and no longer references non-existent files. stale-superseded.

(Verified independently: the body's +2881/-27 sums exactly to the 35 file headers, so the accounting is truthful; each of the five changing requires has an importing file in this diff; the changed code paths are covered by tests that would fail without them; the attribution tier analysed on a live system is honest, not inflated; placement: CORRECT — kind-blind mechanism in sdk, timer beside its sibling generator in deploykit, desugar in loaderkit.)

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Auto-closed: 5 unanswered BLOCK/INCONCLUSIVE verdicts

This PR has received 5 non-PASS validator verdicts — BLOCK (findings not fixed) and/or INCONCLUSIVE (the provider produced no answer) — so the gate is auto-closing it (threshold AI_REVIEW_AUTO_CLOSE_AFTER=5).

Why: re-running the validator against the same unfixed head only adds another verdict and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead.

What to do: open a NEW pull request from a fresh branch. Fix every finding from any BLOCK verdict below before opening it. If the thread is all INCONCLUSIVE (no findings — the provider never answered), the close is a policy bound, not a code finding: re-open a fresh PR once the provider/engine condition is resolved.

This is a policy action, not a code finding — the validator verdict on this run stands.

@github-actions github-actions Bot closed this Oct 3, 2026
auto-merge was automatically disabled October 3, 2026 01:40

Pull request was closed

@aitrawog

aitrawog commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

RESOLVED — superseded by #333.

This thread is no longer acted on. The gate auto-closed it at the block limit
(AI_REVIEW_AUTO_CLOSE_AFTER=5) on the round-5 verdict; re-running the validator against the same
head only grows the thread, so the work moved to a clean thread: #333, fresh branch
feat/workflow-ir-w1 (not feat/workflow-ir) at 6052e1f.

Closure reason: policy action, not a code finding. The round-5 BLOCK itself was a real bug
and is fixed — see #333's "Review round 5" section.

Every finding from every BLOCK verdict on this thread is fixed in #333, each in a single commit —
none re-argued, none partially fixed:

round verdict head finding fixed in
1 1895c60… validateStepBase counted steps as an exec arm; for_each + dropped deps f8ab8cc
3 7bfa61d cron.go doc example stated an output the code cannot produce; the DOM+DOW lowering silently encoded systemd's AND where cron means OR a5b81bf
4 a5b81bf deploykit/systemd_test.go comment named golden test files that do not exist 0593f7c
5 0593f7c numField inferred contiguity from the first gap only, so 0 1,2,3,5 * * * lowered to 01..05:00:00 and fired at hour 04 — the same silent-mis-lowering class as round 3, at a sibling path of the same function 6052e1f

Round 5 additionally drove a blast-radius audit of every rendering path in cron.go for that
class — the duty the round-3 fix skipped — with a stated verdict per path, and it is now pinned by one
non-contiguous row per field so no field can silently widen.

The diff against origin/main is unchanged in shape: 35 files, +2911/-27.

Agent: workflow-ir · session session_01MSxu48GQwoQuBkfwQrkntk
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant