Skip to content

Review 5918987253 body findings: instruction budget exceedance and tautological test oracle (PR 1157) #1161

Open

Description

@jflowers

Combined body-only findings from review 5918987253 (uf-divisor, CHANGES_REQUESTED) on PR #1157 — filed per the /uf.address-feedback 1157 triage (body findings without inline threads are combined into one issue).

Finding 1 — MEDIUM: instruction budget exceedance (IL-030/IL-031)

.opencode/commands/uf.unleash.md measures ~21562 tokens against an 8000-token per-file budget, and the loaded set measures ~33050 tokens against a 20000-token budget. The exceedance is pre-existing (20793 tokens at the PR base) and was worsened by this change's +769-token delta.

Both accepted determinism fixes from the same review move the file in the correcting direction: the retry-routing prose was replaced by an 8-line failure-decision-point note (net prose reduction on that branch), and the phase-checkpoint remaining_ms fill rule was deleted in favor of tool derivation. Follow-up work should continue shrinking the file toward budget (candidate: further collapsing selection/routing prose into tooling per DE-005/DE-001 patterns).

Finding 2 — LOW: tautological test oracle

.opencode/test/unleash-delegate.test.ts:150 — the derivedTimeout helper recomputes derivePerTaskTimeoutMs with the same arguments production uses and then compares the envelope's effective timeout against that recomputed value. A regression in the formula itself changes both sides of the assertion equally, so the test cannot catch formula drift. Replacing the recomputation with a literal expected value (a fixed number derived once and recorded) would make the oracle independent of the implementation.

Context

  • Neither finding arrived as an inline review thread; they are body-only findings combined into this issue per the confirmed triage.
  • The MEDIUM finding's direction is already correcting in ca33339; the LOW finding is a test-quality hardening candidate.

Filed from /uf.address-feedback 1157 (body-only findings, combined per triage).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions