Skip to content

tests: make bridge verification reproducible and auditable - #554

Open
bringhurst wants to merge 1 commit into
3.9-li-bridge/evidence-auditfrom
3.9-li-bridge/12-verifier-and-evidence
Open

tests: make bridge verification reproducible and auditable#554
bringhurst wants to merge 1 commit into
3.9-li-bridge/evidence-auditfrom
3.9-li-bridge/12-verifier-and-evidence

Conversation

@bringhurst

@bringhurst bringhurst commented Sep 2, 2026

Copy link
Copy Markdown
Member

Build and verify the candidate, stage local wrapper artifacts, run the selected suites and retain command evidence. Support supplied archives without local restaging. Audit the in-memory result before writing success. The auditor and its negative tests now precede this PR in #572. Complex orchestration is Python, with small Bash wrappers.

Verification and release boundary

The latest clean-source mixed migration and process-evidence audit pass locally. The current wrapper suite passes 132 tests, with unchanged Kafka dependencies before and after the run. The reorganized Python suite passes 65 tests. These results apply to the complete candidate stack, not every intermediate commit. Focused tests are included with the relevant layers.

The final requirement audit and remote CI review remain open. Published artifact qualification, live production state, the client/tool floor, the deployed ZooKeeper server, capacity limits and named security/release approvals remain release gates. Do not deploy an intermediate stack commit.

@bringhurst
bringhurst marked this pull request as ready for review September 2, 2026 23:51
Copilot AI lite review requested due to automatic review settings September 3, 2026 15:01
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from 948c3e4 to d2667de Compare September 3, 2026 15:01
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from d2667de to cbe9cf0 Compare September 3, 2026 15:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

verify_li_bridge.sh can leave verification-summary.json claiming success even if the final evidence-audit stage fails, making the recorded evidence internally inconsistent.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a reproducible “bridge verification” workflow for validating a 3.0-li → 3.9-li migration, including evidence capture, resumable execution, and a strict evidence auditor with unit coverage.

Changes:

  • Introduces verify_li_bridge.sh to run a staged verification plan (compiles, focused/full tests, artifact staging, mixed-process migration) while recording evidence.
  • Adds audit_li_bridge_evidence.py to validate evidence completeness and internal consistency (commands, fingerprints, archives, transitions, protocol-selection logs).
  • Adds stage_li_bridge_ivy.sh plus new unit tests covering the auditor’s acceptance/rejection cases.
File summaries
File Description
tests/unit/li_bridge_evidence_audit_test.py Unit tests for the evidence auditor (valid evidence + key failure modes).
tests/bin/verify_li_bridge.sh End-to-end verification runner that records evidence and supports resume/dry-run/full modes.
tests/bin/stage_li_bridge_ivy.sh Local artifact staging script for the wrapper’s Ivy-style layout.
tests/bin/audit_li_bridge_evidence.py Evidence auditing logic for coverage and consistency checks.
Review details
  • Files reviewed: 1/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch 2 times, most recently from 872788b to f885fe7 Compare September 3, 2026 15:18
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from f885fe7 to 981cff5 Compare September 3, 2026 15:22
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from 981cff5 to ffcdc18 Compare September 3, 2026 15:28
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from ffcdc18 to 2400bc1 Compare September 3, 2026 15:33
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from 2400bc1 to 03d6383 Compare September 3, 2026 15:41
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from 03d6383 to ae582f9 Compare September 3, 2026 15:47
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch 3 times, most recently from 8101956 to 8eb7360 Compare September 3, 2026 16:03
Copilot AI review requested due to automatic review settings September 3, 2026 16:07
Copilot AI review requested due to automatic review settings September 3, 2026 18:25
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from e105504 to ea52486 Compare September 3, 2026 18:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The staging script references a non-existent Gradle task path and the resume logic can skip re-running the final evidence audit, which can allow stale/invalid evidence to be reported as passing.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 3, 2026 18:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from ea52486 to ad83f3e Compare September 3, 2026 18:34
Copilot AI review requested due to automatic review settings September 3, 2026 18:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from ad83f3e to d2d1797 Compare September 3, 2026 18:41
Copilot AI review requested due to automatic review settings September 3, 2026 18:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 3, 2026 18:47
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from d2d1797 to 742c8cc Compare September 3, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 3, 2026 18:57
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from 742c8cc to 4c7974d Compare September 3, 2026 18:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 3, 2026 18:58
@bringhurst
bringhurst force-pushed the 3.9-li-bridge/12-verifier-and-evidence branch from 4c7974d to c1a2eed Compare September 3, 2026 18:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 3, 2026 19:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants