Files
marqdo-view/src/execution/mod.rs
T
cflmy e13c1828a4 feat(PR-03): execution controller, cancellable process adapter and budgets
- add src/execution/{request,process,controller,events}.rs implementing RFC-0002
  §6.3 request validation, function_id->CLI name resolution, single-job
  lifecycle, dedupe by client_request_id+payload digest, 409 busy/conflict,
  unique terminal states, idempotent cancel and Trace v2 binding against the
  exact pre-run Analysis bytes
- route all Core subprocess spawning through one bounded, cancelable adapter
  with process-group TERM->2s->KILL, spawn hook, 4 MiB output caps and explicit
  --fuel/--max-output/--timeout/trace budgets; CoreClient check/--version reuse it
- add marqdo.view-run-events v1 event log: 128 frame ring, Last-Event-ID replay
  or authoritative snapshot, numeric seq/id, heartbeat constant
- add bounded --run-timeout (default 30s, max 120s
- add ADR-0008 (lifecycle/cancel race/trace-missing semantics) and PR-03
  evidence; execution tests use a real fake-Core executable
- unit 58 + contract 41 + integration 42 pass; clippy clean
2026-11-22 13:39:17 +08:00

16 lines
605 B
Rust

//! Execution layer: the only path from an explicit user request to a Core
//! subprocess.
//!
//! `DocumentService` and the renderer never depend on this module; only the
//! `POST /api/runs` server handler can reach it (RFC-VIEW-0002 §5.1).
//!
//! - `request`: schema/target/parameter/mode/grant validation
//! - `process`: the one cancellable Core process adapter with bounded capture
//! - `events`: bounded, sequenced View-owned run events and SSE frames
//! - `controller`: single-job lifecycle, dedupe, cancel, Trace binding
pub mod controller;
pub mod events;
pub mod process;
pub mod request;