Repository navigation
Covel v0.0.18
[0.0.18] - 2026-07-24
The scheduling release. The numeric priority scheduler is gone: runtimes now declare a named stage (setup / pre-turn / narrative / post-turn / audit, strict barriers between stages) plus typed dependency edges — needs (gate + DAG edge, by runtime id or capability), after (ordering only), and typed inputs bindings resolved into provenance-wrapped ctx.inputs. Session lifecycle truth moved to a dedicated clock (phase / completedPlayerTurns / setupRuntimes) with turnCount / preGameCompleted derived at read time, and turn counting became single-writer (turn-wide finalize transaction + an idempotent logical-turn ledger). A same-day extensibility audit closed every "declared but silently ignored" manifest surface it found.
Added
- Stage-driven scheduler — per-stage DAGs with strict barriers; independent runtimes in a stage run in parallel (name breaks ties); dependency cycles are diagnosed and disabled for the turn instead of silently run in arbitrary order. Band selection is by
session.phase, not turn number. - Session clock + setup state machine — per-runtime setup mirrors with retry budgets, generations (a plugin version bump invalidates a stale
done), and ablockedterminal;needs(scope: session)cycles are blocked up front with a full path diagnostic, and the positive gate holds a consumer back until its producer isdonein the frozen snapshot. - Opening continuation — the request that completes the last setup runtime chains exactly one main-loop turn on the same SSE stream, so the narrator's opening arrives without a second player message.
- envelope-v1 handler results — discriminated
success / suspended / skipped / failedoutcomes with unified normalization; non-success envelopes carry observation channels only. All bundled function handlers migrated. recordAsexports andruntime-exportinjects — versioned cross-execution publications with frozen-at-execution-start reads.- Kernel job-status channel —
ctx.progress.report()streams append-only, idempotent progress events (SSE + store) for long-running work; reported jobs are terminalised from the execution outcome. - Effects declarations — derived read/write sets with a same-layer hazard policy (
effects.reads/writes/parallelSafe), plus declared HTTP permission upper bounds (permissions.http). pnpm validate:plugin— one command runs the loader compat parse (line-numbered errors, I18nText folding) and the strict authoring schema (missingstage/ legacy fields rejected);--compatcovers legacy third-party manifests.schedulable-missing-stagediagnostic — anauto/scheduledruntime with neitherstagenor legacyprioritynow warns at load instead of silently never running; pure registration surfaces (ui / hooks / entry / wires) are exempt.- Media plugins and wires — bundled
dashscope-image-gen/openai-image-gen/mimo-ttsplugins; wan2.6/wan2.7 multi-image support and qwen-image-3 on the DashScope wire; shared image-generation trunk extracted intoplugin-handlers-utils.
Changed
- Legacy scheduling fields are compat-only —
priorityfolds to a derivedstageandupstreamRequiredaliases intoneedsat a single normalize point; all bundled plugins single-declarestage+needs(two documented loader-gatedpriorityexceptions remain). Event fan-out orders subscribers byname, not priority. turnCount/preGameCompletedare frozen legacy columns — API responses derive them from the session clock at read time; response shapes are unchanged.- Manifest
descriptionaccepts I18nText — the preferred locale-map form now validates on both schemas (the loader folds to a single string post-parse), so editor tooling no longer flags every bundled manifest. - Docs and skills realigned — flow.md's state model rewritten around the session clock; the zero-code/advanced guides, plugin registry, glossary, and protocol pages purged of priority-era wording; the create-plugin and static-audit skills rewritten against current contracts; non-project drafts pruned from
docs/per DOCS_STRATEGY; scaffolding templates modernized; "GalGame" naming unified to stage mode.
Removed
scheduleByPriorityand the numeric priority scheduler — stage + DAG is the only scheduling authority.- Reserved trigger types —
conditional/error-retryare gone from the trigger enum (manifests declaring them fail to load), together with their five dead code remnants and the orphancondition/maxRetryCountfields. - Dead session-plan types — the never-consumed
SessionExecutionPlan/ExecutionEdge/SessionGate/ResolvedRuntimefamily.
Fixed
needs(scope: session)is real now — enforced as a positive gate in setup selection and rejected on any non-setupstage, closing the accepted-but-inert declaration trap.- Discovery advert completeness —
inputInjectKindsderives from the inject union (it had silently omittedruntime-export); trigger types were already schema-derived. - Scaffolding correctness —
create-plugin.jsemitted aninput.injectentry without the requiredkinddiscriminator (generated plugins failed validation); the plugin-with-tools template still taughtpriority+scheduled interval: 1. test-runtime --ignore-upstreamsalso strips theneedsdeclaration, not just the legacy alias.
What's Changed
- feat!: stage-driven runtime scheduling, session clock, and declaration-surface hardening (v0.0.18) by @ackness in #25
Full Changelog: v0.0.17...v0.0.18