Skip to content

feat(benchmarks): audit research status evidence - #309

Merged
morluto merged 17 commits into
mainfrom
agent/harbor-research-status-evidence-audit
Aug 2, 2026
Merged

feat(benchmarks): audit research status evidence#309
morluto merged 17 commits into
mainfrom
agent/harbor-research-status-evidence-audit

Conversation

@yuelgrace1810-ops

Copy link
Copy Markdown
Collaborator

Summary

Adds one Hard, literature-grounded Harbor benchmark that audits whether frozen evidence actually supports research-status claims without asking the agent to solve an open problem.

Source and provenance

  • Dataset: amphora/ResearchMath-14k
  • Revision: f22d0f28b55e6e777acf82e722d97ae982dff02e
  • Split/rows: test rows 0, 1, 2, and 5
  • Frozen packet SHA-256: 6a4f30bc54142ae03756a412b1c54a2854e81e1d22f8311dc7aa0ec7796e26e0
  • License: MIT

Selection and quality

Independent score: 87/100. The task adds citation-to-claim support auditing, chronology-sensitive status calibration, and explicit separation between historical evidence, partial progress, reported resolution, and unsupported present-day status. It was checked against merged tasks and active benchmark PRs at the workflow, verifier, failure-mode, and assurance-boundary levels.

Nearby candidates were rejected when their current status could not be independently adjudicated from frozen evidence or when they would duplicate the same evidence-calibration workflow.

Verifier design

The clean-room verifier checks:

  • exact evidence and source bindings;
  • chronology and claim-support relationships;
  • unsupported inference identifiers;
  • classification consistency;
  • duplicate, unknown, malformed, and omitted evidence;
  • explicit COMPUTED assurance boundaries.

It does not assert the truth of an open conjecture or claim that frozen historical citations establish current status.

Validation

  • Focused Harbor/research/tooling suite: 321 passed
  • Full unit lane: 707 passed
  • Harbor support and manifest checks: passed
  • Ruff lint and format: passed
  • Linux-platform mypy: 417 source files, passed
  • Complexity baseline: unchanged
  • git diff --check: passed
  • Dataset digests/manifests/count assertions: synchronized

Native macOS mypy still encounters the repository's known resource.prlimit platform-stub issue; the Linux target used by CI passes. A Docker-backed Harbor run was unavailable on this host, so it is not claimed; Oracle and adversarial scoring are exercised through the repository test harness.

Reusable-tool review

This implementation exposed a possible future citation-support/status-audit helper, but only one validated reuse episode exists. Per the tool-quality gate, no premature tool or skill PR is included; the gap remains deferred until repeated benchmark implementations establish a stable reusable contract.

@yuelgrace1810-ops
yuelgrace1810-ops force-pushed the agent/harbor-research-status-evidence-audit branch from 1478376 to 3f9da9a Compare August 1, 2026 19:27
@morluto
morluto marked this pull request as ready for review August 2, 2026 06:53

@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: 3f9da9a925

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

morluto commented Aug 2, 2026

Copy link
Copy Markdown
Owner

@codex

@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: 3f9da9a925

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

…idence, scope, and assurance

A mathematically correct submission with escaped evidence, wrong scope, or
wrong assurance previously earned the 0.7 base partial reward. Gate the base
on all three components so only the 0.1 per-component scores remain when any
component fails. Add focused attack tests for wrong scope, escaped evidence,
and wrong assurance that assert the base reward is withheld while the metric
fields remain independently reported.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@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: ed440193c5

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

@morluto
morluto force-pushed the agent/harbor-research-status-evidence-audit branch from d8aa1f1 to d0efc8c Compare August 2, 2026 07:32
…est for research-status-evidence-audit

The verifier.py reward-gating change invalidated the Dockerfile checksum label
and the dataset.toml task digest. Regenerate both via sync_harbor_verifier_support
--write and check_harbor_dataset --write, and update the manifest digest in the
comparison-plan and gap-ledger to match the regenerated dataset.toml.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@morluto
morluto force-pushed the agent/harbor-research-status-evidence-audit branch from d0efc8c to 71072a5 Compare August 2, 2026 07:33

@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: 71072a5028

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

Address all unresolved review threads on PR #309:

- Validate the immutable frozen input from /tests/input.json instead of
  the agent-writable /app/input.json copy; reject any byte mismatch so a
  tampered citation packet cannot score (PRRT_kwDOThEfjc6Vuw0q).
- Bind the evidence explanation to the submitted result via a RESULT_JSON
  marker, preventing keyword-only evidence from scoring without supporting
  the classified cases (PRRT_kwDOThEfjc6Vuw0u).
- Catch UnicodeError alongside OSError when reading evidence so invalid
  UTF-8 yields a zero-scored rejection instead of a crash
  (PRRT_kwDOThEfjc6Vuw0y).
- Require the exact expected citation set per case instead of a subset,
  rejecting unrelated selected citations like SW1999 for the binomial
  case (PRRT_kwDOThEfjc6Vu4rI).
- Enforce a 1 MiB evidence size bound before hashing and decoding so
  oversized malformed evidence cannot OOM or time out the verifier
  (PRRT_kwDOThEfjc6Vu4rK).
- Reject undeclared result fields by requiring set(result) == {"cases"},
  enforcing the schema's additionalProperties: false boundary
  (PRRT_kwDOThEfjc6Vu4rL).
- Validate that case_id is a string before set membership, preventing
  TypeError on unhashable JSON values (PRRT_kwDOThEfjc6Vu8lt).
- Publish the unsupported_inference vocabulary as an enum in the
  submission schema so agents can match the Oracle's serialization
  (PRRT_kwDOThEfjc6Vu8lu).
- Record the unsupported exponent-range characterization inference for
  the Lebesgue-Nagell case, reflecting that the frozen citations do not
  substantiate the "small and sufficiently large" range description
  (PRRT_kwDOThEfjc6Vu8lv).
- Refresh the verifier checksum and dataset manifest digest
  (PRRT_kwDOThEfjc6Vu8ls).
- Make tests/input.json byte-identical to environment/input.json so the
  frozen-input comparison works in the test harness.

Add regression tests for tampered input, extra citations, undeclared
result fields, non-string case IDs, missing RESULT_JSON marker, oversized
evidence, invalid UTF-8, and the required exponent-range inference.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@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: b9937df148

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

@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: 203302ec6d

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

@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: 79d0e9585a

ℹ️ 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 thread benchmarks/datasets/agent-workflow-v1/README.md Outdated

@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: 51280018c5

ℹ️ 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 thread research/evaluations/capability-workflow-v1/gap-ledger.json Outdated

@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: 7841100fb1

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

morluto and others added 2 commits August 2, 2026 22:20
The RESULT_JSON: marker carries the classifications, case IDs, and selected
evidence IDs, which already encode the resolution, partial-progress,
historical-openness, and problem-listing terms. Building the semantic text
from the whole file let a submission whose prose supported none of the
classifications (e.g. "This is not a problem statement.") pass every
semantic_claims check and earn full evidence validity. Construct the lowered
semantic text from prose only, so the result marker can no longer supply the
explanation-bound terms. Add an attack test that asserts a canonical result
marker with non-supporting prose is rejected for evidence validity while the
metric fields remain independently reported.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@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: 949bee59c4

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

@morluto
morluto merged commit 96349e6 into main Aug 2, 2026
33 checks passed
@morluto
morluto deleted the agent/harbor-research-status-evidence-audit branch August 2, 2026 15:14

@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: 058ff8b9aa

ℹ️ 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 +193 to +197
semantic_claims = (
(
any(term in lowered for term in ("resolved", "solves", "all integer solutions"))
and any(term in lowered for term in ("binomial", "bmss2019"))
),

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 negated evidence explanations

Fresh evidence after the earlier explanation-binding comment: the new semantic_claims checks still test only for substring presence and ignore negation. A canonical result paired with prose such as “the BMSS2019 binomial is not resolved; KP2025's Lebesgue results are not partial; Z2008 is not a historical open problem about vanishing; W2007 is not a workshop problem listing” satisfies all four checks and receives full evidence validity and reward even though every classification is contradicted. Validate affirmative claims rather than keyword co-occurrence.

AGENTS.md reference: AGENTS.md:L18-L19

Useful? React with 👍 / 👎.

@morluto morluto changed the title benchmarks: audit research status evidence feat(benchmarks): audit research status evidence Aug 24, 2026
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.

2 participants