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