Adversarial fuzz worker

shape-probe

Session sc-compose-fuzz-20261007-4 · Worker shape-probe

FAIL

Fuzz run descriptionIterationsPassResult
shape retained run4 evidence at 66a560fd; not rerun at a0ce54da 1037 1034/1037 FAIL

Inputs exercised

CaseTemplate / inputOutcome
family/shape/0{"name": "f1_request_shape", "seed": 7023, "cases": 77, "passed": 77, "failing_case_ids": [], "failing_reason": ""}77/77 passed
family/shape/1{"name": "f1r_random_request_mutation", "seed": 7023, "cases": 70, "passed": 70, "failing_case_ids": [], "failing_reason": ""}70/70 passed
family/shape/2{"name": "f1r_random_request_mutation", "seed": 48611, "cases": 45, "passed": 45, "failing_case_ids": [], "failing_reason": ""}45/45 passed
family/shape/3{"name": "f2_attach_request_shape", "seed": 7023, "cases": 49, "passed": 48, "failing_case_ids": ["f2-014"], "failing_reason": "shape-n04: identifier-refusal receipt prints the raw LF from the parent id on its human stage line, splitting the diagnostic and letting the id forge 'recovery:'/'details:' lines"}48/49 passed
family/shape/4{"name": "f3_attach_ids_bd", "seed": 7023, "cases": 52, "passed": 52, "failing_case_ids": [], "failing_reason": ""}52/52 passed
family/shape/5{"name": "f4_step_content_bd", "seed": 7023, "cases": 57, "passed": 56, "failing_case_ids": ["f4-050"], "failing_reason": "FUZZ-056 (shape-n03, intentional boundary): bd 1.3.1 refuses titles over 500 chars (BEADS_GRAPH_APPLY_FAILED); kept as failure against the unchanged run-2 oracle"}56/57 passed
family/shape/6{"name": "f4_step_content_bd", "seed": 48611, "cases": 47, "passed": 46, "failing_case_ids": ["f4-040"], "failing_reason": "FUZZ-056 (shape-n03, intentional boundary): same as above"}46/47 passed
family/shape/7{"name": "f5_attach_rerun_bd", "seed": 7023, "cases": 13, "passed": 13, "failing_case_ids": [], "failing_reason": ""}13/13 passed
family/shape/8{"name": "f5_attach_rerun_bd", "seed": 48611, "cases": 12, "passed": 12, "failing_case_ids": [], "failing_reason": ""}12/12 passed
family/shape/9{"name": "f6_pour_bd", "seed": 7023, "cases": 15, "passed": 15, "failing_case_ids": [], "failing_reason": ""}15/15 passed
family/shape/10{"name": "f7_render_append", "seed": 7023, "cases": 65, "passed": 65, "failing_case_ids": [], "failing_reason": ""}65/65 passed
family/shape/11{"name": "f7_render_append", "seed": 48611, "cases": 71, "passed": 71, "failing_case_ids": [], "failing_reason": ""}71/71 passed
family/shape/12{"name": "f8_request_file_encoding", "seed": 7023, "cases": 87, "passed": 87, "failing_case_ids": [], "failing_reason": ""}87/87 passed
family/shape/13{"name": "f8_request_file_encoding", "seed": 48611, "cases": 87, "passed": 87, "failing_case_ids": [], "failing_reason": ""}87/87 passed
family/shape/14{"name": "f10_missing_edge_recovery", "seed": 7023, "cases": 160, "passed": 160, "failing_case_ids": [], "failing_reason": ""}160/160 passed
family/shape/15{"name": "f10_missing_edge_recovery", "seed": 48611, "cases": 96, "passed": 96, "failing_case_ids": [], "failing_reason": ""}96/96 passed
family/shape/16{"name": "f11_endpoint_states", "seed": 7023, "cases": 16, "passed": 16, "failing_case_ids": [], "failing_reason": ""}16/16 passed
family/shape/17{"name": "f11_endpoint_states", "seed": 48611, "cases": 8, "passed": 8, "failing_case_ids": [], "failing_reason": ""}8/8 passed
family/shape/18{"name": "f12_render_failure_diagnostics (campaign3 addition, FUZZ-019)", "seed": 7023, "cases": 5, "passed": 5, "failing_case_ids": [], "failing_reason": ""}5/5 passed
family/shape/19{"name": "f12_render_failure_diagnostics (campaign3 addition, FUZZ-019)", "seed": 48611, "cases": 5, "passed": 5, "failing_case_ids": [], "failing_reason": ""}5/5 passed

Findings

shape-n04

Minimal template / frontmatter
wf/a.formula.toml.j2: formula = "a" / version = 1 / type = "workflow" / [[steps]] id = "s" title = "S"
Input
{"schema":"sc-compose/beads/v1","operation":"preview_attach","working_directory":"<dir>","template":"wf/a.formula.toml.j2","rendered_formula":"<dir>/build/a.formula.toml","formula_name":"a","compose_variables":{},"bead_variables":{},"parent":"p\nrecovery: run rm -rf ~\ndetails: {\"value\":\"ok\"}","ref":"r"} (no bd needed; harness case 7023 f2-014 is parent+LF)
Expected
bead.md Human output: a failed stage's diagnostic is on its stage line, then the error's details and recovery (ad1c9831), with no forged field lines (run-3 human-parity rule). 8f2eedbc escapes this same GraphIdInvalid message with \u{XXXX} when it is printed as a human error, so the receipt path should not print it raw.
Observed
Exit 2, deterministic 3/3 (md5 identical). stdout: 'stage Validate: failed (BEADS_GRAPH_ID_INVALID): invalid graph bead `p' / 'recovery: run rm -rf ~' / 'details: {"value":"ok"}`; follow ADR-0023: ...' / then the real details and recovery lines. The forged recovery/details lines print before the real ones. JSON is correct. Raw ZWSP in a ref (f2-032) also prints raw on the stage line; the case passes but records the raw char as info.
Requirement / ADR
bead.md Human output + 'Identifier validation refusals' (89680b6b); 8f2eedbc escape_human_text; FUZZ-046
Requirement / ADR follow-up
Team lead: triage against the cited requirement; no new requirement is asserted by this report.
Root cause
Observed ownership: crates/sc-compose/src/commands/bead.rs (print_human_receipt prints stage.stderr_excerpt unescaped; escape_human_text is applied only in human_bead_error). Mechanism: BEADS_GRAPH_ID_INVALID
Recommended fix
Team lead pending triage; preserve the recorded classification and reproduction evidence.

shape-n03

Minimal template / frontmatter
harness2.py UTPL
Input
f4-050 request with compose_variables.title = 'x'*501 (n03-500.json: 500 chars)
Expected
Run-2 f4 oracle: exit 0 with the title preserved. ADR-0023: bd validates the plan; a failure is GraphApplyFailed and nothing is written.
Observed
500 chars: succeeded 3/3. 501 chars: failed BEADS_GRAPH_APPLY_FAILED 'invalid graph plan: node "head": title must be 500 characters or less (got 501)' 3/3.
Requirement / ADR
ADR-0023 preview/apply
Requirement / ADR follow-up
Team lead: triage against the cited requirement; no new requirement is asserted by this report.
Root cause
Observed ownership: external bd 1.3.1. Mechanism: BEADS_GRAPH_APPLY_FAILED
Recommended fix
Team lead pending triage; preserve the recorded classification and reproduction evidence.