Skip to content

[Bug]:implemented gate commit-reachability rejects development-merged work (only checks task/<id> or main) #1116

Description

@kryptobaseddev

Bug Report

Summary

The implemented gate's commit atom only accepts commits reachable from task/<taskId> or main. Work merged to an integration branch (development) via a SHARED task branch (one PR covering multiple task IDs) cannot be reconciled — only the lead task's branch exists.

Repro

PR #6 (task/T028) covered T028–T031. After merge to development:

$ git log --all --grep T030   # 763e161 refactor(T030)... exists on development
$ cleo verify T030 --gate implemented --evidence "commit:763e161;note:shipped"
=> E_EVIDENCE_INVALID: Commit 763e161 exists but is not reachable from task/T030 or main
# Workaround that unblocks it:
$ git branch task/T030 763e161   # synthetic per-task branch
$ cleo verify T030 --gate implemented --evidence "commit:763e161;note:shipped"
=> implemented: true

Impact (Major)

Reconciling a backlog of shipped-but-pending tasks (the common case after a multi-PR migration where branches are deleted post-merge and multiple tasks share a PR) requires creating synthetic task/<id> branches at each commit. Tedious and hacky.

Expected

Make the reachability set include the project's integration branch(es) — e.g. add release.integrationBranches (default ["main","develop","development"]) to .cleo/project-context.json, mirroring the #1104 prRequiredWorkflows fix. A commit reachable from a configured integration branch should satisfy the gate.

Environment

cleo v2026.6.19; repo kryptobaseddev/kodomeet (development-flow, branches deleted post-merge).

Severity: Major
Area: cli

Are you using an AI agent?

Yes - AI agent filed this issue


Environment

Component Version
CLEO 2026.6.19
Node.js v24.16.0
OS linux 7.0.12-201.fc44.x86_64 x64 (x64)
Shell /bin/bash
gh CLI gh version 2.94.0 (2026-06-11)
Install /home/keatonhoskins/.npm-global/bin/cleo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds triage and prioritization

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions