Skip to content

docs: encode agent-efficiency study learnings (needed subset is 26% of delivered context; uplift needs harder scenarios) - #13162

Merged
EffortlessSteven merged 2 commits into
mainfrom
docs-learnings-encode
Nov 5, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
docs-learnings-encode

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: agent-efficiency study (Nov 2-4), raw artifacts at F:/Temp/agent-bench/ (RUNBOOK.md, contexts/, results/, logs/, eval.sh)
Spec: n/a (durable failure knowledge, no behavior change)
ADR: n/a
Plan item: agent-efficiency measurement lane, Nov 2026; harness-validity prerequisites on #13113
Governing issue or accepted claim: agent-efficiency study (Nov 2-4)
Acceptance delta (one sentence): docs/LEARNINGS.md records the study's measured cost deltas (3.69× delivered context, 26.1% needed subset) and its three durable rules (baseline must sometimes fail at N ≥ 12 with Wilson intervals; render each fact once; the harness is part of the measurement), with harness fixes tracked on #13113.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): docs-learnings-encode
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a

Sibling lane note: the benchmark corpus encoding referenced by the entry's last line lands at benchmarks/agent-discrimination/ in a separate PR; this entry is additive-only (40 insertions to docs/LEARNINGS.md) and does not depend on it.

Scope

  • One ## 2026-11-04 LEARNINGS.md entry, evidence-backed: study artifacts at F:/Temp/agent-bench/ (5 retained run reports + summary.csv with 5 of 9 rows, matching the "unrecorded more than measured" finding), evaluator negative control re-run this session (DISCRIMINATES: no, exit 1), context-byte ratios re-measured (14,897 vs 4,039 bytes = 3.687×).

Scope Classification

This PR is scoped by:

  • Docs/spec/test-only evidence package

Production delta:

  • none (Markdown only)

Evidence/support delta:

Single acceptance criterion:

Non-goals:

Support-tier Impact

  • none

Claim/proof notes:

  • Makes no product claim: the entry records that ripr's agent-surface value is unproven on easy diffs, not disproven, and must not be read as either.

Policy Impact

  • none

Ledger or exception notes:

  • none

Proof

cargo xtask markdown-links
cargo xtask check-doc-index
cargo xtask check-doc-artifacts
cargo xtask check-local-context
bash F:/Temp/agent-bench/eval.sh F:/Temp/agent-bench/inserted-guard invoice_line_matches_quote   # negative control

Result, failures, or skipped proof:

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

Rollback

How can this PR be reverted safely?

  • Plain git revert of one docs commit; no code, CI, or policy coupling.

Spec-Test-Code Traceability

  • Spec: n/a
  • Tests: n/a
  • Code: n/a
  • Golden outputs: n/a
  • Metrics: n/a
  • ADR/learning: docs/LEARNINGS.md (this PR)

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

n/a — ordinary docs PR; no workflow, policy, protection, artifact, or cost change.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • cargo fmt --check
  • cargo check --workspace --all-targets
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo doc --workspace --no-deps
  • cargo package -p ripr --list
  • cargo publish -p ripr --dry-run
  • cargo xtask check-static-language
  • cargo xtask check-doc-artifacts
  • cargo xtask check-support-tiers
  • cargo xtask check-no-panic-family
  • cargo xtask check-allow-attributes
  • cargo xtask check-local-context
  • cargo xtask check-file-policy
  • cargo xtask check-covered-by
  • cargo xtask check-executable-files
  • cargo xtask check-workflows
  • cargo xtask check-spec-format
  • cargo xtask check-spec-numbering
  • cargo xtask check-fixture-contracts
  • cargo xtask check-generated
  • cargo xtask check-badge-diff-policy
  • cargo xtask check-generated-clean
  • cargo xtask check-dependencies
  • cargo xtask check-process-policy
  • cargo xtask check-network-policy

…f delivered context; uplift needs harder scenarios)
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 1bf1ea49-f95b-4f8c-bc3c-8331217e6649
Commits

Reviewing files that changed from the base of the PR and between 304c8ea and b410b4f.

Files selected for processing: 1

  • docs/LEARNINGS.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven

Copy link
Copy Markdown
Member Author

REVIEW_READY
disposition: REVIEW_READY (author self-review on own docs-only PR, per repo rule; head 206b7be)

Surfaces reviewed: single additive block appended at the end of docs/LEARNINGS.md (40 insertions, one file; verified git show --stat 206b7be5 = docs/LEARNINGS.md | 40 ++). Dated ## 2026-11-04 heading + Durable rules: section match the landed #12780/#12752 entry format.

Risks checked: (1) no markdown links — the benchmarks/agent-discrimination/ sibling path is inline code, so nothing can rot before that lane lands (markdown-links pass would not have caught a broken link target anyway; there are none). (2) Entry numbers are the study's recorded findings; re-measured where artifacts allow: context ratio 14,897/4,039 = 3.687× (contexts/*/vanilla.txt vs ripr-context.txt, wc -c), check-line records 101–153 bytes, Wilson 3/3 floor 3/(3+3.84²/4... recomputed 0.4385≈43.8–43.9%), evaluator negative control re-run this session (DISCRIMINATES: no, exit 1, crate restored to HEAD). (3) No banned static-verdict vocabulary introduced into static output; prose usage matches existing LEARNINGS entries. (4) Body template lines validated offline (cargo xtask check-pr-shape --body-file ... exit 0).

Validation on this exact head: cargo xtask markdown-links pass, cargo xtask check-doc-index pass, cargo xtask check-doc-artifacts pass (exit 0 each; target/ripr/reports/*.md emitted).

Residuals (non-blocking, recorded in the PR body claim boundary): sibling benchmark-corpus entry lands separately; harness-validity fixes tracked on #13113; the 26.1% needed-subset figure is the study's mechanical extraction (no retained extraction artifact in F:/Temp/agent-bench — noted for future re-measurement after #13113).

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit b410b4f00cce · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=304c8ea2df58a0163ba697c2b337810e371acb7b findings=0 gaps=0
done=no changed behavior found in scope; static advisory, not runtime proof

Took 1s.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY

Self-review of the author's docs-only PR on head 206b7be (same-account COMMENT is allowed; trust comes from the MEMBER author association). One additive block appended at the end of docs/LEARNINGS.md (40 insertions, one file), dated heading plus Durable-rules section matching the landed #12780/#12752 entry format.

Angles checked: scope is one Markdown file; no markdown links, so the sibling benchmark-corpus path cannot rot before its lane lands (the entry names it as inline code); entry numbers cross-checked against retained F:/Temp/agent-bench artifacts where measurable (context bytes 14,897 vs 4,039 = 3.687x by wc -c; check-line records 101-153 bytes; Wilson 3/3 floor recomputed 0.4385; evaluator negative control re-run this session: DISCRIMINATES no, exit 1, crate restored to HEAD); no banned static-verdict vocabulary in any static output; PR body template lines validated offline via check-pr-shape (exit 0).

Validation on this exact head: cargo xtask markdown-links pass, cargo xtask check-doc-index pass, cargo xtask check-doc-artifacts pass (exit 0 each).

Residuals: the sibling benchmark-corpus entry lands in a separate PR; harness-validity repairs are tracked on #13113; the 26.1% needed-subset figure is the study's mechanical extraction with no retained extraction artifact, so re-measure it after #13113 lands. None of these block this docs recording.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reporter summary

The docs-only change is internally consistent: the 14,897/4,039-byte ratio correctly rounds to 3.69×, and the wording appropriately limits the result to ripr's agent value being unproven rather than disproven. The main residual trust risk is that the decisive claims—the 26.1% needed subset, zero loss of named facts, and other study counts—depend on local artifacts not included in the diff or receipts; cargo-test also timed out, although that is not materially relevant to this Markdown-only edit. No specialist identified a guarded documentation defect, so the appropriate direction is clear with the artifact-verification caveat treated as residual risk rather than a blocking finding.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY

Self-review of the author's docs-only PR, refreshed on the new head b410b4f (one rewording commit over 206b7be: the entry now names the harness generically instead of a machine-local absolute path, after hosted check-local-context refused the literal path). One additive dated block at the end of docs/LEARNINGS.md matching the landed #12780/#12752 entry format.

Angles checked: scope is one Markdown file; no markdown links, so the sibling benchmark-corpus path cannot rot before its lane lands (the entry names it as inline code); entry numbers cross-checked against retained study artifacts where measurable (context bytes 14,897 vs 4,039 = 3.687x by wc -c; check-line records 101-153 bytes; Wilson 3/3 floor recomputed 0.4385; evaluator negative control re-run this session: DISCRIMINATES no, exit 1, crate restored to HEAD); no banned static-verdict vocabulary in any static output; PR body template lines validated offline via check-pr-shape (exit 0).

Validation on this exact head: cargo xtask markdown-links pass, cargo xtask check-doc-index pass, cargo xtask check-doc-artifacts pass, cargo xtask check-local-context pass (exit 0 each).

Residuals: the sibling benchmark-corpus entry lands in a separate PR; harness-validity repairs are tracked on #13113; the 26.1% needed-subset figure is the study's mechanical extraction with no retained extraction artifact, so re-measure it after #13113 lands. None of these block this docs recording.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reporter summary

The documentation-only diff is internally consistent with the seeded self-review: it records the measured 3.69× context ratio, the 26.1% needed subset, and explicitly limits the result to ripr's agent value being unproven rather than disproven. The strongest residual documentation risk is that decisive study details remain dependent on local artifacts outside the repository; the later cargo-test timeout does not add materially relevant evidence for this Markdown-only change. No specialist surfaced a blocking documentation defect, so the direction is clear, subject to the existing artifact-verification caveat and the separate sibling corpus lane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant