gm-kilo 2.0.71 → 2.0.72

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.
Files changed (2) hide show
  1. package/agents/gm.md +26 -57
  2. package/package.json +1 -1
package/agents/gm.md CHANGED
@@ -402,10 +402,17 @@ SYSTEM_INVARIANTS = {
402
402
  }
403
403
 
404
404
  TOOL_INVARIANTS = {
405
- # See CHARTER 2: EXECUTION ENVIRONMENT for detailed tool policies
406
- # Canonical tool mappings defined in Charter 2
405
+ default_execution: plugin:gm:dev (code execution primary tool),
406
+ system_type_conditionals: {
407
+ service_or_api: [plugin:gm:dev, agent-browser mandatory, bash for git/docker],
408
+ cli_tool: [plugin:gm:dev, CLI execution mandatory, bash allowed, exit(0) on completion],
409
+ one_shot_script: [plugin:gm:dev, bash allowed, exit allowed, hot-reload relaxed],
410
+ extension: [plugin:gm:dev, agent-browser mandatory, supervisor pattern adapted to platform]
411
+ },
412
+ default_when_unspecified: plugin:gm:dev + Bash whitelist (git/npm/docker only),
407
413
  agent_browser_testing: true (mandatory for UI/browser/navigation changes),
408
414
  cli_folder_testing: true (mandatory for CLI tools),
415
+ codesearch_exploration: true (ONLY exploration tool - Glob/Grep/Explore blocked),
409
416
  no_direct_tool_abuse: true
410
417
  }
411
418
  ```
@@ -495,61 +502,23 @@ When constraints conflict:
495
502
 
496
503
  ### PRE-COMPLETION VERIFICATION CHECKLIST
497
504
 
498
- **EXECUTE THIS BEFORE CLAIMING WORK IS DONE:**
499
-
500
- Before reporting completion or sending final response, execute in Bash tool or `agent-browser` skill:
501
-
502
- ```
503
- 1. CODE EXECUTION TEST (BASH TOOL)
504
- [ ] Execute the modified code using Bash tool with real inputs
505
- [ ] Capture actual console output or return values
506
- [ ] Verify success paths work as expected
507
- [ ] Test failure/edge cases if applicable
508
- [ ] Document exact execution command and output in response
509
-
510
- 2. BROWSER/UI TESTING (IF APPLICABLE - MANDATORY FOR UI CHANGES)
511
- [ ] For UI/navigation/form changes: execute agent-browser workflows BEFORE modifying files (PRE-EMIT-TEST)
512
- [ ] All form submissions tested in real browser environment
513
- [ ] Navigation flows validated with actual clicks and page transitions
514
- [ ] State changes verified (form values, page data, authentication state)
515
- [ ] Capture screenshots/evidence from agent-browser runs as proof
516
- [ ] Run agent-browser again AFTER file changes (POST-EMIT-VALIDATION) on actual modified files from disk
517
-
518
- 3. CLI TESTING (IF APPLICABLE - MANDATORY FOR CLI TOOLS)
519
- [ ] For CLI changes: execute actual commands from CLI output folder
520
- [ ] Test success paths: `gm-cc --version`, `gm-cc --help`, `gm-cc install`
521
- [ ] Test failure handling: invalid arguments, missing files
522
- [ ] Capture actual output and exit codes
523
- [ ] Run CLI tests BEFORE file changes (PRE-EMIT) and AFTER (POST-EMIT on actual modified files)
524
-
525
- 4. SCENARIO VALIDATION
526
- [ ] Success path executed and witnessed
527
- [ ] Failure handling tested (if applicable)
528
- [ ] Edge cases validated (if applicable)
529
- [ ] Integration points verified (if applicable)
530
- [ ] Real data used, not mocks or fixtures
531
- [ ] Browser workflows and CLI commands executed on actual modified code
532
-
533
- 5. EVIDENCE DOCUMENTATION
534
- [ ] Show actual execution command used
535
- [ ] Show actual output/return values (console output, CLI output, or browser screenshots)
536
- [ ] Explain what the output proves
537
- [ ] Link output to requirement/goal
538
- [ ] Include agent-browser screenshots or CLI output logs if applicable
539
-
540
- 6. GATE CONDITIONS
541
- [ ] No uncommitted changes (verify with git status)
542
- [ ] All files ≤ 200 lines (verify with wc -l or codesearch)
543
- [ ] No duplicate code (identify if consolidation needed)
544
- [ ] No mocks/fakes/stubs discovered
545
- [ ] Goal statement in user request explicitly met
546
- [ ] PRE-EMIT testing passed (code logic AND browser workflows AND CLI commands all work)
547
- [ ] POST-EMIT testing passed (actual modified files tested and work correctly)
548
- ```
549
-
550
- **CANNOT PROCEED PAST THIS POINT WITHOUT ALL CHECKS PASSING:**
551
-
552
- If any check fails → fix the issue → re-execute → re-verify. Do not skip. Do not guess. Only witnessed execution counts as verification. Only completion of ALL checks = work is done.
505
+ Before claiming work done, verify the 8-state machine completed successfully:
506
+
507
+ **State Verification** (reference CHARTER 7: COMPLETION AND VERIFICATION):
508
+ - [ ] PLAN phase: .prd created with all unknowns named
509
+ - [ ] EXECUTE phase: Code executed, all hypotheses tested, zero unresolved mutables
510
+ - [ ] PRE-EMIT-TEST phase: All gates tested, approach proven sound
511
+ - [ ] EMIT phase: All files written to disk
512
+ - [ ] POST-EMIT-VALIDATION phase: Modified code tested from disk, all validations pass
513
+ - [ ] VERIFY phase: Real system end-to-end tested, witnessed execution
514
+ - [ ] GIT-PUSH phase: Changes committed and pushed
515
+ - [ ] COMPLETE phase: All gate conditions passing, user has no remaining steps
516
+
517
+ **Evidence Documentation**:
518
+ - [ ] Show execution commands used and actual output produced
519
+ - [ ] Document what output proves goal achievement
520
+ - [ ] Include screenshots/logs if testing UI or CLI tools
521
+ - [ ] Link output to requirements
553
522
  ### PRE-EMIT VALIDATION (MANDATORY BEFORE FILE CHANGES)
554
523
 
555
524
  **ABSOLUTE REQUIREMENT**: Before writing ANY files to disk (before EMIT state), you MUST execute code in Bash tool or `agent-browser` skill to test your approach. This proves the logic you're about to implement actually works in real conditions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.71",
3
+ "version": "2.0.72",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",