Files
Nilton Constantino bd2c9133da feat: add agent coordination and automatic work completion
Add portable topics and surveys, decision approval history, execution plans, local Codex and Claude adapters, and general agent routing. Consolidate Plan and EPIC results through deterministic completion receipts, reviewed cancellation scope and recoverable reconciliation.

Track the completed WRK-0001 and WRK-0002 records, protocol documentation, source manifests and delivery evidence.

Validation: 117 tests including Modulith; GraalVM 25 native compilation, standalone smoke and ZIP/TAR verification on macOS ARM64; identical persisted context across JVM and native executions.
2026-11-14 01:12:21 +00:00

110 lines
6.7 KiB
Plaintext

# WRK-0002 / PLN-0001 — observed delivery evidence
Date: 2026-11-14. Platform actually built and tested: macOS ARM64.
Authority: DEC-0001 ACCEPTED, human recommendations accepted in DSC-0009 and
implementation explicitly requested in DSC-0011. No new human delivery approval
is invented: Work completion follows the accepted deterministic aggregation rule.
## Scope and source identity
Implemented Step → Plan → Work aggregation, public mutation notifications and
explicit `work reconcile`, content-bound `plan exclude` scope review, deterministic
pending diagnostics and SYSTEM_PLANS receipts. Criteria stay in Plans/steps; Work
completion does not require another manual criterion checklist or model inquiry.
EPIC completion retains its existing explicit policy authority and SYSTEM_EPIC origin.
Verification/PlanCoordinator owns coordination/receipts; Planning owns Plans/steps
and exclusion history; Work owns lifecycle/provenance; Artifact owns evidence;
CLI exposes state/commands. Ten Modulith modules remain. No dependency/framework,
server, database, command executor or preview language feature was added.
Git HEAD c84bb8d36f88ef249a249cdfe7b476fd148717af is the baseline, not a claim that
the implementation was committed there. The workspace contains uncommitted changes.
ART-0011 captures 99 source/test/resource/build/documentation files, including
previously untracked files, excluding mutable .ai-engineering bookkeeping.
Manifest SHA-256: 87421f60ffc5a2b1738e898deea572b6a6c29969a0947a6fefa8c232139bd3f6.
## Commands and actual outcomes
```
./gradlew test --tests '*PlanConsolidationTest' --console=plain
./gradlew test --console=plain
./gradlew -Dorg.gradle.java.home=/path/to/graalvm25 test --tests '*PlanConsolidation*' --tests '*OperationalWorkflowTest' --console=plain
./gradlew -Dorg.gradle.java.home=/path/to/graalvm25 clean test bootJar nativeCompile --console=plain
JAVA_HOME=/path/to/graalvm25 GRAALVM_HOME=/path/to/graalvm25 ./gradlew nativeCompile --console=plain
JAVA_HOME=/path/to/graalvm25 GRAALVM_HOME=/path/to/graalvm25 ./gradlew nativeDistZip nativeDistTar -PtargetPlatform=macos-arm64 --console=plain
```
Actual GraalVM home: /Users/niltonconstantino/.sdkman/candidates/java/25.5.5.0+3-graalce.
GraalVM CE 25.5.5.0.3 / JDK 25.0.5.0.3; Gradle Wrapper 9.3.1; Java release 25.
Four initial acceptance tests compiled and failed for absent behavior (ART-0002).
The first broader run exposed two old manual-closure fixture expectations; these
were updated for the new behavior. Two added fixture assertions were corrected
for required DEC content and provenance access. Targeted 16 scenarios then passed.
The final clean run's test/bootJar tasks passed 117 tests in 19 suites: zero failures,
errors or skipped tests, including Modulith (ART-0004/0005).
That clean command's native task failed because Native Build Tools used SDKMAN
current, which pointed to Amazon JDK without native-image. Explicit JAVA_HOME and
GRAALVM_HOME corrected selection; nativeCompile passed in 1m28s (ART-0006).
Seven upstream warnings and build-time SLF4J notices remain. Both packaging tasks
passed with nativeCompile up-to-date (ART-0009). No unresolved test/build failure
or successful CI execution on another platform is claimed.
The development sandbox initially blocked the Gradle cache lock; authorized tests
ran outside it. The orchestration tool connection was replaced during evidence
registration; persisted artifact state was inspected before continuing, avoiding
duplicate attachment. No provider/model request was made in this Work.
## Verified behavior and continuity
- Last completed step consolidates its Plan; another required Plan keeps Work open.
- Completed required Plans close Work with SYSTEM_PLANS and humanApproved=false.
- Cancelled scope requires explicit review; history/content binding is retained.
- Exclusion does not satisfy a step dependency; changing reviewed content invalidates it.
- Empty sets, explicit blocked/cancelled states, unanswered discussion/surveys and
draft DECs remain pending. Resolving the final impediment re-evaluates completion.
- Explicit Work/Plan reopening leaves time to revise/add Plans; old conclusions remain.
- A new coordinator recovers persisted last-step and receipt publication; replay
does not duplicate completion or receipt. Invalid evidence prevents step mutation.
- Child Plan completion propagates to an authorized EPIC without another human closure.
- A configured must-not-run adapter cannot be invoked; no model is required for checks.
The isolated executable alone passed the complete native smoke with nonexistent
JAVA_HOME/GRAALVM_HOME and no JVM on PATH, with no helper dylibs copied (ART-0007).
This includes legacy single/multi-Git, refinement, controlled CLI transports, EPIC,
operational-cycle and new two-Plan/cancelled-scope/replay scenarios.
Retained synthetic fixture:
/var/folders/0t/tfsqc14j5wbgh9h4s4dytwb00000gq/T/ai-engineering-smoke.YUYSGM
Its plan-consolidation context reloaded in fresh JVM/native processes byte-for-byte
identically; SHA-256 01d7a53cbff10ab9ca39b8915bc99f96ba5d1a7985985abcccdd6c9c30180ae6.
Fixture validation and the pre-existing completed WRK-0001 were valid (ART-0008).
ZIP/TAR were extracted and retained executable permissions, the exact tested binary
and current docs. ZIP validated the fixture without JVM; TAR ran --version without
JVM (ART-0010). Native SHA-256:
64aa4bc9f4c241457a7c604239f3bdfe8c96a56899a0dd600d3f6acca381b75e.
ZIP SHA-256: d18f5eb0b8ec931f7e0e6b394d822d017bc74a10c7c71c26cd432fa4559ad25b.
TAR SHA-256: d2292a13455c75f398dae25fe5715c9293fe6f8332aba7b45aa8227d674d49b7.
Canonical README, architecture, protocol, roadmap, experiments, consolidation contract
and bundled entry guide/manifest are updated. Source-project onboarding refreshed
only its guide/manifest; root AGENTS.md bytes remain unchanged. Zelda was not modified.
## Limits and final transition
Coordination is invoked through public CLI/PlanCoordinator APIs; low-level storage
callers explicitly reconcile. Publication remains atomic per file, with deliberate
inspection/repair for malformed or orphan records. Aggregation validates recorded
execution state/integrity; it does not infer semantic correctness of arbitrary prose
or prove the external execution behind a supplied log. Repository execution and
legacy import remain separate work. Only macOS ARM64 native distribution was tested.
This report is attached before the final step transition. Marking TSK-0005 COMPLETED
with these actual results will exercise this project's own consolidation; the final
Plan/Work state and system receipt are recorded by the framework, not asserted here
in advance. Next experiment: a bounded external multi-Plan pilot with pending-state
report review before broadening execution capabilities.