Skip to content

golden-crucible.yml never invokes golden_diff.py -- wire in the missing comparison step #328

Closed

Description

@squid-protocol

Problem

golden-crucible.yml and tests/golden_diff.py are not connected. The
workflow clones language-crucible, runs galaxyscope against it with a
180s timeout, and then just prints a directory tree:

- name: Execute Resilience Engine
  run: timeout 180s galaxyscope ./language-crucible --output ./telemetry_out/ ...

- name: Debug File System (Tree)
  run: |
    tree -L 2
    ls -lh telemetry_out/

golden_diff.py is never invoked. The workflow is accurately named a
"Resilience Test" -- it verifies the engine doesn't crash or hang against a
real polyglot repo -- but it does not verify the output is correct or even
unchanged. This gap let every bug found in #249, #311-#317, and the
AIAppSecSensor/AI-detection issues ship and stay invisible: none of them
crash the pipeline, so a pure resilience test can't catch any of them.

Fix

Add a step after "Execute Resilience Engine" that actually invokes the
comparison:

- name: Compare Against Golden Master
  run: python tests/golden_diff.py tests/golden_master/language_crucible_golden.json telemetry_out/<output_file>.json

(exact --output filename needs confirming against what a directory-target
scan actually produces -- verify the *_audit.json naming pattern before
finalizing).

This step should fail the PR check on mismatch, same as any other gating
CI step.

Explicitly out of scope for this issue

  • Whether golden_diff.py should be a pytest test vs. a standalone script
    (separate issue).
  • Where the golden_master.json fixture comes from / how it gets updated
    (separate issue).
  • A true correctness test suite with hand-verified expected findings
    (separate, larger issue).

This issue is scoped to exactly one thing: make the CI workflow actually
call the diff script that already exists, so a mismatch fails the build
instead of silently passing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugci-cdpriority: high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions