Skip to content

Keep reports from all completed inputs - #801

Merged
vfusco merged 5 commits into
next/2.0from
fix/keep-nonaccepted-reports
Oct 2, 2026
Merged

vfusco merged 5 commits into
next/2.0from
fix/keep-nonaccepted-reports

Conversation

@vfusco

@vfusco vfusco commented Oct 2, 2026

Copy link
Copy Markdown
Member

Keep reports from accepted, rejected, and terminal inputs. Include these reports in API queries and Full replay checks. Use PostgreSQL COPY to store large output and report sets.

@vfusco vfusco added this to the 2.0.0 milestone Oct 2, 2026
@vfusco
vfusco requested review from mpolitzer and renatomaia and a balanced review from Copilot October 2, 2026 00:43
@vfusco vfusco self-assigned this Oct 2, 2026

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 review overview

🔵 Needs a closer look

It changes cross-layer persistence and replay semantics while introducing high-volume PostgreSQL COPY behavior requiring final human validation.

Review effort: Balanced
Findings: None

What changed in this PR

Persists reports for all completed inputs, exposes them through APIs, and verifies them during full replay.

Changes:

  • Retains reports from rejected and terminal inputs.
  • Uses PostgreSQL COPY for large report/output sets.
  • Expands repository, replay, API, and integration coverage.
File Description
test/​integration/​terminal_machine_states_test.go Clarifies report expectation.
test/​integration/​lifecycle_test.go Verifies report persistence and API reads.
test/​integration/​echo_authority_test.go Checks inspect report payload.
test/​integration/​cli_helpers_test.go Adds filtered and single-report helpers.
internal/​repository/​repotest/​report_test_cases.go Updates report-filter assumptions.
internal/​repository/​repotest/​report_filter_test_cases.go Tests completed-status report queries.
internal/​repository/​repotest/​nonaccepted_reports_test_cases.go Tests rejected and large report sets.
internal/​repository/​repotest/​bulk_test_cases.go Covers nonaccepted report persistence.
internal/​repository/​repotest/​advance_evidence_test_cases.go Tests large COPY payloads and rollback.
internal/​repository/​replay.go Documents full replay semantics.
internal/​repository/​postgres/​report.go Includes nonaccepted reports in epoch queries.
internal/​repository/​postgres/​replay_source_test.go Covers rejected reports in replay pages.
internal/​repository/​postgres/​copy_cancellation_test.go Tests COPY cancellation handling.
internal/​repository/​postgres/​bulk.go Implements COPY persistence and all-status reports.
internal/​repository/​postgres/​bulk_test.go Verifies schema-qualified COPY targets.
internal/​replay/​run_test.go Adds reports to replay executor fixtures.
internal/​replay/​report_test.go Tests nonaccepted and legacy replay reports.
internal/​replay/​compare.go Compares reports for every completed input.
internal/​replay/​compare_test.go Expands completion-matrix coverage.
internal/​manager/​invalid_outputs_root_test.go Verifies terminal report retention.
internal/​manager/​instance.go Preserves reports across completion statuses.
internal/​manager/​instance_test.go Tests rejected and terminal reports.
internal/​advancer/​invalid_outputs_root_test.go Verifies invalid-root report persistence.
internal/​advancer/​determinism_test.go Includes reports in determinism checks.
internal/​advancer/​advancer_test.go Covers report propagation through advancing.

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

@vfusco
vfusco added this pull request to stack #802 October 2, 2026 00:58
mpolitzer
mpolitzer previously approved these changes Oct 2, 2026
Base automatically changed from feature/contracts-bump to next/2.0 October 2, 2026 17:36
@vfusco
vfusco dismissed mpolitzer’s stale review October 2, 2026 17:36

The merge-base changed after approval.

@vfusco
vfusco merged commit aaa0485 into next/2.0 Oct 2, 2026
22 checks passed
@vfusco
vfusco deleted the fix/keep-nonaccepted-reports branch October 2, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants