feat: promote draft decisions when creating plans

Promote referenced drafts deterministically with system provenance, causal
Plan links, supersession history and recovery from publication failures.
Preserve direct human approval and historical records.

Add JVM and native regression coverage and update the portable protocol.
Record the WRK-0007 importer decision and six-step plan, and complete
WRK-0008 with verification evidence.
This commit is contained in:
Nilton Constantino
2026-11-16 12:35:06 +00:00
parent 95c28e2e79
commit 3d2abb487f
101 changed files with 5322 additions and 14 deletions
+9
View File
@@ -106,6 +106,15 @@ workflow before introducing intelligent adapters or a legacy importer. Planning
a concrete ninth module, not a custom workflow engine. A plan records editable scope,
dependencies and externally executed results. Starting/completing steps checks their
dependencies and accepted decisions. No repository command is executed by Planning.
Plan creation prepares deterministic draft-decision promotions through Decision,
validates every reference before publication and records SYSTEM_PLAN provenance
with the causal Plan ID and no fabricated human attestation. Existing accepted
decisions are unchanged. Decision exposes prepared promotion/recovery operations;
Planning coordinates them under the existing project lock. Ordinary failures roll
back the attempted writes; crash interruption remains subject to per-file atomicity
and structural validation. Verification checks promotion links against Plan history.
No adapter is invoked, and the Decision module has no dependency on Planning.
Plans/steps can be reopened and revised when observations change.
DEC approval is an explicit human-attestation command, with actor, reason and time.