Skip to content

feat(cli): add idempotent evaluation cancellation - #16

Open
CN059 wants to merge 2 commits into
agent/inflight-microvm-cancellationfrom
agent/operator-cancel-command
Open

CN059 wants to merge 2 commits into
agent/inflight-microvm-cancellationfrom
agent/operator-cancel-command

Conversation

@CN059

@CN059 CN059 commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

  • add a bounded cancel command for trusted development operators
  • remove caller-supplied EvaluationResult from the cancellation command
  • build and commit the canonical cancelled result from the persisted current Attempt under the storage transaction lock
  • drive the real-KVM interruption E2E through the actual CLI and verify idempotent replay, sub-3-second reclamation and judge survival

Security and compatibility

The caller can no longer inject verdict, score, Attempt, provenance, stages, usage, diagnostics or evidence. The generated terminal uses DevelopmentMock, production_eligible=false and no node provenance so it does not fabricate guest or Firecracker evidence.

This remains a direct-PostgreSQL development tool for a trusted operator. Production authentication, authorization, approval, limits and structured audit are intentionally not claimed. Canonical v0alpha1 schemas, guest/host protocols, migrations and persisted formats are unchanged; only an unpublished internal Rust command type changes.

Validation

  • KVM-enabled cargo test --workspace --all-targets --locked: 157 passed
  • process E2E: 9 passed in 17.41 seconds
  • focused CLI-triggered real microVM cancellation: passed; resource reclamation remained under 3 seconds
  • strict runtime KVM smoke: passed in 1.73 seconds
  • PostgreSQL control-spine: 17 passed in 1.74 seconds
  • fmt, workspace check, Clippy -D warnings, cargo deny, dependency-direction and documentation gates passed
  • architecture, development and verification skill validators passed

Unverified

Production cancellation authentication and audit, stage-accurate cancellation position, real-KVM lease-loss and UDS-disconnect interruption, cooperative guest cancellation and production isolation profiles remain unverified.

Stacked on #15. Review only the two commits between agent/inflight-microvm-cancellation and this branch.

CN059 added 2 commits August 31, 2026 08:50
Accept only a typed evaluation ID and caller-stable idempotency key at the development CLI boundary. Build the canonical cancelled result from the persisted current Attempt inside the storage transaction so callers cannot inject verdict, score, provenance, stages, or evidence.

Refs: FR-JUDGE-003, FR-SCHED-001, FR-RESULT-001, ACC-P0-003, ACC-P0-017, ACC-P0-018, ACC-P0-019, CTL-IDEMPOTENCY-001

Tests: KVM-enabled cargo test --workspace --all-targets --locked (157 passed); real_microvm_cancellation_interrupts_and_reclaims passed; fmt, workspace check, Clippy -D warnings, cargo deny, check-workspace, check-docs and applicable skill validators passed

Unverified: production cancellation API authentication, authorization, approval, rate limits and structured audit; real-KVM lease-loss and UDS-disconnect cancellation

Security: The CLI remains a trusted development database client and is not exposed as a production management surface. Cancellation result fields are now generated behind the storage lock rather than accepted from the caller.

Compatibility: Internal unpublished Rust command types change; canonical v0alpha1 schemas and guest/host protocols are unchanged.

Migration: None; the existing schema and persisted request/result formats are unchanged.
Record the trusted development CLI boundary, server-generated cancellation result, idempotent replay, terminal conflict behavior and real-KVM reclamation evidence. Keep production authorization, audit and stage-accurate cancellation position explicitly unverified.

Refs: FR-JUDGE-003, FR-SCHED-001, FR-RESULT-001, ACC-P0-003, ACC-P0-017, ACC-P0-018, ACC-P0-019, CTL-IDEMPOTENCY-001

Tests: KVM-enabled workspace suite passed 157 tests; process E2E passed 9 tests; strict KVM boot and 17 PostgreSQL control-spine tests passed; check-docs and applicable skill validators passed

Unverified: production cancellation authentication, authorization, approval, rate limits and audit; live stage progress; real-KVM lease-loss and UDS-disconnect cancellation; production isolation profiles
@CN059
CN059 force-pushed the agent/inflight-microvm-cancellation branch from 801567e to f4e2b11 Compare August 31, 2026 00:51
@CN059
CN059 force-pushed the agent/operator-cancel-command branch from b980fa4 to 528a369 Compare August 31, 2026 00:51
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