Skip to content

chore: remove golden-path demo simulation - #3545

Closed
PetrefiedThunder wants to merge 6 commits into
mainfrom
muse/remove-golden-path-sim
Closed

PetrefiedThunder wants to merge 6 commits into
mainfrom
muse/remove-golden-path-sim

Conversation

@PetrefiedThunder

@PetrefiedThunder PetrefiedThunder commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Removes the golden-path demo simulation. C.Lee approved this himself at 12:14 PM PT on Oct 23, 2026.

Removed

  • scripts/run_full_fsma_simulation.py
  • tests/scripts/test_run_full_fsma_simulation.py (only tested that script)

Edited (references dropped)

  • README.md: removed the "fast golden contract" paragraph and command
  • docs/GOLDEN_PATH.md: removed the "Fast Verification" section (script command and its /tmp artifacts)
  • docs/runbooks/inflow_workbench_design_partner_demo.md: removed the "fast simulator" step
  • scripts/run_recall_fixture.py and sample_data/recall_fixture/ were deleted on main by test: remove invented sample_data, demo_exports, QA bad fixtures (SEL-447) #3512. After merging main, this PR no longer touches them, and the recall-fixture section in docs/GOLDEN_PATH.md was dropped with them.

Intentionally kept

  • Recall simulation feature: app code, routes, UI and tests are unchanged by this PR
  • Shared modules the script imported (app.fda_export_service, shared.canonical_event, shared.cte_persistence, shared.rules.*). Many other files import them. The script's scenario data was inline, so no data files are removed.
  • tests/integration/golden_path/ and services/ingestion/tests/test_compliance_e2e.py: separate tests that don't use the script
  • docs/GOLDEN_PATH.md stays; the rest of it covers the golden-path narrative
  • Dated historical records under docs/audits/ and docs/qa/ still mention the script and are left unchanged

There was no Makefile, and no CI workflow, pyproject or .secrets.baseline entry referred to the script.

Checks

  • rg -n "run_full_fsma_simulation|regengine-golden-path" outside docs/audits and docs/qa finds nothing
  • tests/scripts/test_check_docs_links.py: 25 passed

Reviewer: VS Code Gemini. Do not merge while the merge freeze is on.


Note

Low Risk
Documentation and deletion of a standalone demo script with no production or CI wiring; core FSMA pipelines and other tests remain untouched.

Overview
Removes the DB-free “fast golden contract” FSMA simulation (scripts/run_full_fsma_simulation.py) and its dedicated script test. That runner simulated Inflow-style events, stateless rule evaluation, hash-chain evidence, and FDA CSV output without Postgres; it is no longer part of the recommended verification path.

Docs now steer local proof at persisted evidence only: README, docs/GOLDEN_PATH.md, and the Inflow design-partner runbook drop commands and narrative for run_full_fsma_simulation.py / /tmp/regengine-golden-path, and instead emphasize verify_inflow_to_regengine_e2e.py (and the existing heavier e2e_brutal_scenario.py in GOLDEN_PATH). Recall simulation app code, integration golden-path tests, and shared ingestion/rule modules are unchanged.

Reviewed by Cursor Bugbot for commit 95daa2c. Bugbot is set up for automated code reviews on this repo. Configure here.

Coverage gap

No CI workflow runs tests/integration/golden_path, so it never reported on this PR. It was not run locally either: the Mac has no project venv and httpx is missing, and nothing was installed. Those tests do not import or invoke scripts/run_full_fsma_simulation.py, which an rg across the repo confirms, so deleting the script cannot affect them. Wiring golden_path into CI is a separate follow-up.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
regengine Ready Ready Preview Oct 24, 2026 5:09am UTC

@cursor

cursor Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: c04403af-a1f2-49dd-a1c8-353b3f624ed3)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T20:21:15.860588Z 8157962 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

PR Blocker Checklist

Head SHA: b12bb727e695ac2382980031715fc881eb6b187d

Status: Blocked (1 open blocker)

Review Threads (0 unresolved)

  • All review threads resolved

Changes Requested (0)

  • No reviews requesting changes

Blocked Engines (1)

  • Engine gemini blocked at 636f0f6 (current head: b12bb72): View verdict: REVIEW: FAIL gemini 636f0f6fc890bbe2cd6528c4d35958b3b6606352

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration
Commits

Reviewing files that changed from the base of the PR and between d234870 and b12bb72.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review.

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 8157962 and 636f0f6.

📒 Files selected for processing: 2
  • README.md
  • docs/GOLDEN_PATH.md
💤 Files with no reviewable changes: 2
  • README.md
  • docs/GOLDEN_PATH.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

Walkthrough

The pull request deletes the database-free FSMA simulation runner and its integration test. It also removes the runner’s instructions from the README and runbook, and removes the “Fast Verification” section from the golden-path documentation. The full Postgres-backed verifier instructions remain.

Priority: Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Merge Risk: Minimal · up to 636f0

No actionable merge risk is established from this review. Honor the stated merge freeze before merging.

Architecture risk: Low · up to 81579

The change affects 4 systems.

Changed systems: docs, scripts, README.md, tests

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — docs (service) was modified; 2 changed files map to changed impact.
  • observed — scripts (service) was modified; 2 changed files map to changed impact.
  • observed — README.md (service) was modified; 1 changed file maps to changed impact.
  • observed — tests (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in README.md: Removed the instructions and command for running scripts/run_full_fsma_simulation.py --json without Postgres persistence.
  • observed — Modified behavior in docs/GOLDEN_PATH.md: The “Fast Verification” documentation was removed, including the simulation command, /tmp/regengine-golden-path default output location, descriptions of summary.json and fda_export.csv, and the list of primitives the check covered.
  • observed — Modified behavior in docs/runbooks/inflow_workbench_design_partner_demo.md: The instructions describing the DB-free fast simulator and its command were removed; the subsequent full-verifier instructions remain.
  • observed — Modified behavior in scripts/run_full_fsma_simulation.py: The entire simulation runner was removed, including its deterministic event fixtures, canonicalization and stateless-rule evaluation, evidence hash-chain generation, FDA CSV and JSON artifact writing, and CLI. Previously, the CLI returned 0 only when the summary detected an initial failure point and exactly three events were exportable; otherwise it returned 1.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description gives a clear summary, lists removed and retained files, and reports verification results. It does not follow the repository template because it omits the required Type of Change, Test… Add the missing template sections. Mark the applicable change types, document the tests run and the unrun golden-path tests, complete the checklist, and state related issues or explicitly indicate that none apply.
Passed Passed checks: 4 passed
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: removal of the golden-path demo simulation.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

Full details: Description check

Explanation

The description gives a clear summary, lists removed and retained files, and reports verification results. It does not follow the repository template because it omits the required Type of Change, Test Plan, Checklist, and Related Issues sections.

Resolution

Add the missing template sections. Mark the applicable change types, document the tests run and the unrun golden-path tests, complete the checklist, and state related issues or explicitly indicate that none apply.

✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@PetrefiedThunder PetrefiedThunder left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW: FAIL gemini 8157962

Code looks right, but there is no CI to rely on:

  1. Recall simulation untouched: the only change in scripts/run_recall_fixture.py is the docstring line ("DB-free by design, like scripts/run_full_fsma_simulation.py." becomes "DB-free by design."). No recall code, tests or endpoints changed.
  2. No dangling references: git grep at this SHA finds run_full_fsma_simulation only in docs/audits/RECALL_FIXTURE_AUDIT_2026-09-16.md and in dated docs/qa/2026-10-02 artifacts, both excluded. No workflow, Makefile, package.json or code imports it. tests/e2e/run_fsma_simulation.py is a separate script and is unaffected.
  3. No new data: the PR only deletes lines (plus one docstring edit).
  4. CI: the PR is CONFLICTING with main (mergeStateStatus DIRTY), so pull_request workflows did not run. The only run for this SHA is CodeQL (dynamic) plus Vercel. Backend CI, test-suite-check (tests/scripts) and the tests/integration/golden_path suite have no results. Please update the branch from main by merge, not rebase or force push, so CI runs. I will re-review once the backend and golden path jobs report.
    Not merging: merge freeze.

…th-sim

# Conflicts:
#	docs/GOLDEN_PATH.md
#	scripts/run_recall_fixture.py
@cursor

cursor Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: ec892d7b-94b9-46f4-bdce-1b0ce2de0c8c)

@PetrefiedThunder PetrefiedThunder left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW: FAIL gemini 636f0f6

Content is correct. CI has one failure that this PR causes:

  1. Merge resolution is correct. #3512 (merged a0911dc) deleted scripts/run_recall_fixture.py, tests/scripts/test_run_recall_fixture.py and sample_data/recall_fixture/. None of them exist on main 03903ee or at this head. The diff against main is now only the golden-path simulation removal: README -6, docs/GOLDEN_PATH.md -21 (the "Fast Verification" section), the runbook -6, and the deleted scripts/run_full_fsma_simulation.py and its test. 493 deletions, 0 additions.
  2. No dangling references: git grep at this head finds no run_full_fsma_simulation, run_recall_fixture or recall_fixture anywhere outside docs/audits and docs/qa.
  3. No new data, since the PR only deletes lines.
  4. CI compared with main 03903ee (Backend run 39939184076):
    • Test ingestion: identical, the same collection ERROR in tests/test_ingest_error_logging_2868.py (fixed by #3528).
    • Repo-root suite: identical, 1 failed / 267 passed, test_check_supply_chain::test_real_tree_passes_with_committed_baseline.
    • Test admin, compliance, nlp, graph, shared and scheduler and the Live DB suite pass. The Ingestion full suite and PR Gate: Backend were still pending.
    • Caused by this PR: Commit Message Check fails because "Remove golden-path demo simulation ..." and the merge commit are not Conventional Commits. Fix the PR title to e.g. "chore: remove golden-path demo simulation" (squash uses the title); if the check still reads each commit, a maintainer decision is needed. Do not rewrite pushed commits.
    • No CI job runs tests/integration/golden_path (no workflow references it), so it has no result. Please state how it was verified, or note it as a Coverage gap.
      Not merging: merge freeze.

@PetrefiedThunder PetrefiedThunder changed the title Remove golden-path demo simulation (scripts/run_full_fsma_simulation.py) chore: remove golden-path demo simulation Oct 23, 2026

@PetrefiedThunder PetrefiedThunder left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW: PASS gemini 636f0f6

  • Head unchanged at 636f0f6, no code change since the last review. Title is now "chore: remove golden-path demo simulation" and the body has a "Coverage gap" section for tests/integration/golden_path.
  • I ran my own check: git grep at this head for run_full_fsma_simulation, test_run_full_fsma, run_recall_fixture and recall_fixture under tests/integration/golden_path/ (init, conftest, helpers, test_golden_path) finds nothing. Deleting the script cannot affect those tests, so the Coverage gap note is acceptable.
  • Commit Message Check is red but not required. The required checks are CI Status Gate, PR Gate: Backend/Frontend and PR Gate: Workflow Contract. The new title should be used for the squash.
  • Backend failures match main 03903ee (run 39939184076):
    • Test ingestion: same collection error in tests/test_ingest_error_logging_2868.py.
    • Repo-root suite: same single failure, test_check_supply_chain::test_real_tree_passes_with_committed_baseline.
    • Ingestion full suite (xdist): the same 8 FAILED/ERROR test ids as main.
    • PR Gate: Backend is red only because it aggregates the Backend CI Status Gate.
  • Non-blocking note: the PR body is out of date about scripts/run_recall_fixture.py. It lists a docstring edit and says the file and its tests are kept, but #3512 deleted them on main and this PR's diff doesn't touch them. Please correct the body.
    Not merging: merge freeze.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Branch updated with main

Main was merged into muse/remove-golden-path-sim at the new head (95daa2c1bcf33ca1aa7fb4798bc40f6c524b9807).

Because merge commits created with GITHUB_TOKEN do not trigger workflows, a push to this branch or a manual CI re-run is needed for checks to run on it.

Last synced: 2026-10-24T02:11:13.773Z

Signed-off-by: Christopher <131207452+PetrefiedThunder@users.noreply.github.com>

@PetrefiedThunder PetrefiedThunder left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW: PASS grok 95daa2c

Delta review of #3545 from my previous PASS at 20384c7.

The only commit since then is 95daa2c ("chore(ci): retrigger checks"), a single-parent empty commit on top of 20384c7. Its tree (a28f8be8487a) is identical to the previously reviewed tree; git diff 20384c7..95daa2c is empty. No content changed, so the prior PASS carries over to this head.

Posted with C.Lee's approval (Oct 23, 2026, 6:27 PM PT).

@PetrefiedThunder
PetrefiedThunder enabled auto-merge (squash) October 24, 2026 02:02
@PetrefiedThunder

Copy link
Copy Markdown
Collaborator Author

REVIEW: PASS pi d234870
Delta since 95daa2c is only the github-actions main sync merge (clean, no manual conflict resolution; parents = prior PASS head + main), no PR code changes.

@PetrefiedThunder PetrefiedThunder left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delta review: since the last PASS, the only change is a clean sync merge of main with no manual conflict resolution.

REVIEW: PASS pi d234870

Signed-off-by: Christopher <131207452+PetrefiedThunder@users.noreply.github.com>
@PetrefiedThunder

Copy link
Copy Markdown
Collaborator Author

Superseded by #3559 (same tree, Conventional Commit history). Branch kept.

auto-merge was automatically disabled October 24, 2026 05:10

Pull request was closed

PetrefiedThunder added a commit that referenced this pull request Oct 24, 2026
* chore: remove golden-path demo simulation

Removes scripts/run_full_fsma_simulation.py, its test, and doc references. Recall drill simulator, /proof/recall-drill and sample_recall_drill.csv are untouched. Replaces #3545.

Signed-off-by: Christopher <131207452+PetrefiedThunder@users.noreply.github.com>

* docs: mark golden-path sim references as removed in recall audit

Signed-off-by: Christopher <131207452+PetrefiedThunder@users.noreply.github.com>

---------

Signed-off-by: Christopher <131207452+PetrefiedThunder@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — b12bb727 Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant