Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ of each module.
- Input tokens are fresh input plus tokens written to the prompt cache. Tokens read from
the prompt cache are counted apart and not priced. The cost is worked out from these
counts at the prices in `src/codexray/settings/judge.yaml`; it is not taken from a bill.
- Not covered: AI job A. The rules in `rules/<id>.yaml` were proposed by `decisions
propose` in an earlier run and then reviewed by a person. No ledger of that run is
committed, so its calls, tokens and cost are not in this table and this repository
cannot state them.
- Not in this table: AI job A. The rules in `rules/<id>.yaml` were proposed by `decisions
propose` in an earlier run and then reviewed by a person. That run's ledger is in
`results/<id>/usage_job_a.json`: 458 calls in all (Artemis 59, Shopware 393, Graylog 6),
1,083,824 input and 90,402 output tokens, $6.14. See `results/README.md`.
- A re-run of `judge` answers from the cache in the run folder (`judgements/cache/`) and
makes no call; the ledger counts only calls the gateway answered, so it does not grow.
The stability step makes no AI call.
Expand Down
24 changes: 20 additions & 4 deletions results/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ each run is in [`web/public/bundles/<id>/`](../web/public/bundles/).
| `usage.json` | The AI usage ledger: one entry per call the gateway answered (job, model, tokens, cost). The README sums it per job and model. |
| `robustness.json` | The stability table of spec.md §11.3: the five tests, the overlap of the top 5 and top 10 with the baseline, rank-biased overlap, and the vote agreement of the judged findings. |
| `ARCHITECTURE_RULES.md` | The reviewed decisions in plain sentences, each naming its source, for a rules file that AI coding agents read (spec.md §11.5). |
| `usage_job_a.json` | The ledger of AI job A (`decisions propose`): one entry per call the gateway answered while proposing the rules (model, tokens, cost). See below for which run made them. |
| `proposals.yaml` | What job A proposed, in the rules-file format, before review. `rules/<id>.yaml` is the reviewed version. |
| `proposals.json` | Every decision source job A read, with its outcome (checkable rule, written but not checkable, not about structure), and the dry run of each checkable proposal against the map. |

## How to reproduce

Expand All @@ -47,12 +50,25 @@ named in `src/codexray/settings/repository.yaml`). Without it the run is still c
the `prs` table is empty, and `manifest.json` differs in its `coverage.prs` part. A later
`ingest` with the token set fetches the missing pull requests into the same run.

## Where the job A files come from

The rules in `rules/<id>.yaml` were proposed once and then reviewed, so job A did not run
again for the runs above. `usage_job_a.json`, `proposals.yaml` and `proposals.json` come
from that earlier run, at the same pinned commit but with the settings before the
calibration of #70, so in a run folder with another `params_hash`:

| Repository | Job A calls | Tokens in | Tokens out | Cost (USD) |
|---|---|---|---|---|
| Artemis | 59 | 209,253 | 15,304 | 1.14 |
| Shopware | 393 | 835,329 | 73,644 | 4.81 |
| Graylog | 6 | 39,242 | 1,454 | 0.19 |

`usage_job_a.json` holds that run's job A entries unchanged. The same run's ledger on
Artemis also holds 93 job B and 73 job C calls (2.34 USD) from a test of `judge`; their
text is not the text shown here, so they are not included.

## What is not here, and why

- **The ledger of AI job A** (`decisions propose`): the rules in `rules/<id>.yaml` were
proposed in an earlier run and then reviewed. That run's `usage.json` and
`proposals.yaml` are not committed, so the calls, tokens and cost of job A are not
recorded in this repository.
- **`judgements/`**: the stored AI answers and the answer cache. The judgements that are
shown are already in `findings.json` and the web bundle. Without the cache, `judge` on a
fresh clone makes new calls, and the AI text can differ.
Expand Down
Loading