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
This commit is contained in:
1 parent
5c9a313424
commit
e13c1828a4
23 files changed
+3312
-158
No files matched your search
+4
-4
@@ -73,9 +73,6 @@ dir="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
||||
printf 'invocation\n'
|
||||
for arg in "$@"; do printf 'arg=%s\n' "$arg"; done
|
||||
} >> "$dir/argv.txt"
|
||||
if [ -f "$dir/sleep" ]; then
|
||||
sleep "$(cat "$dir/sleep")"
|
||||
fi
|
||||
case "$1" in
|
||||
--version)
|
||||
if [ -f "$dir/version" ]; then cat "$dir/version"; else printf 'marqdo 3.0.0-beta.1\n'; fi
|
||||
@@ -94,8 +91,11 @@ case "$1" in
|
||||
if [ -f "$dir/check_exit" ]; then exit "$(cat "$dir/check_exit")"; fi
|
||||
exit 0
|
||||
;;
|
||||
run)
|
||||
run|call)
|
||||
: > "$dir/run-was-called"
|
||||
if [ -f "$dir/sleep" ]; then
|
||||
sleep "$(cat "$dir/sleep")"
|
||||
fi
|
||||
trace=""
|
||||
prev=""
|
||||
for a in "$@"; do
|
||||
|
||||
Reference in new issue
Block a user