Skip to content

feat: implement single review round workflow with bounded author revisions and update tests - #115

Merged
JesseLiberty merged 1 commit into
mainfrom
OneRevision
Sep 27, 2026
Merged

JesseLiberty merged 1 commit into
mainfrom
OneRevision

Conversation

@JesseLiberty

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings September 27, 2026 19:33
@JesseLiberty JesseLiberty self-assigned this Sep 27, 2026
@JesseLiberty
JesseLiberty merged commit e4df8e5 into main Sep 27, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

A critical compile-blocking issue and three unresolved moderate test gaps remain.

Review effort: Lite
Findings: 1 High severity · 2 Medium severity

Open (3)
What changed in this PR

Implements a bounded single-review workflow with at most one author revision before final output.

Changes:

  • Adds conditional routing and terminal draft outputs.
  • Updates workflow executors, state semantics, and feature documentation.
  • Adds approval, rejection, and fallback regression tests.

The review identified one critical compile issue and three moderate test-coverage gaps that remain unresolved.

File Summary
Workflows/​BlogExecutors.cs Emits capped revised drafts.
specs/​013-single-review-round/​tasks.md Tracks implementation tasks.
specs/​013-single-review-round/​spec.md Defines feature requirements.
specs/​013-single-review-round/​research.md Records design decisions.
specs/​013-single-review-round/​quickstart.md Defines validation scenarios.
specs/​013-single-review-round/​plan.md Documents the implementation plan.
specs/​013-single-review-round/​data-model.md Documents state transitions.
specs/​013-single-review-round/​checklists/​requirements.md Records specification checks.
ResearchState.cs Clarifies revision-cap semantics.
BlogWriter.Tests/​BlogWorkflowTests.cs Adds workflow regression scenarios.
BlogWorkflow.cs Adds bounded routing and terminal output sources.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread BlogWorkflow.cs
// Review only the initial author pass. A rejected review can route back
// to the author once, but the capped revision is terminal output.
.AddEdge<ResearchState>(authorExecutor, reviewerExecutor,
condition: s => s?.RevisionNumber < ResearchState.MaxRevisions)
Comment on lines +44 to +45
var author = new TestAuthor("draft-1", "draft-2");
var reviewer = new TestReviewer("Please revise the introduction.");
Comment on lines +78 to +83
var service = new BlogWriterSessionService(workflow, new RecordingStore());
BlogSession session = await service.StartAsync("topic");

Assert.Equal("draft-1", session.State.Draft);
Assert.Equal(2, author.Calls);
Assert.Equal(1, reviewer.Calls);
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