Skip to content

/unleash skips code review when all implementation tasks are complete on first run #94

Closed

Description

@jflowers

Bug

/unleash skips the code review step (Step 6) on the first run when all
implementation tasks are already marked [x] in tasks.md. The resumability
detection logic at Step 2 treats "all tasks complete" as "all steps complete"
and jumps directly to retrospective (Step 7).

Root Cause

The resumability detection checks for implementation completion by looking
for unchecked tasks (- [ ]), but has no way to detect whether code review
has ever run. Unlike spec review (which writes <!-- spec-review: passed -->
to tasks.md), code review has no persistent marker.

The /unleash spec says:

If ALL steps are complete (all tasks done, tests pass): skip directly to
step 7 (retrospective) since it is idempotent.

But "tests pass" is evaluated at detection time by running CI commands — if
this check is skipped or the project has no CI, code review is silently
bypassed.

Impact

Code review findings are missed. In the observed case, the review council
found two real bugs:

  1. Wrong file path in connect.sh (Constitution IV violation)
  2. Missing --hostname 0.0.0.0 in entrypoint server mode (consistency bug)

Proposed Fix

Add a <!-- code-review: passed --> marker to tasks.md (parallel to the
existing <!-- spec-review: passed --> marker). Update the resumability
detection to check for this marker:

6. **Code review done?** Read `tasks.md` and check for
   the `<!-- code-review: passed -->` HTML comment marker.

Write the marker after the review council approves in Step 6:

<!-- code-review: passed -->

This makes code review completion an explicit, persistent state rather than
an implicit inference from CI pass/fail.

Affected Files

  • .opencode/command/unleash.md (the /unleash command definition)

Discovered In

unbound-force/containerfile — first /unleash run on branch
001-initial-containerfile. Code review was skipped, caught by human review.

Activity

  1. jflowers commented on Apr 13, 2026

    @jflowers
    ContributorAuthor

    Closed by PR #96. Added marker to /unleash Step 6 with matching resumability detection in Step 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions