Repository navigation
Deliver implementation through draft PRs and external review handoffs - #54
Conversation
lightforgelabsdev-review
left a comment
There was a problem hiding this comment.
Review of e9d78302a1b606f195baf14f6f21138843e295d1: request changes
I read the complete diff against master (a50f7fc) and judged it against AIDE's own constraints: the 2026-02-27 core-reduction decision, skill-author, and the install/package scripts. The direction is right. The feature-branch delivery, head pinning, acceptance accounting, process-scoped reviewer identity and run-once validation rule all fit what the PR sets out to do. One defect blocks merging: installed skills can't reach the new contract document.
CI
Workflow manifest check fails before it evaluates this change, so the failure is baseline. generate.py --check raises FileNotFoundError on manifests/implementation.json. 8911680 removed that file, it is absent at base a50f7fc, and the last six PR runs back to June fail identically. This PR touches no manifest, generator or AIDE-GEN marker. PR body formatting check passes.
Major
1. PROJECT_WORKFLOW.md is unreachable from installed skills. Affected: skills/implement/SKILL.md:8, skills/pr-review/SKILL.md:8, skills/pr-ready/SKILL.md:16, skills/quality/SKILL.md:21.
Each of these skills now sends the reader to ../../docs/agents/PROJECT_WORKFLOW.md. That path resolves only inside an AIDE checkout. AIDE installs skills in three ways, and none of them reaches the file:
install-claude/install-codexlink each skill as.claude/skills/<name>or.agents/skills/<name>(a junction on Windows, a symlink elsewhere). The loader reports that link path as the skill's base directory. The link therefore resolves lexically to.claude/docs/agents/PROJECT_WORKFLOW.md, which doesn't exist.- Copy-mode installs have the same problem.
package-codex.ps1zips each skill folder alone, so the packaged skill doesn't contain the document either.
This happened in this review. The game repo's installed pr-review pointed to a file that wasn't there. I found the contract only by knowing it was in .aide/.
The core-reduction decision says skills are "self-contained except for pointing at AGENTS.md". This PR makes four skills depend on a second document, and the dependency breaks when installed. The PR's "relative documentation links verified" claim holds only in the source tree. It's the same class of bug as the ../../AGENTS.md link this PR rightly removed from check-pr. sanity-check still carries two of those.
A fix only has to make the contract reachable where skills run. Either option works:
- Inline the few rules each skill actually needs: resolve before acting, an unresolved command is missing configuration, run identical commands once, external vs independent-agent review, and scoped path exceptions.
- Point at a consumer-root path that exists in installs, as
pr-draftalready does with.aide/tools/, i.e..aide/docs/agents/PROJECT_WORKFLOW.md, while keeping the consuming project'sAGENTS.mdas the primary pointer.
Minor
2. Skill catalogs still describe the old workflow.
skills/README.md:188anddocs/agents/COMMAND_CATALOG.md:16keep the oldimplementdescription.skills/README.md:192andCOMMAND_CATALOG.md:20keep the oldpr-reviewdescription.- The chaining flow at
COMMAND_CATALOG.md:35still shows/pr-draftas a separate step after/implement, butimplementnow callspr-draftitself. - The
README.md:161/:177descriptions say the same.
3. implement hands delivery to pr-draft, which doesn't fit. See skills/implement/SKILL.md:30. That step says to follow pr-draft "to create or update" a draft PR. pr-draft has no update path: it runs gh pr create only. Its template also needs an issue number for Fixes #<number>, but implement now accepts pasted requirements with no ticket. And it checks "not on main" instead of MAIN_BRANCH; AIDE's own base is master. Either widen pr-draft or state these cases in implement.
4. quality contradicts itself on the default scope. See skills/quality/SKILL.md:12-17. "Default to full when none is supplied" sits next to a scope literally named default (lint + unit tests). The invalid-scope message still lists default as an option. Rename that scope (e.g. fast) or reword.
5. implement dropped its default protection for existing tests. See skills/implement/SKILL.md:22. "Do not modify existing tests without explicit approval" became "Follow the project's test policy, including any approval requirement". A project with no stated test policy now has no protection. Suggestion: "…; without one, do not modify existing tests without explicit approval."
Accounted for (no finding)
- Feature branches: created from the base unless explicitly authorized. The notes-only exception is scoped and never covers code (
implementstep 3,PROJECT_WORKFLOW.md). - Draft PR delivery: commit, push and PR. The handoff names the PR URL, full head SHA and ticket. Delivery doesn't merge or close tickets.
- Acceptance accounting: each criterion is re-read and accounted for, or marked unresolved. Automated checks, visual evidence and human play acceptance stay distinct.
- External review handoff:
- The implementer doesn't substitute its own review and doesn't wait in an indefinite loop.
- Findings return to the same branch, and earlier approval doesn't cover new commits.
check-prdistinguishes the reviewed commit.
- Project command configuration: an unresolved command is missing configuration, not a guess.
RUN_ALL_TESTS_COMMANDaliases the full validation command, and full validation runs once.pr-ready -Fastcan't mark a PR ready. - Process-scoped reviewer identity: the
gh auth switchrecipes are gone. Onlydocs/decisions/still mentionsGH_CONFIG_DIR, as history. Review submission verifies author, commit and decision, and it refuses a changed head.
Automated: CI as above. I didn't run the install scripts. Finding 1 comes from tracing the installed junctions in a consuming repo and from the loader's reported base path.
lightforgelabsdev-review
left a comment
There was a problem hiding this comment.
Re-review of e917c2f18f9a913de40a398da6e7edebafab295f: approve
I reviewed the complete head against master (a50f7fc), including the new commit e917c2f since my review of e9d7830. I judged it against the 2026-02-27 core-reduction decision and the skill install and package contracts.
Original findings
- Major:
PROJECT_WORKFLOW.mdunreachable from installed skills. Resolved.implement,pr-review,pr-readyandqualityno longer link../../docs/…. Each now tells the reader to open the consuming project's rootAGENTS.mdand its linked workflow document, both relative to the project root, which resolves in linked, copied and packaged installs.- Each skill inlines the rules it needs: missing configuration is reported, the full gate runs once,
MAIN_BRANCHandREVIEW_MODEhave stated defaults, andREVIEW_COMMANDand the reviewer identity are named. - The only new cross-skill link is
implement→../pr-draft/SKILL.md, a sibling link that resolves wherever the skill set is installed together. - I confirmed this from the consuming side: the installed
.claude/skills/pr-reviewin the game repo loaded this text, and I followed it unaided for this review. PROJECT_WORKFLOW.mdremains a reference doc linked only fromPLACEHOLDER_CONTRACTS.md, which is fine.
- Minor: catalog drift. Resolved. The
README.md,skills/README.mdandCOMMAND_CATALOG.mdrows and the chaining flow now match the skills. The flow shows/implementincluding the draft PR, review findings returning to/implement, and/pr-readyand merging as separate actions. - Minor:
pr-draftmismatch. Resolved.pr-draftnow covers updates. It finds an existing PR withgh pr list --head --baseand publishes changes withgh pr edit.- It won't silently convert a ready PR back to draft.
Fixes #is conditional, with an explicit no-ticket path, and the base comes fromMAIN_BRANCH.
- Minor:
qualitydefault scope. Resolved. The scope is renamedfastand marked as not a delivery gate. The error message and report template match. - Minor: test protection. Resolved.
skills/implement/SKILL.md:22adds "Without a project test policy, do not modify existing tests without explicit user approval."
New changes
No new findings. One observation: pr-draft is now 62 lines, above the core-reduction decision's 30–50 guideline. It was already 56 at base, and the added update path earns its lines.
CI
Workflow manifest check still fails with the baseline FileNotFoundError: manifests/implementation.json (runs 37328626310 and 37328861914). Nothing in this range touches the manifest, the generator or the markers. PR body formatting check passes.
Merge note
The consuming PR (the-seeds-we-sow#175) pins e917c2f. AIDE allows squash merges, and a squash would leave that commit off master. A merge commit keeps the pin valid as it is; a squash means the game PR must re-pin to the squashed commit.
Summary
Implementation previously stopped before PR delivery and could stay on the base branch. Review instructions also switched the shared GitHub account. The workflow now delivers a feature-branch draft PR and a commit-specific handoff to an external reviewer, with accepted findings returning to the same branch.
Projects configure validation and review commands in their root agent instructions or a linked workflow document. Ticket-only decisions and project label conventions override generic templates. Full validation runs once even when command mappings overlap.
Implementation Plan
Validation
manifests/implementation.json; the same check fails before evaluating this change.Implementation hands off review; it does not launch another tool, merge the PR, or close its ticket.