Skip to content

docs: six KPIs, with their base measurements and the two parity proxies that do not work - #1179

Merged
cameri merged 4 commits into
rewrite/mainfrom
docs/kpis
Nov 19, 2026
Merged

cameri merged 4 commits into
rewrite/mainfrom
docs/kpis

Conversation

@chappie-daemon

Copy link
Copy Markdown
Collaborator

A KPI contract for the rewrite and for the factory that is building it, written as six numbers with a source and a threshold each.

The three about the rewrite

  • NIP parity — the cutover gate. Not measurable yet, and the document says why rather than shipping a proxy: grep -c 'unimplemented!\|todo!(' over all 282 .rs files (84,757 lines) answers 0, so a stub count can never fail; and src/nipNN.rs exists for 12 NIPs while package.json advertises 25, with an overlap of 8 and four modules (05 56 66 98) belonging to NIPs that are not advertised. Module presence measures file layout. What replaces both is a per-NIP ledger keyed to a test with a recorded inversion.
  • Store performance — base is docs/rewrite/benchmarks/lmdb-50k-seed7.json; a regression against that artifact on the same workload fires. The v3 multiple cannot fire yet and the document does not carry one: the Postgres columns are absent because the host has no database, and benchmarks: measure the TypeScript/Postgres baseline on a host with Docker #1132 owns them.
  • Migration safety — zero rounds that open a directory the pin did not hold, across the randomised harness job 031 added. Non-negotiable, because it decides whether cutover may run unattended.

The three about the factory

Measured tonight over the 27 jobs in .factory/jobs that carry a spans line — $103.16 in total:

  • Review share of job spend — median ratio 1.5 over the 24 jobs with a build session (017 = 1.56, 001 = 2.18, 026 = 4.14, 031 = 1.16). The threshold is 2.0, and the caveat is written into the row: the ratio is unstable below ~$1 of total spend, so it is reported only above that floor or it rewards making builds expensive.
  • Rounds per merged job — median 3, max 15. Above 5 rounds on a one-crate job is a spec defect showing up late.
  • Escapes — defects found after approval. Any escape fires, and names the lens or criterion that should have caught it.

What is deliberately absent

Stub count, test count (1,390 attributes today), diff size, token spend, PR count. Each is listed with the reason, so the next person does not re-add one.

Why the thresholds look the way they do

Every number here is taken from the recorded distribution rather than chosen for comfort: a target of "review under 1.0" would have been invented, because the median in this history is 1.5. Where the history is too thin — the performance multiple — the document says the KPI is not shipped yet instead of quoting a figure nobody measured.

Three about the rewrite (NIP parity, store performance, migration safety)
and three about the factory (review share, rounds per job, escapes). Two
proxies for parity were measured and rejected: zero stubs across 282 files
cannot fail, and per-NIP modules overlap the advertised set at 8 of 25.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 736c13b4-fd10-463b-addd-68516fec24e4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@changeset-bot

changeset-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b2836d2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation update appears safe to merge.

Summary

Adds a six-KPI contract for the rewrite and the factory, with baselines, action thresholds, and limits on what readers can verify.

  • The KPI guide ties six measurements to evidence and firing thresholds.

The numbered previous finding is addressed. No new issues found.

Reviews (4) · Last reviewed commit: "docs: the swap tests only run on Linux, ..." · Reviewed by Greptile

Comment thread docs/rewrite/kpis.md Resolved
Comment thread docs/rewrite/kpis.md Resolved
Comment thread docs/rewrite/kpis.md Resolved
Greptile's three findings, all real: the benchmark command omitted the
required --out, the rounds distribution summed to 24 for a 27-job claim,
and the factory records are workspace-only, so the tables are now stated
as recorded values with sample sizes and the excluded record named.
greptile-apps[bot]
greptile-apps Bot previously approved these changes Nov 19, 2026
@greptile-apps
greptile-apps Bot dismissed their stale review November 19, 2026 03:59

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

Comment thread docs/rewrite/kpis.md Resolved
greptile-apps[bot]
greptile-apps Bot previously approved these changes Nov 19, 2026
Greptile's finding: the migrate_cli swap cases are cfg(target_os =
"linux"), so the same command on macOS passes while skipping every
directory-pin test. The row now states Linux with /proc/self/fd, and the
release record must name the host.
@greptile-apps
greptile-apps Bot dismissed their stale review November 19, 2026 04:03

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

@cameri
cameri merged commit f01cb5f into rewrite/main Nov 19, 2026
17 checks passed
@cameri
cameri deleted the docs/kpis branch November 19, 2026 12:53
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