kairn-cli 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +67 -8
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -716,6 +716,13 @@ At the start of every session, before doing ANY work:
|
|
|
716
716
|
4. Summarize what you see in 2-3 lines, then proceed
|
|
717
717
|
|
|
718
718
|
This saves 2-5 exploratory turns. Never ask "what files are here?" \u2014 look first.
|
|
719
|
+
|
|
720
|
+
## Completion Standards
|
|
721
|
+
|
|
722
|
+
Never mark a task "done" without running the Completion Verification checklist.
|
|
723
|
+
Tests passing is necessary but not sufficient \u2014 also verify requirements coverage,
|
|
724
|
+
state cleanliness, and review changes from the perspective of a test engineer,
|
|
725
|
+
code reviewer, and the requesting user.
|
|
719
726
|
\`\`\`
|
|
720
727
|
|
|
721
728
|
Do not add generic filler. Every line must be specific to the user's workflow.
|
|
@@ -738,6 +745,7 @@ Do not add generic filler. Every line must be specific to the user's workflow.
|
|
|
738
745
|
14. A "Git Workflow" section in CLAUDE.md (3 rules: small commits, conventional format, <200 lines PR)
|
|
739
746
|
15. "Engineering Standards", "Tool Usage Policy", and "Code Philosophy" sections in CLAUDE.md
|
|
740
747
|
16. A "First Turn Protocol" section in CLAUDE.md (orient before working: pwd, ls, git status, check relevant runtimes, read task files)
|
|
748
|
+
17. A "Completion Standards" section in CLAUDE.md (never mark done without verifying: requirements met, tests passing, no debug artifacts, reviewed from 3 perspectives)
|
|
741
749
|
|
|
742
750
|
## Shell-Integrated Commands
|
|
743
751
|
|
|
@@ -855,7 +863,7 @@ Merge this into the settings hooks alongside the PreToolUse and PostToolUse hook
|
|
|
855
863
|
- \`/project:status\` command (live git status, recent commits, SPRINT.md overview using ! prefix)
|
|
856
864
|
- \`/project:fix\` command (takes $ARGUMENTS as issue number, plans fix, implements, tests, commits)
|
|
857
865
|
- \`/project:sprint\` command (define acceptance criteria before coding, writes to docs/SPRINT.md)
|
|
858
|
-
- \`/project:develop\` command (full development pipeline \u2014 orchestrates @architect \u2192 @planner \u2192 @implementer \u2192 @verifier \u2192 @fixer \u2192 @grill \u2192 @doc-updater through spec, plan, TDD implement, review, and doc update phases)
|
|
866
|
+
- \`/project:develop\` command (full development pipeline \u2014 orchestrates @architect \u2192 @planner \u2192 @implementer \u2192 @verifier \u2192 @fixer \u2192 @grill \u2192 @doc-updater through spec, plan, TDD implement, review, and doc update phases). MUST include a Phase 7 "Completion Gate" that runs a Completion Verification checklist before marking the feature done: re-read original requirements, confirm each is met with evidence, run test suite + lint/typecheck, review git diff for unexpected changes or debug artifacts, answer 3 perspective questions (test engineer, code reviewer, requesting user). If ANY check fails, loop back to fix before completing.
|
|
859
867
|
- A TDD skill using the 3-phase isolation pattern (RED \u2192 GREEN \u2192 REFACTOR):
|
|
860
868
|
- RED: Write failing test only. Verify it FAILS.
|
|
861
869
|
- GREEN: Write MINIMUM code to pass. Nothing extra.
|
|
@@ -1023,6 +1031,13 @@ At the start of every session, before doing ANY work:
|
|
|
1023
1031
|
4. Summarize what you see in 2-3 lines, then proceed
|
|
1024
1032
|
|
|
1025
1033
|
This saves 2-5 exploratory turns. Never ask "what files are here?" \u2014 look first.
|
|
1034
|
+
|
|
1035
|
+
## Completion Standards
|
|
1036
|
+
|
|
1037
|
+
Never mark a task "done" without running the Completion Verification checklist.
|
|
1038
|
+
Tests passing is necessary but not sufficient \u2014 also verify requirements coverage,
|
|
1039
|
+
state cleanliness, and review changes from the perspective of a test engineer,
|
|
1040
|
+
code reviewer, and the requesting user.
|
|
1026
1041
|
\`\`\`
|
|
1027
1042
|
|
|
1028
1043
|
Do not add generic filler. Every line must be specific to the user's workflow.
|
|
@@ -1045,6 +1060,7 @@ Do not add generic filler. Every line must be specific to the user's workflow.
|
|
|
1045
1060
|
14. A "Git Workflow" section in CLAUDE.md (3 rules: small commits, conventional format, <200 lines PR)
|
|
1046
1061
|
15. "Engineering Standards", "Tool Usage Policy", and "Code Philosophy" sections in CLAUDE.md
|
|
1047
1062
|
16. A "First Turn Protocol" section in CLAUDE.md (orient before working: pwd, ls, git status, check relevant runtimes, read task files)
|
|
1063
|
+
17. A "Completion Standards" section in CLAUDE.md (never mark done without verifying: requirements met, tests passing, no debug artifacts, reviewed from 3 perspectives)
|
|
1048
1064
|
|
|
1049
1065
|
## Tool Selection Rules
|
|
1050
1066
|
|
|
@@ -1682,7 +1698,29 @@ If confidence is LOW or MEDIUM, fix issues and re-verify.
|
|
|
1682
1698
|
Run /project:grill for adversarial review.
|
|
1683
1699
|
Fix any BLOCKERs.
|
|
1684
1700
|
|
|
1685
|
-
## Phase 6:
|
|
1701
|
+
## Phase 6: COMPLETION GATE
|
|
1702
|
+
|
|
1703
|
+
Before shipping, run the Completion Verification checklist:
|
|
1704
|
+
|
|
1705
|
+
### Requirements Check
|
|
1706
|
+
- [ ] Re-read the ORIGINAL task description (not your interpretation)
|
|
1707
|
+
- [ ] Each explicit requirement is met with evidence (test output, diff)
|
|
1708
|
+
- [ ] Each implicit requirement (error handling, types, tests) is addressed
|
|
1709
|
+
|
|
1710
|
+
### State Check
|
|
1711
|
+
- [ ] Test suite passes
|
|
1712
|
+
- [ ] Lint/typecheck passes
|
|
1713
|
+
- [ ] \`git diff --stat\` \u2014 every changed file is intentional
|
|
1714
|
+
- [ ] No debug artifacts (console.log, TODO, commented-out code, temp files)
|
|
1715
|
+
|
|
1716
|
+
### Perspective Check (1 sentence each)
|
|
1717
|
+
- **Test engineer:** Most likely production failure mode?
|
|
1718
|
+
- **Code reviewer:** What would I flag in review?
|
|
1719
|
+
- **Requesting user:** Does this solve my actual problem?
|
|
1720
|
+
|
|
1721
|
+
ALL pass \u2192 proceed to ship. ANY fail \u2192 fix first, then re-verify.
|
|
1722
|
+
|
|
1723
|
+
## Phase 7: SHIP
|
|
1686
1724
|
Run /project:commit.
|
|
1687
1725
|
Report what was built and what's next from docs/SPRINT.md.
|
|
1688
1726
|
|
|
@@ -1762,11 +1800,26 @@ Run verification:
|
|
|
1762
1800
|
- Run functional tests
|
|
1763
1801
|
- If NEEDS FIXES: fix and re-verify
|
|
1764
1802
|
|
|
1765
|
-
## Phase 5:
|
|
1803
|
+
## Phase 5: COMPLETION GATE
|
|
1804
|
+
|
|
1805
|
+
Before creating a PR, run the Completion Verification checklist:
|
|
1806
|
+
- [ ] Re-read the ORIGINAL spec from docs/SPRINT.md
|
|
1807
|
+
- [ ] Each requirement is met with evidence (test output, diff)
|
|
1808
|
+
- [ ] Test suite + lint/typecheck pass
|
|
1809
|
+
- [ ] \`git diff --stat\` \u2014 every changed file is intentional, no debug artifacts
|
|
1810
|
+
- **Test engineer:** Most likely production failure mode?
|
|
1811
|
+
- **Code reviewer:** What would I flag in review?
|
|
1812
|
+
- **Requesting user:** Does this solve my actual problem?
|
|
1813
|
+
|
|
1814
|
+
ALL pass \u2192 proceed to PR. ANY fail \u2192 fix first, then re-verify.
|
|
1815
|
+
|
|
1816
|
+
Include the checklist results in the PR description.
|
|
1817
|
+
|
|
1818
|
+
## Phase 6: PR
|
|
1766
1819
|
Create a pull request:
|
|
1767
|
-
gh pr create --title "feat: {name}" --body "{spec + QA report}"
|
|
1820
|
+
gh pr create --title "feat: {name}" --body "{spec + QA report + verification checklist}"
|
|
1768
1821
|
|
|
1769
|
-
## Phase
|
|
1822
|
+
## Phase 7: NEXT
|
|
1770
1823
|
Report:
|
|
1771
1824
|
"PR #{N} ready for review: {link}
|
|
1772
1825
|
Next priority from SPRINT.md: {next task}
|
|
@@ -1790,13 +1843,19 @@ Repeat until max features reached or stopped:
|
|
|
1790
1843
|
2. Create worktree + branch
|
|
1791
1844
|
3. Implement the feature
|
|
1792
1845
|
4. Run verification (build, test, lint)
|
|
1793
|
-
5.
|
|
1794
|
-
|
|
1795
|
-
|
|
1846
|
+
5. Run Completion Verification checklist:
|
|
1847
|
+
- Requirements met with evidence
|
|
1848
|
+
- Tests + lint/typecheck pass
|
|
1849
|
+
- No debug artifacts or unexpected file changes
|
|
1850
|
+
- 3-perspective check (test engineer, reviewer, user)
|
|
1851
|
+
6. Open PR via gh (include verification results in PR body)
|
|
1852
|
+
7. Report status
|
|
1853
|
+
8. Move to next feature
|
|
1796
1854
|
|
|
1797
1855
|
## Stop Conditions
|
|
1798
1856
|
- Max 5 features per autopilot session
|
|
1799
1857
|
- Any BLOCKER from verification
|
|
1858
|
+
- Completion Verification checklist fails after 2 fix attempts
|
|
1800
1859
|
- Build failure that can't be resolved in 3 attempts
|
|
1801
1860
|
- User presses Escape`;
|
|
1802
1861
|
var AUTOPILOT_WARNING = `
|