Skip to content

Restore optional minimum-flow audits and experiment diagnostics - #2229

Merged
hendrikschilling merged 1 commit into
mainfrom
fiber-min-flow-audit-tools
Oct 22, 2026
Merged

hendrikschilling merged 1 commit into
mainfrom
fiber-min-flow-audit-tools

Conversation

@hendrikschilling

Copy link
Copy Markdown
Contributor

In one sentence: Restore historical winding diagnostics as reusable, optional tools for fresh runs and saved solutions.

One real example: On the large free-fiber dataset, enforcing every known sign costs an additional 4.134 L1; minimizing sign deficit at the original L1 optimum still leaves three deficit steps.

Before: The extracted runner omitted sign-feasibility analysis, rounded-versus-fractional comparisons, source-AFC verification and detailed audit summaries.

After this PR: These capabilities are available through configurable audits and a standalone saved-solution CLI. Local configs and generated results remain outside the repository.

Proof: 93 tests pass. All ten benchmark solves retain identical arrays, GT metrics and optimality certificates. All seven target comparisons reproduce historical objectives and changed fiber IDs. Source-AFC verification passes on the real database underlying the five small benchmarks: 46 rows per case, exact signs/classifications, maximum distance roundoff 1.07e-7. Five independent corruptions of temporary database copies (sign, classification, distance, endpoint identity and deleted event) are rejected; original inputs remain unchanged.

Why / where this is useful: Diagnose winding disagreements and compare experiments without losing historical analysis features or modifying saved solutions.

  • I personally verified the example and proof on the stated data.

…stics

Include real AFC verification and corruption-check validation.
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
scrollprize-org Ignored Ignored Preview Oct 22, 2026 12:58pm UTC

Request Review

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-22T13:05:01.679904Z 9c2c28f Manual request
ℹ️ 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.

@hendrikschilling
hendrikschilling merged commit e134fc1 into main Oct 22, 2026
20 checks passed
@hendrikschilling
hendrikschilling deleted the fiber-min-flow-audit-tools branch October 22, 2026 13:04

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9c2c28fb66

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +434 to +435
if any(output == Path(p) or output in Path(p).parents for p in inputs):
raise ValueError('Audit output must not contain inputs')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject audit outputs nested under the source tree

When the standalone CLI is invoked with an output such as --output /path/to/existing-results/audits, this check passes because that directory is neither equal to nor an ancestor of any individual input file. The subsequent mkdir and writes therefore modify the results tree supplied via --source, despite the CLI promising that source is never modified; the final digest check also misses newly added files. Reject outputs equal to or descending from args.source.

Useful? React with 👍 / 👎.

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