Skip to content

core: preserve physical receipts and invoice uncertainty in smart-capture evaluation #1294

Closed as not planned

Description

@schlessera

Final keyless verification handoff

The collector correction is preserved at normally signed commit 3df2ecc36bd909fa4bea534534b7b7fa7efe4ef0, with source freeze 6245da0170b7d5425206b9a35fae381f1084a600f399f8545e7a59385f1208ce and pinned SDK 0.3.283 / native CLI 2.1.283 / Bun 1.4.2. Exact scoped checks pass: 165 tests / 824 assertions, typecheck, lint, and three actual offline native paid-allowed, genuinely rejected and current /add controls. Every native control drained with zero external provider requests and semantic admission false. Invoice fields remain null. Financial failing-first and restored mutations are preserved.

At signed #1294 head 3df2ecc36bd909fa4bea534534b7b7fa7efe4ef0, the complete combined Bun 1.4.2 suite ended 11,241 pass, 28 skip, 4 fail, 68,016 assertions across 728 files in 1,907.95 seconds. The external frozen local-proof adapter ran from 2026-10-08T21:22:57.199Z to 2026-10-08T21:54:52.006Z and failed during the complete suite. Its selected base was 04ae590fca10093a1adb46259759892afadd788f. This is a local combined-suite receipt, not an automatic PR CI run or literal bun run check:pr proof.

The four failures are one boot hung-killer helper-PID absence, the existing HTTP If-Range failure tracked by #1111, and the two readonly-global ghost hooks tracked by #1158. Their owning files are byte-identical to the parent preparation base. The boot occurrence needs an independently reduced real-subprocess investigation; the combined failure does not identify its cause. The four skipped SQLite-vector rows were inverse empty placeholders, not missed behavioral coverage: all fourteen corresponding real cases passed in the original literal log, now reconciled in #1311. The availability claim is corrected; no installation or runtime defect is selected. The other 24 skips are intentionally live-key-required tests.

Six prerequisite phases completed, including lint/leakage, environment docs, changeset names/contribution checks, pinned capture fonts and first real Chrome render. The failure prevented downstream full browser/layout/capture/runtime/shared-cleanup/packed-consumer completion. Do not count the targeted checks, external adapter or differently ordered CI as a passing complete local proof.

Previously blocked by #1305 (resolved; see reconciliation below)
Previously blocked by #1111 (resolved; see reconciliation below)
Previously blocked by #1158 (resolved; see reconciliation below)
Blocked by #1310
Previously blocked by #1311 (resolved; see reconciliation below)

The literal required bun run check:pr --base origin/main is absent at the fetched remote base 04ae590fca10093a1adb46259759892afadd788f; #1305 owns that directly relevant prerequisite. Reconcile the actual shipped tool after it lands, resolve or explicitly handle the preserved full-proof blockers under the existing verification policy, and obtain the complete literal local proof and exact-current-head automatic CI before readiness/merge. The boot occurrence is tracked by #1310 and missing vector coverage by #1311, both attached to #736. The normally signed correction is pushed on branch fix/1294-smart-capture-physical-receipts-20261008; no new PR was created while mandatory proof remains incomplete. Parent #839's renewed complementary review, actual measured comparison and recommendation remain open. No paid model call, semantic approval, measured result or adoption is claimed.

Context

Found while preparing the authorized #839 rerun under #838. The preserved draft #1227 uses the Sonnet 5.5 subscription runner with SDK/native 0.3.283/2.1.283. At source a93adb52f0065a881661e850138a56a400be5008, startRelay (scripts/evals/smart-capture/relay.ts:11-120) records hashes and parsed counters but does not retain literal request/SSE/error bytes or await response closure when stopped. Missing cache counters are projected as zero. main (scripts/evals/smart-capture/native-observer.ts:13-123) assigns additionalBilledUsd = 0 from inactive overage alone. native (scripts/evals/smart-capture/live.ts:56-94) propagates that inference; classify (scripts/evals/smart-capture/live.ts:28-54) names a price-derived Jev estimate as an observed billed amount.

These gaps prevent independently reparsing the physical experiment and distinguishing diagnostics from invoices. Previous attempts and unknown invoices must remain unchanged.

Out of scope

Production provider changes beyond the narrow authorized shared #1275 permission arguments, model/version upgrades, model calls, fixture/rubric/threshold changes, adoption, and repair of #1255. No account state or protected credential details belong in public artifacts.

Scope

Correct only the private smart-capture collectors and admission checks, preserving the existing experiment and raw historical attempts.

Acceptance criteria

  • Preserve exact physical request and response/error bytes, hashes, status, selected non-secret headers, model, usage events, timing, cancellation/EOF/closure and every retry; never retain credentials.
  • Required missing/invalid input/output/cache usage stays unknown and stops subsequent dispatch; explicit zero remains valid. Reparse literal bytes for admission rather than trusting caller-supplied counters.
  • Stop and await relay and child drain within bounded deadlines; interrupted, malformed, rejected or incomplete streams remain failed evidence and refuse another request.
  • Keep native/Jev usage-derived price diagnostics separate from actual invoice fields. No rate event or calculated list price fabricates an observed billed zero or an invoice.
  • Hash-bind the corrected driver/protocol and refreshed keyless proof. Historical reviews cannot approve changed source. Offline approvals remain ineligible for live semantic approval.
  • Retain SDK/native 0.3.283/2.1.283, Sonnet 5.5/Jev 1.13.0, existing budget basis and experiment semantics.

Verification

Keyless local HTTP/SSE and actual native controls must cover absent cache counters, explicit zero, non-2xx bytes, malformed/partial/cancelled streams, stop during an active response, wrong requested/served model and auth, and dishonest derived receipt fields. Show failing-first or restored mutations failing on the claimed behavioral assertion. Run scoped tests, typecheck, lint and required current-head CI; preserve historical failures. No external inference is needed for this correction.

Contract impact

Private evaluation instrumentation plus the already authorized shared #1275 prerequisite: explicit --permission-mode default, unchanged tool allowlist and credential/settings restrictions, and its identical patch changeset. No public CLI JSON, MCP or frontmatter shape changes. #839 remains open until its independent review and measured comparison are complete.

Current resumption — 2026-10-08

The maintainer restored full execution access. Coordinator rechecks now pass actual loopback listening, offline network namespace setup, GitHub fetch and Depot status access. Earlier denied attempts remain historical failed evidence. Resume the preserved correction with its original pinned runtime, complete actual offline/native proof, configured signing, exact current source/proof/packets and required local pre-PR verification. No old approval covers changed source; no model/result/adoption or spending ruling changes. The new local-proof tooling is being prepared under #1305; inspection alone is not a passing proof.

2026-10-08 financial-bound correction: before each native physical request, reserve the documented full model context input ceiling and the actual bounded requested output at the already approved price ceilings. Request byte length remains a transport-size bound; it does not establish a smaller token ceiling. Complete literal usage may reduce the reservation after the response; incomplete or unknown usage retains the full hold. The primary token-count documentation describes estimates and supplies no finite byte-to-token bound for this collector. Refresh the source proof and every complete review packet after this scoped correction; cancelled earlier local-proof attempts remain partial evidence. No model, dataset, SDK, price cap or adoption ruling changes.

Dependency reconciliation — 2026-10-09

#1305's required-local-proof tooling is shipped. #1158's descriptor restoration is merged in PR #1317 with #1235, squash 65215fbfdceed874a4063bbc15df788e6e4ec6a7, whose exact-squash automatic main CI passes. #1111 is resolved by the already merged #1199 / PR #1201 native-range correction, with both-runtime and native-mutation evidence. #1311 is complete after original-log reconciliation proves all fourteen actual vector cases passed; a separate frozen Bun 1.4.2 install also passes the complete indexer file (62 pass / four inverse skips / zero failures).

Remaining declared blocker: #1310, which still lacks a reduced failing helper-start/PID control. Fresh complete #1235 proof reaches the unchanged brain/Claude hung-killer PID and liveness assertions successfully, but that passing source does not identify the earlier failure's cause. Preserve the original failed full proof and reproduction gap.

The candidate has not yet received complete literal bun run check:pr --base origin/main or current-head automatic CI against the delivered relevant changes. Refresh only relevant inputs, retain its existing frozen SDK/native/model/data and original financial/semantic boundaries, and regenerate source-bound keyless proof/packets where changed inputs require it. Parent #839's independent renewed review and measured comparison remain separate; no model request, semantic approval or invoice inference is authorized by this reconciliation. The prepared signed source/branch and original receipts remain available.

Activity

  1. added
    type: test
    area: core
    priority: p2
    agent-ready
    on Oct 8, 2026
  2. self-assigned this
    on Oct 8, 2026
  3. schlessera commented on Oct 8, 2026

    @schlessera
    OwnerAuthor

    Claim root-1294-receipts-20261008: preparing the scoped keyless receipt correction in isolated branch fix/1294-smart-capture-physical-receipts-20261008, from the preserved parent experiment source. No external inference in the child task. Existing models, instrument versions and experimental semantics remain fixed. The maintainer has explicitly authorized enabled extra usage under the existing actual-charge caps; paid admission remains bounded and independently verified by the root coordinator.

  4. added
    needs: human
    and removed
    agent-ready
    on Oct 8, 2026
  5. schlessera commented on Oct 8, 2026

    @schlessera
    OwnerAuthor

    This corrective child preserves complete literal private request/response/error bytes, required cache-counter uncertainty, bounded EOF/cancel/drain, and independently reparsed source/runtime/proof/prompt-bound native evidence. Invoice fields remain null; usage-derived list-price diagnostics and conservative reservations remain separate. Scripted offline APPROVED text cannot admit a semantic review.

    Explicit paid turns require coordinator-issued single-use grants covering the exact fixture/source/runtime/proof/original input, purpose and conservative allowance, with each physical dispatch reserved before forwarding. A paid-allowed route may retain an included-quota rejection status; genuine paid rejection, unknown usage or partial failure stops subsequent dispatch. Current /add skill expansion and tool-result inputs remain literal derived observations from the source-verified native session.

    The exact-source checks completed before the execution permissions changed: 162 tests / 812 assertions, typecheck, lint, build, and nine intended failing mutations passed after restoration. Actual offline native 2.1.283 controls covered paid-allowed review, genuine rejection, single-use replay, and a real /add fixture write across two physical requests. All drained and were ineligible as model-quality or semantic-approval evidence. SDK/native283, Sonnet5.5, Jev1.13.0, fixtures, goldens and thresholds stay unchanged. The separately authorized core default-mode patch and its identical pending changeset are included.

    The full staged correction is preserved in an independent writable clone and a reverse-checked byte-identical patch. Current managed permissions block local listening/native network-namespace setup and configured GPG signing. A transferred verification attempt retained 116 passes / 28 environment-caused failures; typecheck and lint pass. No guard was weakened, no provider call occurred, no signed commit or PR was produced, and no fresh semantic approval is claimed. Parent #839's renewed complementary review, actual comparison and recommendation remain pending after the correction is integrated and the native/signing environment permits the original checks.

  6. removed their assignment
    on Oct 8, 2026
  7. added
    agent-ready
    and removed
    needs: human
    on Oct 8, 2026
  8. self-assigned this
    on Oct 8, 2026
  9. schlessera commented on Oct 8, 2026

    @schlessera
    OwnerAuthor

    Resuming preserved correction under claim root-1294-full-access-20261008. The coordinator verified restored execution access. Preserve all previous failed attempts and source/runtime qualifications; complete actual native and required local proof before PR readiness. No new model or spending ruling is requested.

  10. added
    blocked
    on Oct 8, 2026
  11. schlessera commented on Oct 8, 2026

    @schlessera
    OwnerAuthor

    2026-10-08 UTC /2026-10-09 Berlin handoff: normally signed3df2ecc is pushed on fix/1294-smart-capture-physical-receipts-20261008. Scoped165/824 and actual offline native controls pass. Complete suite ends11241pass/28skip/4fail; downstream proof is unfinished. Existing #1111/#1158 cover three failures; #1310 tracks missing boot-helper PID; #1311 tracks unproved vector coverage. Literal check:pr requires #1305. Full bodies now declare exact blockers and preserve source/runtime/charge/model boundaries. No model request or semantic approval. Release only root-1294-full-access-20261008 claim; preserve code/proofs for resumption.

  12. removed their assignment
    on Oct 8, 2026
  13. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Reconciled delivered prerequisites: #1305 and #1158 are merged; #1111 was corrected by PR #1201; #1311's original missing-coverage claim is disproved by its exact retained real-case rows and a fresh frozen install. The body now leaves only #1310 as the declared dependency and names the fresh candidate full-proof/current-CI work still required. No old failed proof is relabeled, and no paid run or semantic approval is supplied.

  14. schlessera commented on Oct 10, 2026

    @schlessera
    OwnerAuthor

    Closing as not planned. On 2026-10-10 the maintainer retired the spike freeze, receipt, admission and native-fixture machinery under #838; the evaluations now follow the lean protocol in #838's body, and the spike-only harnesses are being removed. This qualification existed only for that machinery. Its findings remain here as history.

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

    agent-readyarea: coreblockedpriority: p2type: test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions