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.
This commit is contained in:
2026-11-14 01:12:21 +00:00
parent 94e3135c2e
commit a8a8faf5d8
355 changed files with 25740 additions and 154 deletions
@@ -18,7 +18,8 @@ public final class DiscussionService {
}
public DiscussionEntry add(Path root, String workId, String text, DiscussionEntry.Kind kind, String author, String discussionId, String respondsTo) {
return Filespace.locked(root, () -> {
var work = works.load(root, workId);
var work = works.editable(root, workId);
if (discussionId.startsWith("TOP-")) new TopicService().require(root, workId, discussionId);
if (respondsTo != null && list(root, workId).stream().noneMatch(e -> e.id().equals(respondsTo)))
throw ProtocolException.invalid("Response target not found in Work: " + respondsTo);
String id = works.nextReference(work.discussions(), "DSC");