Skip to content

Commit 59a2fa8

Browse files
devantlerclaude
andauthored
fix(agentic-engineering): register a PR's working copy as a session folder (#732)
* fix(agentic-engineering): register a PR's working copy as a session folder Claude desktop ties a PR to a session by matching the PR's repository against each session folder's origin. A product checkout made as a submodule inside the session worktree, or as a clone in the scratch directory, matched no folder, so Auto-fix was refused and the merged PR never counted towards the session's auto-archive. The delivery procedure and the isolation rule now register the checkout first (request_directory on its absolute path in Claude desktop). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(agentic-engineering): keep the registered checkout inside the session worktree Measured on this PR: a scratch-directory clone added with request_directory was still refused by the Auto-fix hook, while the repository's submodule checkout inside the session worktree, added the same way, matched at once (detached at its pin). Say so instead of offering the scratch clone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c07521b commit 59a2fa8

8 files changed

Lines changed: 35 additions & 7 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
"name": "agentic-engineering",
2222
"description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md",
23-
"version": "7.8.11",
23+
"version": "7.9.0",
2424
"source": "./plugins/agentic-engineering"
2525
},
2626
{

‎plugins/agentic-engineering/.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "agentic-engineering",
33
"description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md",
4-
"version": "7.8.11",
4+
"version": "7.9.0",
55
"author": {
66
"name": "devantler-tech",
77
"url": "https://github.com/devantler-tech"

‎plugins/agentic-engineering/.codex-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "agentic-engineering",
33
"description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md",
4-
"version": "7.8.11",
4+
"version": "7.9.0",
55
"author": {
66
"name": "devantler-tech",
77
"url": "https://github.com/devantler-tech"

‎plugins/agentic-engineering/CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog — `agentic-engineering`
22

3+
## 7.9.0 — 2026-11-22
4+
5+
**Added** — a checkout of a PR's repository becomes one of the session's folders before the PR is
6+
opened or adopted. Claude desktop ties a PR to a session by matching the PR's repository against the
7+
origin of each session folder, not by where the checkout sits on disk. A product checkout made as a
8+
superproject's submodule inside the session worktree, or as a clone in the scratch directory,
9+
matched no folder. The app then refused Auto-fix for its PR and never counted the PR as the
10+
session's work, so the session was not archived when the PR merged. A submodule checkout inside the
11+
worktree, added with `request_directory`, is matched at once. A scratch-directory clone stays
12+
unmatched even after `request_directory`. The `portfolio-maintenance` PR-driving procedure, its
13+
delivery step 1 and the `agentic-engineer` isolation rule now say so.
14+
315
## 7.8.11 — 2026-11-21
416

517
**Changed** — sync `context7-mcp` from `https://github.com/upstash/context7` at `refs/tags/@upstash/context7-opencode@0.2.2`.

‎plugins/agentic-engineering/agents/agentic-engineer.agent.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ merge path; a shared definition's portfolio-owned upstream remains on that portf
180180
git worktree on a fresh conventionally-named branch); verify the isolation actually holds before
181181
editing. Stage only files you edited; never discard changes you did not author; never push to
182182
protected branches; leave every tree clean. If a tree cannot be isolated, do API-only work there.
183+
Make a checkout of the PR's repository a session folder before you open or adopt the PR, or the
184+
PR is never matched to the session (in Claude desktop, a checkout inside the session worktree,
185+
added with `request_directory`; a scratch-directory clone stays unmatched; see
186+
`portfolio-maintenance`, PR-driving procedure).
183187
**Scratch files need the same isolation.** Every worker one session dispatches shares that
184188
session's scratch directory, so a generic name (`ci.yaml`, `pr-body.md`) written by one worker
185189
is overwritten by a sibling. Start each scratch file's name with a token unique to your worker —

‎plugins/agentic-engineering/resources/provider-neutral.desired-state.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"executable": true
4343
}
4444
],
45-
"entrypointSha256": "fb1fb5ee883e0cabae88d3d4d2051265b76c587505bd363220170dd05b9609b1",
45+
"entrypointSha256": "59b5f773977b90396d78a1269b424a73ba18d693fe882540cd40161bb822f5dd",
4646
"updatePolicy": "latest-reviewed-default-branch",
4747
"providerPolicy": "neutral",
4848
"refreshTiming": "before-starting-each-run",

‎plugins/agentic-engineering/skills/portfolio-maintenance/SKILL.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ If that reference is unavailable, resolve the consumer's maintained equivalent b
211211
do not infer permission to post an internal review or merge an upstream contribution.
212212

213213
1. **Isolate:** create a throwaway per-run working copy (e.g. a git worktree on a fresh
214-
conventionally-named branch) so you never collide with parallel sessions; verify the isolation
215-
actually holds before editing. If a tree is unexpectedly dirty or cannot be isolated, restrict
216-
yourself to API-only work (triage, comments, issues) there.
214+
conventionally-named branch) so parallel sessions never collide; verify it is isolated
215+
before editing, then make it a session folder (PR-driving procedure). If a tree is dirty
216+
or cannot be isolated, do API-only work (triage, comments, issues) there.
217217
2. **Load the product's card** — its `## Maintenance` section per the **Portfolio map** — for
218218
validate commands, protected/generated files, labels, and its roadmap home. For advance work,
219219
load `product-engineering`.

‎plugins/agentic-engineering/skills/portfolio-maintenance/references/driving-prs.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ Read this at operate rung 2 of the portfolio-maintenance run loop, on every run
44
promotes or merges a pull request, including a dependency update. It is the complete rung; the skill
55
keeps only its summary.
66

7+
**Before you open or adopt a PR, make a checkout of its repository one of the session's folders.**
8+
A runtime that ties a PR to a session does so by the session's folders, not by where a checkout sits
9+
on disk. Claude desktop, for example, matches the PR's repository against the origin of each session
10+
folder. Unmatched, the app refuses CI monitoring (Auto-fix) for the PR, and the PR never counts as the
11+
session's work, so the session is not archived when it merges. In Claude desktop:
12+
13+
- Keep the product checkout inside the session worktree (for a superproject, its submodule there)
14+
and call `request_directory` with its absolute path. It is matched at once, even at a commit other
15+
than the PR's head.
16+
- Never rely on a clone in the session's scratch directory: it stays unmatched even after
17+
`request_directory`.
18+
719
2. **Drive trusted-author PRs to merge — first priority, ahead of issues, every run.** For every
820
trusted-author, non-draft PR whose current-head pentad is clear, merge it with the mechanics the
921
**Trust gate** names for that author and repo (e.g. auto-merge arming for single-author bots,

0 commit comments

Comments
 (0)