Repository navigation
docs: publish public benchmark receipts - #509
Conversation
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>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (70)
💤 Files with no reviewable changes (10)
✅ Files skipped from review due to trivial changes (37)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughThis 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 ChangesBenchmark Receipts and Suite Infrastructure
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
|
There was a problem hiding this comment.
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 | 🟠 MajorFix prompt mix-up:
native_agent-prompt.txtduplicatesmadar-prompt.txtwhilebaseline-prompt.txtforbids Madar tools
docs/.../trial-001/native_agent-prompt.txtis byte-for-byte identical todocs/.../trial-001/madar-prompt.txt, butdocs/.../trial-001/baseline-prompt.txthas 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_agentbaseline is intentionally supposed to follow the Madar pack contract; if not, updatenative_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 thatbenchmark_outcome: "full_win"andbenchmark_readiness: "not_ready"measure different dimensions
benchmark_outcomeis computed purely from the metric check results (regressions/wins like routing/tool/latency/tokens/cost/turns), whilebenchmark_readinessreflects retrieval slice sufficiency/confidence (e.g., missing downstream phases like persistence). Sonot_ready+full_winis 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 markedbenchmark_readiness: not_readyare consistently published withmeasurement_validity: validOther 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.jsonand.../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
📒 Files selected for processing (56)
docs/benchmarks/2026-06-07-twenty-server-modules-runtime/README.mddocs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.jsondocs/benchmarks/2026-06-07-twenty-server-modules-runtime/report.share-safe.jsondocs/benchmarks/suite/README.mddocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.jsondocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.jsondocs/benchmarks/suite/results/2026-06-07T12-03-13/raw/documenso/explain-runtime/warm-cache/legacy/trial-001/run-state.jsondocs/benchmarks/suite/results/2026-06-07T12-03-13/summary.jsondocs/benchmarks/suite/results/2026-06-07T12-03-13/summary.mddocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/report.jsondocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.jsondocs/benchmarks/suite/results/2026-06-07T12-07-40/raw/formbricks/explain-runtime/warm-cache/legacy/trial-001/run-state.jsondocs/benchmarks/suite/results/2026-06-07T12-07-40/summary.jsondocs/benchmarks/suite/results/2026-06-07T12-07-40/summary.mddocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.jsondocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.jsondocs/benchmarks/suite/results/2026-06-07T12-12-25/raw/dub/explain-runtime/warm-cache/legacy/trial-001/run-state.jsondocs/benchmarks/suite/results/2026-06-07T12-12-25/summary.jsondocs/benchmarks/suite/results/2026-06-07T12-12-25/summary.mddocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.jsondocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.jsondocs/benchmarks/suite/results/2026-06-07T12-30-26/raw/cal-diy/explain-runtime/warm-cache/legacy/trial-001/run-state.jsondocs/benchmarks/suite/results/2026-06-07T12-30-26/summary.jsondocs/benchmarks/suite/results/2026-06-07T12-30-26/summary.mddocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/baseline-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/baseline-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-answer.txtdocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/madar-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/native_agent-prompt.txtdocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.jsondocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/report.share-safe.jsondocs/benchmarks/suite/results/2026-06-07T12-45-30/raw/novu/explain-runtime/warm-cache/legacy/trial-001/run-state.jsondocs/benchmarks/suite/results/2026-06-07T12-45-30/summary.jsondocs/benchmarks/suite/results/2026-06-07T12-45-30/summary.mddocs/claims-and-evidence.mdtests/unit/benchmark-suite-docs.test.ts
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>
|
Follow-up pushed in 6a2c2d4 and def3884. Final state on this branch:
PR stays open and unmerged. |
Summary
Testing
Summary by CodeRabbit
Documentation
New Features
Tests