Skip to content

Bind sourced resource accounting and Eval budgets to graph authority - #4

Merged
robertdevore merged 13 commits into
mainfrom
codex/sourced-resource-accounting
Oct 1, 2026
Merged

robertdevore merged 13 commits into
mainfrom
codex/sourced-resource-accounting

Conversation

@robertdevore

@robertdevore robertdevore commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Dispatch can now reserve program and first-class Eval capacity together under its existing graph lock, consume Eval dispatches durably, and resolve exact evaluator results without refunding consumed work. Explicit Eval-only retry uses a new identity and the same bound program result after conclusive infrastructure failure. Branches and subgraphs use the existing DAG and separate resource dimensions.

Runtime measurements and SDK context ledgers retain exact source artifacts. Observed, provider-reported, estimated and unknown values remain distinct; incomplete totals are null. An optional source-availability policy fails closed on missing provider usage. Numeric token, runtime and monetary ceilings remain deferred because these post-hoc sources do not bound future consumption.

The canonical gate also exposed missing sibling Eval/Workcell CI fixtures. Both workflows now provision pinned dependencies through guarded aliases, and isolated recovery copies retain the complete source inventory. The host verifier manifest bound grows from 16 to 32 files; historical hashes and participant bytes remain unchanged.

Validation on 2577c60ff7ef79992f34b4627799f488cf5edcd6:

  • Full canonical release gate: 87 focused suites, 24 shards / 101 tests, VM/interpreter command checks and 3/3 release workloads passed.
  • New coverage: 20 native assertions and 19 integration proof groups, including fresh-process capacity races, actual crash points, unknown sources and corrupt artifacts.
  • CI layout checks: 5 passed; workflow YAML files parsed. Hosted full CI passed on Linux and macOS at 37874350de7d36eaf5c34a8b7fe2767841c3c3ae: https://github.com/kujolang/dispatch/actions/runs/36896068452.
  • The first failed canonical run, correction and full successful rerun are retained in docs/evidence/resource-accounting/. Source/evidence hashes verified. Changes after the tested application source contain documentation/evidence and the artifact-policy correction below; production resource code is unchanged.

Post-push artifact CI rejected the intentionally retained logs under the generic log ignore. The bounded exception now passes the complete history guard and three focused guard checks; ordinary logs and missing ignore coverage still reject. The original hosted failure and correction evidence are retained. Kujo's companion PR #20 integrates the existing release-owned installation and compiler fixes.

See docs/contracts/resources/ and docs/audits/resource-accounting.md for ownership, recovery, source-scope and installed-host boundaries. No new scheduler, participant wire contract, pricing engine or remote authority is introduced.

The hosted recovery proof exposed a same-second refresh fixture that incorrectly expected distinct evidence bytes. The fixture now requests a distinct validity window, retaining production rejection of identical rebindings. All 29 retained-recovery proofs pass locally and in the complete hosted gates.

@robertdevore
robertdevore merged commit de66a66 into main Oct 1, 2026
4 checks passed
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.

1 participant