Skip to content

Add flow checkpoint/resume (durable execution) and py.typed marker#229

Merged
JE-Chen merged 1 commit into
devfrom
feat/reliability-batch
Jun 19, 2026
Merged

Add flow checkpoint/resume (durable execution) and py.typed marker#229
JE-Chen merged 1 commit into
devfrom
feat/reliability-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 19, 2026

Copy link
Copy Markdown
Member

Round-6 follow-up, batch 11 — durable execution for long flows + the PEP 561 typing marker, wired through all five layers (facade, AC_*, MCP, Script Builder) with headless tests + EN/Zh v21 docs + README sections.

Features

  • Flow checkpoint & resume (utils/checkpoint) — run_resumable(actions, run_id=..., store=...) + CheckpointStore/Checkpoint: persist {run_id, step_index, variables} after each step (pluggable SQLite store); on re-run with the same run_id, fast-forward past completed steps and rehydrate variables, then clear on completion. A flow that crashes at step 400 resumes at 400. AC_run_resumable / AC_checkpoint_status / AC_checkpoint_clear + ac_*.
  • py.typed marker — ships the PEP 561 marker (+ package-data) so Mypy/Pyright/Pylance honor AutoControl's inline type hints downstream (the repo already had a stub generator but no marker, so the typed API was invisible to type checkers).

Why

The reliability research agent flagged checkpoint/resume as the top durable-execution gap (the executor recorded steps but discarded progress on crash); the DevEx agent flagged the missing py.typed. Both pure-stdlib, fully unit-testable (store is injectable — resume tested without a real crash).

Verification

  • test/unit_test/headless/test_checkpoint_batch.py — 8 tests pass (store CRUD, full run, resume-from-checkpoint, variable rehydration, py.typed present, wiring).
  • ruff clean; radon no CC≥C; bandit clean; import je_auto_control PySide6-free.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 41 complexity · 2 duplication

Metric Results
Complexity 41
Duplication 2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit d06a7e4 into dev Jun 19, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/reliability-batch branch June 19, 2026 08:09
@sonarqubecloud

Copy link
Copy Markdown

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