Skip to content

Blocker report: full + anonymized twin from one run, salted hashes, leak test, schema (Part of #5054) - #5230

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5054-20261016T0816Z
Oct 16, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5054-20261016T0816Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5054 (first slice: one run, two reports).

What

tests/tools/blocker_report.py reads proof_blockers.py --json (#4270, the data #4493/#5051 build on) and writes blocker_report.full.{md,json} (stays with the customer) and blocker_report.anon.{md,json} (safe to send) in one run.

  • The anonymized report is built from an allow-list, not scrubbed: category, sub-class, a signature assembled only from fixed vocabulary (CICS verbs/options from the command spec, EIB facts, refusal classes), counts, engine and rule-catalogue version. Refusal messages, details, paths, case/corpus names and unknown gap text are dropped.
  • Names (copybook, program, field, event, option, estate) become KIND_xxxxxx = HMAC-SHA256(salt, KIND:NAME) prefix. One salt per customer in --salt-file (0600, never written to a report): same salt gives the same hashes, another salt gives different ones.
  • manifest in the JSON and --manifest list the emitted fields; --redact-more subclass counts.
  • Schema, versioned 1.0: docs/language_status/blocker_report_schema.md.

Class table

Class: report fields that can carry a customer identifier from one data path.

Member Status
missing copybook name hashed
refusal message (may hold names, literals) class name only
scenario-diff field root hashed
LINKed program name in coverage gap hashed
EIB/ASSIGN fact name kept if in spec, else hashed
CICS option words kept if in spec, else hashed
estate/corpus/program/case/path/detail dropped (estate hashed)
unknown gap text other, no text

Tests

tests/tools/test_blocker_report.py (15, <1 s): parity of categories and counts; merge counting; leak test on a synthetic estate (names, paths, literals, a literal in a refusal message, Unicode and 300-char names); leak test on the real names of CardDemo, GenApp, CBSA, zECS (skipped when not checked out); stability per salt and difference across salts; salt file; redact-more; manifest equals emitted fields; empty input; CLI.

Gates

pr_gates --fast: 6/6 pass. pr_gates --ratchets: 8 pass, 0 fail, 0 skipped. No engine code touched, no golden change.

Left for #5054 (Part of)

🤖 Generated with Claude Code

…shes, leak test, schema doc (Part of #5054)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 16, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 16, 2026 08:26
@squid-protocol
squid-protocol enabled auto-merge (squash) October 16, 2026 08:27
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5230 @ be89c52: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38873754623/job/116885496130
repro: python -m pytest -q tests/core_engine/test_cics_spec.py::test_only_the_listed_consumers_import_the_spec tests/test_source_reads.py::test_no_source_read_loses_a_byte
failing tests: tests/core_engine/test_cics_spec.py::test_only_the_listed_consumers_import_the_spec tests/test_source_reads.py::test_no_source_read_loses_a_byte
errors:
fail-on-cache-miss: false
E AssertionError: assert {'gitgalaxy/t..._blockers.py'} == {'gitgalaxy/t..._blockers.py'}
tests/core_engine/test_cics_spec.py:106: AssertionError
E AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an estate file:
tests/test_source_reads.py:145: AssertionError
FAILED tests/core_engine/test_cics_spec.py::test_only_the_listed_consumers_import_the_spec - AssertionError: assert {'gitgalaxy/t..._blockers.py'} == {'gitgalaxy/t..._blockers.py'}
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 168761
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is b1f07a3915228c398f117b1ae8a8a7e80a5b380b2a0b88f6ce2512a52cd0e423
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 12035237415
Artifact test-times-part-3 has been successfully uploaded! Final size is 168761 bytes. Artifact ID is 12035237415
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38873754623/artifacts/12035237415
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/5b113e99-f0ef-489e-a046-e2efc0cc5058' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 16, 2026
…ate source losslessly (Part of #5054)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 16, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (44dcf62) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 16, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 16, 2026 12:29
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit ea93351 into main Oct 16, 2026
31 checks passed
@squid-protocol
squid-protocol deleted the churn/5054-20261016T0816Z branch October 16, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant