Skip to content

feat(core): add opt-in --blind-compose and prohibition replay for E.6 premise propagation - #228

Open
devshin-91 wants to merge 4 commits into
google-research:mainfrom
devshin-91:feat/blind-compose-prohibition-replay
Open

devshin-91 wants to merge 4 commits into
google-research:mainfrom
devshin-91:feat/blind-compose-prohibition-replay

Conversation

@devshin-91

@devshin-91 devshin-91 commented Nov 22, 2026 •

Copy link
Copy Markdown

Addresses #199

Summary

Adds two strictly opt-in, answer-free CLI flags to mitigate Appendix E.6 premise propagation. Both flags default to False so default runs and paper reproduction remain unchanged.

What's included

  1. --blind-compose (harness2/cli/run_sweep.py, harness2/core/schedule.py, harness2/core/recursion.py)

    • Withholds earlier proposers' free-text <notes> (decisions) from Compose, subsequent sequential Propose rounds, and reflect_adoption so unverified rationales do not propagate into either Compose or the domain library (EXPERIENCE.md).
    • Recorded in _check_identity (config.json, backward-compatible with existing default configs) so ablations cannot silently reuse non-blind cached summaries.
  2. --prohibition-replay (harness2/core/prohibition.py, wired into recursion.py, schedule.py, run_sweep.py)

    • Purely deterministic, zero-LLM-token, answer-free check (extract_added_prohibitions, replay_prohibitions, check_pool_prohibitions, format_replay_report).
    • Scans only Markdown/prose harness files (skipping code comments), slices each line strictly to the prohibition clause (so "Use openpyxl; never call pandas" extracts only pandas), and handles "avoid using" / "stop using/calling/running/invoking", English apostrophes (Don't ... client's), e.g./i.e. abbreviations, soft-wrapped Markdown bullets, fenced code block skipping, and Windows backslash key normalization cleanly.
    • Matches target tokens with token boundaries preferring [ACTION] tool-call lines when present, caches each delivered rollout trajectory once per pool (O(R) instead of O(C*R)), sanitizes untrusted candidate excerpts before writing prohibition_replay.md, and in run_sequential diffs only the current round's stages against current_harness (avoiding stale round-1 re-triggers).
  3. Unit & regression tests (tests/test_premise_propagation.py)

    • Covers parallel (agg), sequential (seq k=2), clause scoping, [ACTION] word-boundary matching, O(R) trajectory caching, prompt-injection sanitization, and _check_identity ablation isolation.
    • Latest hardening commit: 602bef1.

Verification

python -m unittest tests.test_premise_propagation tests.test_subprocess_env -v
# Ran 9 tests in 6.186s — OK

@google-cla

google-cla Bot commented Nov 22, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@devshin-91

Copy link
Copy Markdown
Author

@googlebot I signed it!

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