Skip to content

Investigate token efficiency in exhaustive multi-review runs #6

Description

@Kevinjohn

Exhaustive review runs may spend avoidable tokens on repeated reviewer orientation while correctly satisfying the required coverage and independence gates.

Context

This project intentionally favors complete, evidence-backed review over minimum token consumption. A run this extensive is not expected to be cheap, and optimization must not weaken semantic coverage, reviewer independence, candidate preservation, validation, tail review, or the final audit.

However, obvious avoidable costs should be measured and, where supported by evidence, reduced.

Example run

A substantial repository review produced the following checkpoint:

  • 77 semantic units primary-reviewed and imported
  • 267 observations and 200 validations in canonical state
  • 34 Tier-A independent second-review assignments, with one risk angle per assignment
  • At the observed snapshot: 20 of 34 second reviews completed in 8m 23s
  • Approximately 1.9 million aggregate specialist tokens reported at that snapshot
  • Controller context was 31% occupied
  • Five-hour usage allowance was at 35% after 4h 8m
  • The run used the highest-capability model with a high reasoning setting

The aggregate token count may include work from assignments still in progress, so dividing it by the 20 completed assignments is only a rough diagnostic. It nevertheless suggests that assignment construction and repeated repository orientation are worth investigating.

Questions to investigate

1. Are specialist packets actually compact?

The Skill requires packets to contain only assigned scope, immutable manifest identities, relevant extracted references, output schemas, and the mandatory specialist block. It explicitly excludes the full governing documents, unrelated findings, other ledgers, conversation history, and orchestration mechanics.

Measure whether dispatched packets follow that rule in practice, including inherited conversation context and any broad repository material loaded before targeted inspection.

2. Does each second-review requirement need a cold reviewer context?

The contract requires a second-review execution identity distinguishable from the contributing primary reviewers. It does not appear to require a globally unique reviewer for every second-review requirement.

Investigate whether a smaller independent reviewer pool could process multiple related assignments in warm contexts while preserving separate attempt manifests, persisted results, and all independence checks.

3. Is Tier-A classification calibrated correctly?

In the example, 34 second reviews were required for 77 units. Confirm that Tier A is limited to the critical boundaries defined in the Reference Pack rather than being applied broadly to ordinary production code.

This matters because each Tier-A classification adds deeper primary evidence requirements, focused validation, independent second review, and mandatory inspection during the final audit.

4. Can model and reasoning effort be routed by task?

Assess whether the highest-capability/high-reasoning configuration is necessary for:

  • semantic primary and second review;
  • adversarial candidate validation;
  • cross-component reconciliation;
  • deterministic imports, schema checks, ID allocation, report generation, polling, and bookkeeping.

Prefer deterministic tooling for mechanical work. If model routing is introduced, establish which tasks can safely use a less expensive configuration without reducing review quality.

5. Are later phases repeating whole-unit review?

Verify that each overlapping phase stays narrow:

  • second review checks its assigned risk angle;
  • candidate validation validates concrete observations;
  • cross-component reconciliation checks seams and composed behavior;
  • tail review covers the explicitly named underrepresented classes;
  • final audit challenges evidence and satisfies its prescribed scope.

The phases intentionally overlap, but they should not accidentally become repeated general reviews of the same units.

6. What should be measured?

Add or document enough observability to compare runs, where the host exposes the data:

  • input, output, and cached tokens per attempt;
  • assignment-packet size;
  • tokens spent before the first scope-specific inspection;
  • files and bytes read per attempt, including repeated reads;
  • tokens per unit, angle, candidate, and validated finding;
  • Tier-A versus Tier-B/C cost;
  • cold-context versus warm-pool second-review cost;
  • incomplete/retried attempt overhead;
  • bookkeeping/tooling tokens versus semantic-review tokens.

Do not treat findings per token as the sole quality metric: a correct clean review is still valuable.

Possible changes to evaluate

  • Enforce or mechanically generate minimal phase-specific assignment packets.
  • Reuse independent reviewer contexts across compatible assignments, with conflict checks against primary reviewer identities.
  • Add a Tier-A calibration check during the representative pilot.
  • Route deterministic orchestration and bookkeeping away from the most expensive reasoning configuration.
  • Add phase-specific instructions that prohibit restarting a general review during validation, reconciliation, tail, and audit work.
  • Record a lightweight per-attempt efficiency ledger when host usage data is available.

Acceptance criteria

  • Capture measurements from at least one representative exhaustive run.
  • Identify which costs are required by the review contract and which are avoidable implementation overhead.
  • Propose changes only where independence, full observation preservation, ten-angle coverage, validation, and audit gates remain intact.
  • Compare the current and proposed approach on equivalent scope.
  • Document expected savings, quality risks, and rollback conditions.
  • Add tests for any changes to packet construction, identity conflict checking, tiering gates, or phase scoping.

Non-goals

  • Setting an arbitrary token cap for exhaustive reviews.
  • Removing required Tier-A second reviews or the independent final audit.
  • Reducing reported observations to improve an efficiency metric.
  • Trading review completeness for lower headline usage without explicit user authority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions