Repository navigation
Use a host-assigned checkout as the task worktree; unpin the validator; tag releases - #6
Conversation
Install the latest Claude Code release in the PR quality job instead of version 2.1.220. The pin was three months old when it was added and had no update routine, so CI validated against rules older than the hosts that install the plugin. The job keeps printing the validator version. Verification: 7 validator tests passed; repository validation passed against origin/main; git diff --check passed; claude plugin validate passed with Claude Code 2.1.323 (the current release) in a Claude Code cloud session, with directory notices for a missing license and icon. The GitHub workflow has not run on this revision. No shipped skill behavior changes, so no behavioral eval and no version bump. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmnQVszt5GLFBUCSZMR6kv
The self-hosting guide tells a task to fall back to the last known-good release, but the repository had no tags and the marketplace catalog follows the default branch, so no earlier release could be named or installed. Record that a person tags each version-changing merge and that the tag is the way back. Verification: repository validation passed against origin/main; git diff --check passed. Documentation only: no shipped skill behavior changes, so no behavioral eval and no version bump. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmnQVszt5GLFBUCSZMR6kv
Add a Release tag workflow that runs on pushes to main and creates v<version> from plugin.json when that tag does not exist. The self-hosting guide now names the workflow as the owner of the tag. Verification: workflow YAML parsed; repository validation passed against origin/main. The workflow itself has not run; it first runs after merge. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmnQVszt5GLFBUCSZMR6kv
When the host or consumer policy gives a task a dedicated checkout and an assigned task branch, Factory now uses them as the task worktree and branch after confirming the checkout is clean and holds no commits beyond the fetched target. In every other case it creates the separate factory/<id> worktree as before. A hosted agent session accepts pushes only to its assigned branch, so the fixed branch name could not be published there. Add eval case 08 for the assigned-checkout route and bump the plugin to 0.10.0. Verification: 7 validator tests passed; repository validation passed against origin/main; git diff --check passed; claude plugin validate passed with Claude Code 2.1.323. Limits: no behavioral eval was run. Case 08 was written before any run and has no baseline or candidate result yet; qualification on a trusted machine is still open. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmnQVszt5GLFBUCSZMR6kv
The guard for a host-assigned checkout accepted any clean checkout with no commits beyond the fetched target, so a checkout behind the target also passed. Require HEAD to be the fetched SHA, fast-forward a clean checkout that is only behind, and keep the separate worktree for a dirty checkout or one with commits the target lacks. Case 08 gains a behind-target variant. Verification: 7 validator tests passed; repository validation passed against origin/main; git diff --check passed. Limits: no behavioral eval was run; the new variant was written before any run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmnQVszt5GLFBUCSZMR6kv
|
Reviewed current head The earlier behind-target concern is addressed: start step 4 now requires HEAD to equal the fetched SHA, and case 08 includes the behind-target variant. The existing stale-ref prohibition already mitigated the old wording; the explicit equality check removes the ambiguity. Two remaining suggestions:
These are contract/recovery recommendations from a read-through, not a claim of a reproduced execution failure. |
Two recovery paths for a host-assigned checkout were incomplete. The separate-worktree fallback for a dirty or ahead checkout could start work on a branch the host cannot publish; it now applies only where the host can publish a factory/<id> branch, and otherwise Factory preserves the checkout and stops for a decision. The behind-target update is now fast-forward-only with a recheck, and a failed or disallowed update stops without a reset or rebase. Case 08 covers both. Verification: 7 validator tests passed; repository validation passed against origin/main; git diff --check passed. Limits: no behavioral eval was run; the new variants were written before any run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmnQVszt5GLFBUCSZMR6kv
|
Both suggestions are correct. They are addressed in 1. Separate-worktree fallback depends on host support
2. Fast-forward failure path
Case 08
Still open
Generated by Claude Code |
What changes
Factory skill (0.9.0 → 0.10.0)
factory/<id>branch. Otherwise Factory preserves the checkout and stops with the decision needed.factory/<id>worktree as before.factory/<id>branch cannot be published there, and a sibling worktree is outside the folder the session exposes.08-assigned-checkouthas five variants: clean assigned checkout, ahead and dirty on a restricted host, behind the target, refused fast-forward, and a workstation checkout.CI
PR qualityinstalls the current Claude Code release forclaude plugin validate ., not version 2.1.220. The job still prints the validator version.Release tagworkflow: on each push tomain, it createsv<version>fromplugin.jsonwhen that tag does not exist.Docs
REVIEW.mdanddocs/self-hosting.mddescribe the unpinned validator and the release tag as the rollback point.Verification
PR quality / Validate plugin repositoryonf9f8df6python3 -m unittest discover -s testspython3 scripts/validate_repository.py --base-ref origin/maingit diff --checkclaude plugin validate .(Claude Code 2.1.323)Release tagworkflowLimits
302b257andf9f8df6.v0.10.0. The tagv0.9.0for the earlier release must be created by hand on commit2c561ba.🤖 Generated with Claude Code
https://claude.ai/code/session_01GmnQVszt5GLFBUCSZMR6kv