Repository navigation
feat(factory): add Factory Pi workflow skill - #7
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Deliver a corrected replacement for Factory CP-04 PR #6 on a new branch at exact PR6 head, preserving CP-04 skill/probe/F-09 proofs and real CP-05 dogfood. Correct the false skill command boundary to accurately list landed evidence TASK-ID and status --json, while continuing to forbid absent /factory, factory run, and factory inspect. Correct now-false final-command claims in docs/probes/CP-04.md so the proof reflects the final tree. Keep the final diff from current landed main CP-04-only: BUILD_PLAN.md, docs/probes/CP-04.md, skills/factory/SKILL.md; do not change CP-05 code, Firstmate state, other projects, credentials, deployment, new features, Herdr lifecycle, or merge. Preserve CP-05 contract SHA-256 34864d74fd6a831ef57b9e85fea124bd93598a674201c680bab018ce5e6c7646. Independently validate npm ci, format, lint, typecheck, full tests, Pi 0.85.1 discovery and explicit/automatic skill invocation, installed CLI syntax, and read-only real task closure cross-check. Target current landed main. Run full no-mistakes review, test, document, lint, push, PR, and CI pipeline without skips, --yes, force-push, merge, or deployment; use agent:pi in this isolated NM_HOME.
What Changed
skills/factoryPi skill that documents the Factory workflow, safe preview/apply process, and current CLI command boundary.Risk Assessment
✅ Low: The change is tightly scoped to CP-04 documentation and skill instructions, preserves the required three-file diff and CP-05 digest, and the corrected provenance now separates historical 57785cf validation from later command-boundary probes.
Testing
I installed dependencies, built the CLI, verified the final diff is CP-04-only, exercised the end-user CLI surfaces for evidence/status plus absent run/inspect commands, confirmed the CP-05 contract digest, ran focused evidence/status tests, and validated Pi 0.85.1 skill discovery plus explicit and automatic Factory skill invocation; all targeted checks passed and transient dist/node_modules outputs were removed.
Evidence: Factory CLI and targeted test transcript
Evidence: Pi RPC skill discovery output
Evidence: Explicit /skill:factory invocation output
Evidence: Automatic Factory skill invocation summary
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
docs/probes/CP-04.md:477- The final validation section is still anchored to dogfood candidate 57785cf, but it now claims Pi invocations at that SHA returnedevidence TASK-IDandstatus --json; at 57785cf the skill still listed only doctor/init/validate/context/sync and explicitly forbade evidence/status, so this proof record does not reflect an actually validated tree. Update the proof to either cite a validation run against the corrected target commit or separate the historical 57785cf result from the later source correction.🔧 Fix: Correct CP-04 validation provenance
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
git diff --name-only 3bc6e46c6cfb0f78b33103eacb86d9ea0006c15f..HEADnpm cinpm run buildnode dist/src/cli.js --helpnode dist/src/cli.js evidence CP-05 --root . --jsonnode dist/src/cli.js status --root . --jsonnode dist/src/cli.js run --root . --jsonandnode dist/src/cli.js inspect --root . --jsonexpecting unsupported commandssha256sum .factory/tasks/CP-05.yamlnode --test dist/test/evidence.test.js dist/test/status.test.jsprintf ... | PI_OFFLINE=1 pi --offline --approve --no-session --no-context-files --no-extensions --no-prompt-templates --no-themes --no-skills --skill skills/factory --mode rpcPI_OFFLINE=1 pi --offline --approve --no-context-files --no-session --no-tools --no-skills --skill skills/factory/SKILL.md --provider openai-codex --model gpt-5 -p '/skill:factory ...'PI_OFFLINE=1 pi --offline --approve --no-context-files --no-session --tools read --no-skills --skill skills/factory/SKILL.md --provider openai-codex --model gpt-5 --mode json -p <automatic Factory prompt>✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.