feat: add Work guidance and adaptive Plan experiments
Test / Tests and coverage occurred while executing withChecks step.
Intrepid/AI Engineering/pipeline/head There was a failure building this commit
build / jvm (push) Canceled after 0s
build / native (macos-15, macos-arm64) (push) Canceled after 0s
build / native (ubuntu-24.04, linux-x86_64) (push) Canceled after 0s
build / native (windows-2025, windows-x86_64) (push) Canceled after 0s
Test / Tests and coverage occurred while executing withChecks step.
Intrepid/AI Engineering/pipeline/head There was a failure building this commit
build / jvm (push) Canceled after 0s
build / native (macos-15, macos-arm64) (push) Canceled after 0s
build / native (ubuntu-24.04, linux-x86_64) (push) Canceled after 0s
build / native (windows-2025, windows-x86_64) (push) Canceled after 0s
Persist explicit human discussion choices, DEC requests and approval policies. Add optional evidence-backed Plan experiments and align context, adapters and next actions under protocol contract 3. Include WRK-000B decisions, plan history and verification evidence: 167 JVM tests, 25 focused checks, Jenkins fixtures and native smoke coverage.
This commit is contained in:
@@ -7,6 +7,13 @@ import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public final class DiscussionService {
|
||||
public boolean hasPending(Path root, String work) {
|
||||
var entries = list(root, work);
|
||||
var answered = entries.stream().filter(e -> e.kind() == DiscussionEntry.Kind.RESPONSE || e.kind() == DiscussionEntry.Kind.CONCLUSION)
|
||||
.map(DiscussionEntry::respondsTo).filter(java.util.Objects::nonNull).toList();
|
||||
return entries.stream().anyMatch(e -> (e.kind() == DiscussionEntry.Kind.QUESTION || e.kind() == DiscussionEntry.Kind.ISSUE) && !answered.contains(e.id()))
|
||||
|| new SurveyService().list(root, work).stream().anyMatch(s -> s.questions().isEmpty() || !s.pending().isEmpty());
|
||||
}
|
||||
private final WorkService works = new WorkService();
|
||||
public List<DiscussionEntry> list(Path root, String id) {
|
||||
Work work = works.load(root, id); Path folder = works.folder(root, id);
|
||||
|
||||
Reference in New Issue
Block a user