Adversarial fuzz worker

differential-probe

Session sc-compose-fuzz-20261007-5 · Worker differential-probe

FAIL

Fuzz run descriptionIterationsPassResult
differential run5 rerun at a0ce54da (fake bd stub); binary pass/fail counts not supplied 280 not supplied/280 FAIL

Inputs exercised

CaseTemplate / inputOutcome
run5/family/R1-head-vs-base160 head/baseline pairs on the routes both binaries have (render, validate, preview_pour, pour): 60 hostile values through TOML/JSON render, every route to registry and non-registry destinations in JSON and human output, seeded registry bead_variables, 25 request-error and refusal shapes, 8 fake-bd failure shapes; {"scenarios": 160, "mismatches": 53}mismatches 53
run5/family/R2-head-determinism40 head-vs-head reruns across all six routes (attach routes included); byte-identical after normalization; {"scenarios": 40, "mismatches": 0}mismatches 0
run5/family/R3-metamorphic54 cases: preview plan bytes equal apply plan bytes; reversed relation order is still a no-op; a CRLF-only template change keeps the revision and is a no-op; compose key order does not matter; a changed value is refused as provenance_differs with no write; resuming after a lost bead creates exactly that bead; TOML and JSON templates of the same formula plan identical nodes; {"scenarios": 54, "mismatches": 0}mismatches 0
run5/family/R4-process26 cases: slow bd (2 s), plus a pipe-holding grandchild on cook/where/show (head and baseline, 3 repetitions each); hang, timeout and leftover-process check; {"scenarios": 26, "mismatches": 0}mismatches 0

Findings

DIFF5-01

Minimal template / frontmatter
See literal minimal_input in source envelope.
Input
{ "request (pretty-printed, 9 lines)": "{\n \"schema\": \"sc-compose/beads/v1\",\n \"operation\": \"render\",\n \"working_directory\": \"$WS\",\n \"template\": \"f.formula.toml.j2\",\n \"rendered_formula\": \"build/f.formula.toml\",\n \"compose_variables\": [],\n \"bead_variables\": {}\n}\n" }
Expected
Baseline behaviour, and serde's contract for its message: the 'at line L column C' location in BEADS_REQUEST_DESERIALIZATION_FAILED refers to the request file the user supplied
Observed
Head: 'invalid type: sequence, expected a map at line 1 column 41'. Baseline: 'line 7 column 23' (correct). Head parses a reshaped copy, with parent/ref/relation endpoints replaced and the JSON re-serialized compact with sorted keys, so for type errors in compose_variables, operation and working_directory the location points into that internal string. Same for unknown operation (head line 1 col 65, base line 3 col 24) and a numeric working_directory (head line 1 col 190, base line 4 col 24). Errors raised in the first pass (bead_variables value type) still report the true location (line 8 col 27 on both).
Requirement / ADR
Baseline behaviour, and serde's contract for its message: the 'at line L column C' location in BEADS_REQUEST_DESERIALIZATION_FAILED refers to the request file the user supplied
Requirement / ADR follow-up
Team-lead pending triage; no new requirement or fix is asserted by report integration.
Root cause
Head: 'invalid type: sequence, expected a map at line 1 column 41'. Baseline: 'line 7 column 23' (correct). Head parses a reshaped copy, with parent/ref/relation endpoints replaced and the JSON re-serialized compact with sorted keys, so for type errors in compose_variables, operation and working_directory the location points into that internal string. Same for unknown operation (head line 1 col 65, base line 3 col 24) and a numeric working_directory (head line 1 col 190, base line 4 col 24). Errors raised in the first pass (bead_variables value type) still report the true location (line 8 col 27 on both).
Recommended fix
Team-lead pending triage; confirmed_bug at a0ce54da (run5 rerun), not fixed by this report.

DIFF5-02

Minimal template / frontmatter
See literal minimal_input in source envelope.
Input
"Registry preview_pour and pour now call `bd cook <registry>/.sc-compose-input-<pid>-<ns>-0.formula.toml --dry-run --json` where baseline called `bd cook <registry>/rega.formula.toml ...`. The receipt argv still shows the public path. This is deliberate (c1da2129 / d181b1fc snapshot isolation), but FR-23 says 'existing ... bd argv are unchanged' and ADR-0023 says registry pour keeps the 'same argv'. It also places a dot-file *.formula.toml in the active registry while cook runs. Either the docs or the argv should change; real-bd impact is out of scope (fake bd). Seen in all 30 R1 pairs that reach bd on the registry route; deterministic."
Expected
No decisive documented oracle supplied; retain original observation classification.
Observed
Registry preview_pour and pour now call `bd cook <registry>/.sc-compose-input-<pid>-<ns>-0.formula.toml --dry-run --json` where baseline called `bd cook <registry>/rega.formula.toml ...`. The receipt argv still shows the public path. This is deliberate (c1da2129 / d181b1fc snapshot isolation), but FR-23 says 'existing ... bd argv are unchanged' and ADR-0023 says registry pour keeps the 'same argv'. It also places a dot-file *.formula.toml in the active registry while cook runs. Either the docs or the argv should change; real-bd impact is out of scope (fake bd). Seen in all 30 R1 pairs that reach bd on the registry route; deterministic.
Requirement / ADR
Undecided requirement/documentation boundary; team lead must triage.
Requirement / ADR follow-up
Team-lead pending triage; no new requirement or fix is asserted by report integration.
Root cause
Registry preview_pour and pour now call `bd cook <registry>/.sc-compose-input-<pid>-<ns>-0.formula.toml --dry-run --json` where baseline called `bd cook <registry>/rega.formula.toml ...`. The receipt argv still shows the public path. This is deliberate (c1da2129 / d181b1fc snapshot isolation), but FR-23 says 'existing ... bd argv are unchanged' and ADR-0023 says registry pour keeps the 'same argv'. It also places a dot-file *.formula.toml in the active registry while cook runs. Either the docs or the argv should change; real-bd impact is out of scope (fake bd). Seen in all 30 R1 pairs that reach bd on the registry route; deterministic.
Recommended fix
Team-lead pending triage; inconclusive at a0ce54da (run5 rerun), not fixed by this report.

DIFF5-03

Minimal template / frontmatter
See literal minimal_input in source envelope.
Input
"Head and baseline both wait for any descendant that keeps bd's stdout/stderr open after bd exits: a 6 s grandchild made every route take about 6.1 s, 3/3 on head and baseline, with no process left behind. ADR-0021 promises termination only for over-limit output, and there is no bd timeout, so a bd that daemonizes a child holding its pipes would block sc-compose until that child exits. Real-bd behaviour is out of scope."
Expected
No decisive documented oracle supplied; retain original observation classification.
Observed
Head and baseline both wait for any descendant that keeps bd's stdout/stderr open after bd exits: a 6 s grandchild made every route take about 6.1 s, 3/3 on head and baseline, with no process left behind. ADR-0021 promises termination only for over-limit output, and there is no bd timeout, so a bd that daemonizes a child holding its pipes would block sc-compose until that child exits. Real-bd behaviour is out of scope.
Requirement / ADR
Undecided requirement/documentation boundary; team lead must triage.
Requirement / ADR follow-up
Team-lead pending triage; no new requirement or fix is asserted by report integration.
Root cause
Head and baseline both wait for any descendant that keeps bd's stdout/stderr open after bd exits: a 6 s grandchild made every route take about 6.1 s, 3/3 on head and baseline, with no process left behind. ADR-0021 promises termination only for over-limit output, and there is no bd timeout, so a bd that daemonizes a child holding its pipes would block sc-compose until that child exits. Real-bd behaviour is out of scope.
Recommended fix
Team-lead pending triage; inconclusive at a0ce54da (run5 rerun), not fixed by this report.

DIFF5-04

Minimal template / frontmatter
See literal minimal_input in source envelope.
Input
"Human failure lines now append bd's stderr cause, and its trailing newline is printed as the literal text \\u{000A} (for example 'stage Validate: failed (BEADS_COOK_FAILED): Error: bad <path>\\u{000A}'). The escaping is intended (055840b2); showing the ordinary trailing newline on every bd failure is cosmetic."
Expected
No decisive documented oracle supplied; retain original observation classification.
Observed
Human failure lines now append bd's stderr cause, and its trailing newline is printed as the literal text \u{000A} (for example 'stage Validate: failed (BEADS_COOK_FAILED): Error: bad <path>\u{000A}'). The escaping is intended (055840b2); showing the ordinary trailing newline on every bd failure is cosmetic.
Requirement / ADR
Undecided requirement/documentation boundary; team lead must triage.
Requirement / ADR follow-up
Team-lead pending triage; no new requirement or fix is asserted by report integration.
Root cause
Human failure lines now append bd's stderr cause, and its trailing newline is printed as the literal text \u{000A} (for example 'stage Validate: failed (BEADS_COOK_FAILED): Error: bad <path>\u{000A}'). The escaping is intended (055840b2); showing the ordinary trailing newline on every bd failure is cosmetic.
Recommended fix
Team-lead pending triage; inconclusive at a0ce54da (run5 rerun), not fixed by this report.