Skip to content

have contains read the reports, not the contributor headings the judge is shown - #44

Open
saadiqbal-dev wants to merge 1 commit into
MultiAgency:mainfrom
saadiqbal-dev:fix/contains-without-headings
Open

saadiqbal-dev wants to merge 1 commit into
MultiAgency:mainfrom
saadiqbal-dev:fix/contains-without-headings

Conversation

@saadiqbal-dev

Copy link
Copy Markdown
Contributor

Closes #43.

With several reports, contains read d.text, which is judgedText(delivered): each report under a ## <contributor account> heading, for the model judge. contains matched those headings as if they were report text.

contains reports before after
"testnet" alice.testnet, bob.testnet; neither says it pass fail
"alice", absent the same; neither says it fail pass
"## ", absent the same; no heading in either fail pass
"testnet" one report, alice.testnet fail fail

The last row is why it mattered beyond one check. A contributor's /api/check sees one draft, with no heading, so the same report could pass at precheck and fail at evaluation, or the other way round.

Change

  • app/src/server/checks.ts: contains reads the reports' own texts, joined, through reportsOf, like the other checks. llm_judge still sees the headings.
  • docs/spec.md, "A criterion holds for the deliverable as a whole": contains reads the reports' joint text "without the contributor headings a model judge is shown".
  • app/test/checks.test.ts: the rows above, in both report orders, under the rule's existing citation.

Rules changed

bun scripts/rules-changed.ts db6f449:

reworded: A criterion holds for the deliverable as a whole
  cited by: app/test/checks.test.ts:322

Verified

  • pnpm typecheck passes.
  • pnpm test: 386 passed, 1 skipped.
  • The new test failed before the fix (expected 'pass' to be 'fail').
  • pnpm test:e2e is flaky on this machine under full-suite load, on main too (7 failures there). The journey and launch-link specs that failed pass when run alone, and 15/15 with --repeat-each=5, on both main and this branch.

There are no changes to the contract, the Rust evaluator (one report per run, with a pinned hash), Params or wire formats.

🤖 Generated with Claude Code

…e is shown

With several reports, `contains` read `judgedText(delivered)`, which heads each report with
`## <contributor account>` for the model judge. A phrase found only in an account name
(`testnet`, `alice`) passed a required `contains`, and the same phrase with `absent` failed,
whatever the reports said. With one report there is no heading, so precheck and evaluation
could disagree. `contains` now reads the reports' own texts joined together, like every other
check that reads them through `reportsOf`.

docs/spec.md, "A criterion holds for the deliverable as a whole", says so.

Closes MultiAgency#43

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@saadiqbal-dev

Copy link
Copy Markdown
Contributor Author

CI on this branch's head (dd7aa64) passed in full on the fork, with every job green, browser included: https://github.com/saadiqbal-dev/extents/actions/runs/45890151199. The run here is waiting for a maintainer's approval.

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.

With several reports, contains also matches the contributor headings the evaluator adds

1 participant