Skip to content

[FEATURE] Complete verification-goal on-demand proof execution through VNext #355

Description

@Joncallim

Parent tracking issue: #187
Parent programme: #184 / #333
Execution mode: implementation
Depends on: #336
Consumed by: #337, #356

Problem Statement

The verification-goal registry/import/revision foundation from #187 is already merged on main through PRs #328-#330, but later executable proof-run work accumulated in stale monolithic PR #331 before VNext. Continuing that branch would introduce project-specific execution/scheduling machinery beside the generic Mission/Execution/Operation runtime.

Forge still needs a safe on-demand proof execution slice before Software Engineering and later scheduled verification can rely on verification goals.

Desired Outcome

A current verification-goal revision can be run on demand as one bounded VNext Execution using typed Operation bindings, explicit Resource/Grant/budget admission and #336 confinement. The run persists canonical outcome/evidence compatible with #185/#186 and safely recovers from restart/duplicate delivery. It owns no recurring scheduler and makes zero model calls by default.

User Story

As the Forge operator,
I want to run a registered “what still works” assertion on demand through the same governed runtime as other work,
So that proof evidence is trustworthy without reviving the stale project-specific runner architecture.

Requirements

Implementation Sequence

  1. Run contract + persistence — versioned proof-run identity/state/evidence linked to exact goal revision and generic Execution/Principal/Resource/Operation refs; immutable terminal history and rebuildable projections.
  2. Preflight/admission service — load current goal revision, verify enabled/current state, bind Resource/ref/version, resolve allowed deterministic Operation, enforce [FEATURE] VNext Phase 2 — secure generic execution envelope and side-effect recovery #336 Grant/confinement/budget/timeout limits before execution.
  3. Confined deterministic runner — execute supported command/file proof operation with bounded environment/output/filesystem/process/time; default no model/provider path.
  4. Canonical result mapper — distinguish assertion failure, runner/infrastructure failure, policy block, cancellation and inconclusive evidence; emit [FEATURE] Normalize execution outcomes and stop reasons #185 outcome without collapsing unknown state.
  5. Evidence + reliability integration — persist deterministic evidence refs/fingerprints and feed only comparable completed evidence to [FEATURE] Add capability reliability ledger #186; last-green/first-failing projection derives from immutable runs.
  6. Idempotency/recovery — stable request/run identity, lease fencing, duplicate request/restart/cancel tests and no double terminalization/confirmed side effects.
  7. API/operator path — authenticated on-demand run request, current run/status/result/recovery; do not mix scheduling or reporting subsystem work.
  8. PR331 requirement-port review — inspect stale PR feat: implement project verification goals and proof runs (#187) #331 solely for edge-case tests (redaction, output bounds, restart/idempotency, command policy) and prove every retained behavior is either implemented here or explicitly out of scope.

Primary Code Seams To Inspect First

Orthogonal Checkpoints

  1. Goal/revision authority: current vs stale/archived/disabled revision, optimistic revision race, Resource/ref mismatch.
  2. Operation policy: arbitrary shell/model-authored command injection, unsupported Operation, environment/path/symlink escape, Resource widening.
  3. Confinement/cancellation: timeout, kill/revoke, stale lease, child process, output/disk/resource bounds.
  4. Persistence/idempotency: duplicate request, crash before/during/after Operation, restart, terminalization race, projection rebuild.
  5. Outcome semantics: assertion failure vs infrastructure error vs block vs inconclusive; unknown/missing evidence never maps green.
  6. Evidence/privacy: secrets/raw protected paths/output/logs, redaction and retention, evidence fingerprint provenance.
  7. Reliability comparability: wrong goal/Resource/Operation/runtime cohort excluded; sample counts not inflated by duplicate/retried runs.
  8. Dependency/scope: no scheduler/Trigger implementation, no reliance on [FEATURE] Schedule verification-goal proof runs through generic Triggers #356 or [FEATURE] Add independent Verification Workforce execution #188; no model call by default.
  9. Regression: merged PR328-330 registry/import/revision behavior remains authoritative and green.

Acceptance Criteria

Out of Scope

Implementation Scope

Large - expected as 3-5 small PRs: run contract/persistence; preflight+confined runner; outcome/evidence/reliability; recovery/API; final adversarial regression.

Technical Notes

New implementation branches start from current main. Treat PR #331 as reviewed historical test evidence only. After each schema/runner/recovery checkpoint, perform fresh contract, state, failure, security/privacy, regression and evidence-readiness passes before proceeding.

Activity

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

    dependency-blockedREADINESS PROJECTION — Issue is blocked by unresolved dependencies. This label is a cache.enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions