Skip to content

docs: publish public benchmark receipts - #509

Merged
mohanagy merged 3 commits into
mainfrom
chore/public-benchmark-receipts
Jun 7, 2026
Merged

mohanagy merged 3 commits into
mainfrom
chore/public-benchmark-receipts

Conversation

@mohanagy

@mohanagy mohanagy commented Jun 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • publish isolated warm-cache explain-runtime receipts for documenso, formbricks, dub, cal-diy, and novu under docs/benchmarks/suite/results/2026-06-07T*
  • add a dedicated scoped Twenty receipt under docs/benchmarks/2026-06-07-twenty-server-modules-runtime because the root repo graph exceeds the current compare size guard
  • update benchmark docs and regression tests so the new published receipts are linked and enforced

Testing

  • npm run test:run -- tests/unit/benchmark-suite-docs.test.ts

Summary by CodeRabbit

  • Documentation

    • Added comprehensive benchmark reports for Six and Twenty CRM platforms, capturing performance metrics and evidence across multiple trials.
    • Updated benchmark suite documentation with quality gates defining answer standards and new publication rules for isolated runtime benchmarks.
  • New Features

    • Added benchmark outcome tracking with deterministic quality gates to validate answer accuracy and prevent low-confidence results from being published.
    • Introduced answer-quality gating system that rejects answers lacking direct evidence.
  • Tests

    • Added extensive test coverage for benchmark quality validation, outcome tracking, and prompt compatibility across multiple platforms.

Publish isolated public explain-runtime receipts for documenso, formbricks, dub, cal-diy, and novu, plus a scoped Twenty benchmark receipt and the docs/tests that link to them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2b4e9ea8-f407-4b15-8e50-6aed7d81e15f

📥 Commits

Reviewing files that changed from the base of the PR and between 3ebbc71 and def3884.

📒 Files selected for processing (70)
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/README.md
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/baseline-answer.txt
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/baseline-prompt.txt
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/madar-answer.txt
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/madar-prompt.txt
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.json
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.share-safe.json
  • docs/benchmarks/suite/README.md
  • docs/benchmarks/suite/quality-gates.json
  • docs/benchmarks/suite/results/2026-05-26T18-31-04/summary.json
  • docs/benchmarks/suite/results/2026-05-26T18-31-04/summary.md
  • docs/benchmarks/suite/results/2026-05-31T12-00-00/summary.json
  • docs/benchmarks/suite/results/2026-05-31T12-00-00/summary.md
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/summary.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/summary.md
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/summary.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/summary.md
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/summary.json
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/summary.md
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/summary.json
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/summary.md
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/summary.json
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/summary.md
  • docs/claims-and-evidence.md
  • src/infrastructure/benchmark/suite.ts
  • src/infrastructure/compare.ts
  • tests/unit/benchmark-suite-docs.test.ts
  • tests/unit/benchmark-suite.test.ts
  • tests/unit/compare-native-agent.test.ts
  • tests/unit/compare.test.ts
💤 Files with no reviewable changes (10)
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
✅ Files skipped from review due to trivial changes (37)
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/summary.md
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/summary.md
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/summary.md
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/summary.md
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/summary.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/summary.json
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/summary.md
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T13-48-33/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/summary.json
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T14-09-14/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T13-42-48/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/summary.json
  • docs/benchmarks/suite/results/2026-06-07T15-37-50/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T15-42-13/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-05-26T18-31-04/summary.md
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.share-safe.json
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.json
🚧 Files skipped from review as they are similar to previous changes (3)
  • docs/benchmarks/suite/README.md
  • docs/claims-and-evidence.md
  • tests/unit/benchmark-suite-docs.test.ts

📝 Walkthrough

Walkthrough

This PR publishes five new public-repo explain-runtime warm-cache benchmark receipts (Documenso, Formbricks, Dub, Cal.diy, Novu) and an isolated scoped Twenty server-modules runtime compare result, extending the benchmark suite with deterministic answer-quality gating (direct-evidence term detection), benchmark-outcome collection/reporting, and updated documentation. Core infrastructure changes move answer-quality evaluation earlier and short-circuit claims/outcomes to not_measured when blockers exist; the suite now propagates question/task paths and formats per-cell outcome summaries in Markdown/JSON reports.

Changes

Benchmark Receipts and Suite Infrastructure

Layer / File(s) Summary
Answer quality direct-evidence gating
src/infrastructure/compare.ts, tests/unit/compare.test.ts
Adds require_direct_evidence boolean to NativeAgentAnswerQualityGate; introduces DIRECT_EVIDENCE_CAVEAT_TERMS constant list; refactors evaluateNativeAgentAnswerQualityRun to treat inferred/non-direct phrasings as forbidden when gating enabled; includes new test case for direct-evidence quality gate behavior.
Claim assessment and benchmark outcome blocker short-circuiting
src/infrastructure/compare.ts
Refactors assessNativeAgentClaims to detect benchmark blockers (answer-quality failures or readiness not_ready) and mark routing/token reduction claims as not_measured with blocker evidence; refactors assessNativeAgentBenchmarkOutcome with helper functions for centralized "not measured" logic; moves answer-quality evaluation earlier in executeNativeAgentCompare before claim/outcome assessment to enable blocker detection.
Legacy prompt artifact and compare question resolution
src/infrastructure/compare.ts, tests/unit/compare-native-agent.test.ts
Changes legacyPromptFile to write baselinePrompt instead of madarPrompt, making legacy prompt identical to baseline; updates resolveCompareQuestions to prefer explicit question over questionsPath; adds test assertions for baseline/native-agent/madar prompt consistency and Madar-specific contract absence in native-agent/baseline prompts.
Suite benchmark-outcome collection and reporting
src/infrastructure/benchmark/suite.ts
Adds BenchmarkSuiteSummaryCell.benchmark_outcomes field and optional BenchmarkSuiteDependencies.tasksPath override; introduces outcome summarization helpers to count win/loss/flat/not-measured outcomes and collect evidence strings; updates markdown table header to include "Benchmark outcomes" column with formatted outcome counts and evidence; conditionally propagates tasksPath as questionsPath into compare inputs; marks non-measured cells with null outcomes.
Suite documentation, quality gates, and claims/evidence
docs/benchmarks/suite/README.md, docs/benchmarks/suite/quality-gates.json, docs/claims-and-evidence.md
Updates suite README to announce isolated explain-runtime public-repo receipts and document the scoped Twenty receipt due to graph size constraints; introduces quality-gates.json defining per-suite required/forbidden answer terms, require_direct_evidence flags, and review guidance; updates claims-and-evidence to list per-repo receipt links and mark only Formbricks as full_win with others as not_measured/supplemental.
Benchmark suite test harness
tests/unit/benchmark-suite.test.ts
Extends makeCompareResult helper to accept optional benchmarkOutcome field; adds test case validating quality-gates.json structure and checking required/forbidden term enforcement and require_direct_evidence per repo; updates suite summary assertions to expect "Benchmark outcomes" column and outcome rows; adds test for tasksPath propagation to compare questionsPath; adds test for legacy benchmark outcome surfacing in JSON and Markdown summaries.
Native-agent compare test fixtures for answer-quality gates
tests/unit/compare-native-agent.test.ts
Adds makeExplainQualityFixtureProject() fixture builder creating benchmark suite with quality-gates.json; introduces mocked usage payloads for baseline quality-pass and Madar permission-blocked scenarios with verbose tool-use payloads; adds end-to-end test verifying answer-quality gate failure suppresses wins and marks claims/outcomes as not_measured; adds explicit test timeout.
Benchmark suite documentation test assertions
tests/unit/benchmark-suite-docs.test.ts
Adds test expectations for multiple new 2026-06-07 per-repo summary.md files, quality-gates.json, and scoped 2026-06-07-twenty-server-modules-runtime bundle; validates per-repo receipt summaries contain expected headers and completed rows; checks baseline/native-agent/madar prompt artifacts match contract patterns; validates Twenty receipt README, report alias equality, and parsed report fields (readiness, trace status, minimum reduction thresholds).
Twenty server-modules scoped receipt
docs/benchmarks/2026-06-07-twenty-server-modules-runtime/*
Complete isolated compare run for Twenty packages/twenty-server/src/modules because root suite graph exceeded 10 MB limit: README explains constraint; baseline-answer documents GraphQL mutation → workspace orchestration → ORM persistence → event-driven side effects; baseline/madar prompts with execution instructions; madar-answer notes graph lacks Twenty code; both report.json (full) and report.share-safe.json (public alias) with baseline vs. Madar metrics, tool traces, answer-quality results, and not_measured benchmark outcomes due to readiness constraints.
Documenso, Formbricks, Dub, Cal.diy, Novu warm-cache receipts
docs/benchmarks/suite/results/2026-06-07T*/raw/*/{documenso,formbricks,dub,cal-diy,novu}/...
Five complete explain-runtime warm-cache benchmark trials: each includes baseline-answer documenting the repository's end-to-end runtime flow, baseline/madar/native-agent prompts with execution instructions, madar-answer with retrieved evidence summary and caveats, run-state capturing completion phase and durations, and both report.json (full) and report.share-safe.json (public alias) with execution metrics, tool traces, answer-quality results, and benchmark outcomes (Formbricks: full_win; others: not_measured due to answer-quality or readiness constraints). Suite summaries aggregate results in 2026-06-07T*/summary.{json,md} with per-repo rows, baseline/madar/SPI metrics, and outcome evidence.
Historical fixture results with benchmark outcomes
docs/benchmarks/suite/results/2026-05-{26,31}T*/summary.{json,md}
Updates 2026-05-26 and 2026-05-31 summary files to include new benchmark_outcomes field structure (with legacy and spi_madar counts and evidence per task), adds preparation/env-drift skip diagnostics, and expands warm-cache results tables to include "Benchmark outcomes" column with per-repo legacy vs. SPI summaries and token/cost reduction evidence.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~75 minutes

Possibly related PRs

  • mohanagy/madar#383: Extends src/infrastructure/compare.ts to compute/surface native-agent benchmark_outcome (win/loss/not-measured gating) and reflect it in reports/summaries; main PR builds directly on #383's outcome gate logic.
  • mohanagy/madar#373: Introduces claim_assessment with separate routing_efficiency vs token_reduction fields; main PR extends this by short-circuiting to not_measured when blockers exist.
  • mohanagy/madar#411: Modifies native-agent compare prompt-contract validation; main PR's direct-evidence gating and readiness short-circuits touch the same compare/prompt-contract logic.
  • mohanagy/madar#392: Introduces benchmark_readiness field; main PR consumes it to gate/mark claims and outcomes as not_measured based on readiness.
  • mohanagy/madar#496: Modifies baseline vs. Madar prompt file generation; main PR changes legacy prompt to use baseline content and updates related tests/evidence.

🐰 Benchmark receipts hop into view,
Where direct evidence must be true,
✨ Outcomes measured or not—
Five repos' worth of what we've got,
📊 Results logged for all to chew!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/public-benchmark-receipts

@mohanagy
mohanagy marked this pull request as draft June 7, 2026 13:24

@coderabbitai coderabbitai 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.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt (1)

1-15: ⚠️ Potential issue | 🟠 Major

Fix prompt mix-up: native_agent-prompt.txt duplicates madar-prompt.txt while baseline-prompt.txt forbids Madar tools

  • docs/.../trial-001/native_agent-prompt.txt is byte-for-byte identical to docs/.../trial-001/madar-prompt.txt, but docs/.../trial-001/baseline-prompt.txt has a different “no Madar-specific tools” contract.
  • The same Madar-contract “native_agent” prompt pattern appears across other trial receipts too.
  • Confirm whether the native_agent baseline is intentionally supposed to follow the Madar pack contract; if not, update native_agent-prompt.txt (and/or naming/benchmark config + README) to match the baseline contract.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt`
around lines 1 - 15, The native_agent prompt file duplicates the Madar prompt
but the baseline contract forbids Madar tools; open
docs/.../trial-001/native_agent-prompt.txt and replace its contents so it
implements the intended baseline contract (matching
docs/.../trial-001/baseline-prompt.txt policy), or if the native_agent variant
should follow Madar, update naming/benchmark config and README to reflect that
intent; also search other trial receipts for the same “native_agent” duplication
and reconcile each file (native_agent-prompt.txt, madar-prompt.txt,
baseline-prompt.txt) so prompts, benchmark config, and README consistently
reflect whether native_agent uses Madar tools or not.
🧹 Nitpick comments (2)
docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.json (1)

172-181: Clarify that benchmark_outcome: "full_win" and benchmark_readiness: "not_ready" measure different dimensions
benchmark_outcome is computed purely from the metric check results (regressions/wins like routing/tool/latency/tokens/cost/turns), while benchmark_readiness reflects retrieval slice sufficiency/confidence (e.g., missing downstream phases like persistence). So not_ready + full_win is expected; consider documenting this distinction to avoid confusion.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.json` around
lines 172 - 181, The report currently shows benchmark_outcome: "full_win"
alongside benchmark_readiness: "not_ready", which confuses readers because they
measure different dimensions; update the documentation and the report schema
(and add an inline note in report.json near the benchmark_outcome and
benchmark_readiness fields) to clearly state that benchmark_outcome is derived
solely from metric checks (routing/tool/latency/tokens/cost/turns) while
benchmark_readiness reflects retrieval slice sufficiency/confidence (e.g.,
missing downstream phases like persistence), and add an explicit sentence or
comment explaining that full_win + not_ready is an expected/valid state.
docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.json (1)

170-178: Benchmark receipts marked benchmark_readiness: not_ready are consistently published with measurement_validity: valid

Other receipts in docs/benchmarks/suite/results/ also have "benchmark_readiness.status": "not_ready" while "measurement_validity": "valid" and "benchmark_outcome.outcome": "full_win" (e.g., both .../2026-06-07T12-03-13/.../documenso/.../trial-001/report.json and .../report.share-safe.json). The current receipt therefore isn’t an isolated contradiction; clarify in docs/schema what “not_ready” means and why it can still accompany “valid” measurements/outcomes (or adjust how reasons/scope suggestions are presented).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.json`
around lines 170 - 178, The JSON shows benchmark_readiness.status set to
"not_ready" while measurement_validity is "valid" and benchmark_outcome.outcome
is "full_win", which is confusing; update the schema/docs and/or the receipt
generation to resolve this: in docs/schema add a clear definition for
benchmark_readiness.status (what "not_ready" means and how it can coexist with
measurement_validity and benchmark_outcome) and include guidance for
interpreting benchmark_readiness.reasons and suggested_graph_scope, or
alternatively modify the receipt generator to add a clarifying field (e.g.,
benchmark_readiness.explainer) or reword reasons so they don’t imply measurement
invalidity while keeping measurement_validity: valid; ensure you reference the
JSON keys benchmark_readiness.status, benchmark_readiness.reasons,
benchmark_readiness.suggested_graph_scope, measurement_validity, and
benchmark_outcome.outcome when applying the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt`:
- Around line 1-5: The benchmark receipt is inconsistent:
docs/.../madar-answer.txt contains only a "permissions not granted" error but
report.json claims madar.kind: "succeeded", measurement_validity: "valid", and
benchmark_outcome.outcome: "full_win" while pointing madar_result_path to that
file; either re-run the Madar retrieval after granting mcp__madar__retrieve
permission and replace madar-answer.txt with the actual retrieval output (and
ensure report.json fields reflect the successful run), or mark the Madar run as
failed by editing report.json to set madar.kind to "failed" (or equivalent),
measurement_validity to "invalid", update benchmark_outcome.outcome away from
"full_win", and ensure madar_result_path no longer claims a successful result so
the receipt and file are consistent.

In
`@docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt`:
- Around line 1-5: The published madar-answer.txt contains only the
permission-request preamble whereas trial-001/report.json shows a successful
Madar run (fields madar.kind, madar_mcp_call_count, benchmark_outcome.outcome),
so regenerate the benchmark artifacts to ensure madar-answer.txt contains the
actual completed Madar output (the retrieved nodes/snippets/relationships and
the final answer) that corresponds to the recorded success; specifically, re-run
or replay the successful mcp__madar__retrieve invocation, capture its full
output, and replace the incomplete madar-answer.txt so its contents align with
the report.json metrics and the recorded mcp call count.

In `@docs/benchmarks/suite/results/2026-06-07T12-07-40/summary.md`:
- Line 3: The timestamp line in summary.md ("Generated:
2026-06-07T12:12:25.266Z") does not match the parent directory name
("2026-06-07T12-07-40"); update the summary generation logic to emit the
directory-derived timestamp or regenerate the file so the "Generated:" value is
taken from the directory name (or vice versa) so they match; specifically locate
where the summary content is produced and ensure the generated timestamp string
is computed from the directory identifier "2026-06-07T12-07-40" (or update the
directory name to match the actual generation time) and write the corrected ISO
timestamp into the "Generated:" line in summary.md.

In
`@docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt`:
- Around line 1-11: The madar-answer.txt narrative claims the run was blocked
due to missing mcp__madar__retrieve permission, but report.json for trial-001
shows retrieve calls succeeded (madar_mcp_call_count: 3, install_verified: true,
measurement_validity: "valid", benchmark_outcome: "full_win"); update/regenerate
madar-answer.txt (or fix the artifact generation pipeline) so it reflects the
actual behavior recorded in report.json: mention that mcp__madar__retrieve was
called (3 times), include the retrieve results summary used to answer the Novu
trigger→orchestration→delivery question, and remove the “permission declined”
blocking claim so madar-answer.txt and report.json are consistent.

In
`@docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt`:
- Around line 1-10: The baseline prompt file native_agent-prompt.txt incorrectly
includes Madar-specific contract instructions (the block matching
madar-prompt.txt such as "Follow the Madar pack contract exactly", "Call
retrieve first", and tool-usage constraints); remove that entire Madar
instruction block so native_agent-prompt.txt contains only the vanilla user
question (the lines with the actual question content) and no references to
retrieve, ToolSearch, community_overview, graph_summary, or other Madar tools;
ensure the resulting baseline prompt matches the expected baseline structure
(only the question text, concise and tool-agnostic).

---

Outside diff comments:
In
`@docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt`:
- Around line 1-15: The native_agent prompt file duplicates the Madar prompt but
the baseline contract forbids Madar tools; open
docs/.../trial-001/native_agent-prompt.txt and replace its contents so it
implements the intended baseline contract (matching
docs/.../trial-001/baseline-prompt.txt policy), or if the native_agent variant
should follow Madar, update naming/benchmark config and README to reflect that
intent; also search other trial receipts for the same “native_agent” duplication
and reconcile each file (native_agent-prompt.txt, madar-prompt.txt,
baseline-prompt.txt) so prompts, benchmark config, and README consistently
reflect whether native_agent uses Madar tools or not.

---

Nitpick comments:
In `@docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.json`:
- Around line 172-181: The report currently shows benchmark_outcome: "full_win"
alongside benchmark_readiness: "not_ready", which confuses readers because they
measure different dimensions; update the documentation and the report schema
(and add an inline note in report.json near the benchmark_outcome and
benchmark_readiness fields) to clearly state that benchmark_outcome is derived
solely from metric checks (routing/tool/latency/tokens/cost/turns) while
benchmark_readiness reflects retrieval slice sufficiency/confidence (e.g.,
missing downstream phases like persistence), and add an explicit sentence or
comment explaining that full_win + not_ready is an expected/valid state.

In
`@docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.json`:
- Around line 170-178: The JSON shows benchmark_readiness.status set to
"not_ready" while measurement_validity is "valid" and benchmark_outcome.outcome
is "full_win", which is confusing; update the schema/docs and/or the receipt
generation to resolve this: in docs/schema add a clear definition for
benchmark_readiness.status (what "not_ready" means and how it can coexist with
measurement_validity and benchmark_outcome) and include guidance for
interpreting benchmark_readiness.reasons and suggested_graph_scope, or
alternatively modify the receipt generator to add a clarifying field (e.g.,
benchmark_readiness.explainer) or reword reasons so they don’t imply measurement
invalidity while keeping measurement_validity: valid; ensure you reference the
JSON keys benchmark_readiness.status, benchmark_readiness.reasons,
benchmark_readiness.suggested_graph_scope, measurement_validity, and
benchmark_outcome.outcome when applying the change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 35613f10-d685-4890-83ee-18b3a819cdb0

📥 Commits

Reviewing files that changed from the base of the PR and between 7438787 and 3ebbc71.

📒 Files selected for processing (56)
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/README.md
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.json
  • docs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.share-safe.json
  • docs/benchmarks/suite/README.md
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/summary.json
  • docs/benchmarks/suite/results/2026-06-07T12-03-13/summary.md
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/summary.json
  • docs/benchmarks/suite/results/2026-06-07T12-07-40/summary.md
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/summary.json
  • docs/benchmarks/suite/results/2026-06-07T12-12-25/summary.md
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/summary.json
  • docs/benchmarks/suite/results/2026-06-07T12-30-26/summary.md
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txt
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txt
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.json
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.json
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/run-state.json
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/summary.json
  • docs/benchmarks/suite/results/2026-06-07T12-45-30/summary.md
  • docs/claims-and-evidence.md
  • tests/unit/benchmark-suite-docs.test.ts

mohanagy and others added 2 commits June 7, 2026 20:17
Downgrade non-answer or not-ready compare results to not_measured, require direct evidence for the public explain-runtime gates, surface benchmark outcomes in suite summaries, refresh the final rerun receipts, and remove the superseded invalid 12:xx receipt bundles.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Write native_agent-prompt.txt from the baseline prompt instead of the Madar prompt and refresh the published public-repo receipt artifacts to match.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mohanagy

mohanagy commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

Follow-up pushed in 6a2c2d4 and def3884.

Final state on this branch:

  • non-answer or not-ready compare rows now downgrade to not_measured
  • public explain-runtime gates now require direct evidence
  • suite summaries now surface benchmark outcomes instead of only raw execution status
  • the superseded invalid 12:xx public receipt bundles were removed from the PR
  • latest public receipt set is now: formbricks = full_win, documenso = not_measured, novu = not_measured, dub = not_measured, cal-diy = not_measured
  • native_agent-prompt.txt now mirrors baseline-prompt.txt in the published latest public receipts

PR stays open and unmerged.

@mohanagy
mohanagy marked this pull request as ready for review June 7, 2026 17:06
@mohanagy
mohanagy merged commit dbaf212 into main Jun 7, 2026
7 checks passed
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