Skip to content

feat: add contract-review-dag cookbook example with step-level retry#155

Merged
JackChen-me merged 4 commits into
open-multi-agent:mainfrom
fault-segment:example/contract-review
Apr 24, 2026
Merged

feat: add contract-review-dag cookbook example with step-level retry#155
JackChen-me merged 4 commits into
open-multi-agent:mainfrom
fault-segment:example/contract-review

Conversation

@fault-segment
Copy link
Copy Markdown
Contributor

What

This PR add an contract review pipeline with task DAG example.Parallel execution and forced retries were verified.

Why

Complete this Issue #136

Checklist

  • [✅] npm run lint passes
  • [✅ ] npm test passes
  • [✅] Added/updated tests for changed behavior
  • [✅] No new runtime dependencies (or justified in the PR description)

Example Result:

截屏2026-04-23 11 28 40

Copy link
Copy Markdown
Member

@JackChen-me JackChen-me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traced the FORCE_FAIL path, works (beforeRun throw → Agent returns success:false → executeWithRetry retries).

Main thing: the README update from issue #136 AC is missing. Add an entry in examples/README.md matching the style of the other two cookbook entries, mention both run modes.

Two cleanups: setTimeout(resolve, 100) before verifyParallelism is unnecessary since onProgress fires synchronously. The "Read the clause list from shared memory" phrasing in task descriptions is misleading too; default memoryScope is 'dependencies', so dep results are injected into the prompt and the agent isn't reading memory as an action. Reword to "Using the clause list from Task 1 above" or similar.

@fault-segment fault-segment force-pushed the example/contract-review branch from 53e1c4c to 867bfd8 Compare April 24, 2026 01:31
@fault-segment
Copy link
Copy Markdown
Contributor Author

thx for detailed review.I've fix them,add the example in the README.md,remove the setTimeout and fix the task desc.

@JackChen-me
Copy link
Copy Markdown
Member

LGTM, hits #136.

One ask: the parallelism check logs YES/NO but doesn't fail. Issue asked for an assertion, so it should exit nonzero when the diff is >= 500ms (see meeting-summarizer.ts:213-220 for the pattern). Otherwise a scheduler regression passes silently. Also missing trailing newlines on both new files.

@fault-segment
Copy link
Copy Markdown
Contributor Author

Fixed that.Now it's anassertion and newlines added.

Copy link
Copy Markdown
Member

@JackChen-me JackChen-me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All feedback addressed — README entry, setTimeout removed, task descriptions reworded, parallelism assertion added, trailing newlines. Thanks!

@JackChen-me JackChen-me merged commit 6081703 into open-multi-agent:main Apr 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants