8000 feat: Enforce mandatory 4-skill initialization protocol by wxy · Pull Request #3 · wxy/evoskills · GitHub
[go: up one dir, main page]

Skip to content

feat: Enforce mandatory 4-skill initialization protocol - #3

Merged
wxy merged 1 commit into
mainfrom
feat/enforce-mandatory-initialization
Mar 5, 2026
Merged

wxy merged 1 commit into
mainfrom
feat/enforce-mandatory-initialization

Conversation

@wxy
@wxy wxy commented Mar 5, 2026
Copy link
Copy Markdown
Owner

feat: Enforce mandatory 4-skill initialization protocol

Summary

This PR introduces a fail-closed initialization protocol that enforces 4 system skills on every AI response, eliminating the gap between skill documentation and actual execution.

Problem

The previous system had well-defined Tier 2 skills (_instruction-guard, _execution-precheck, _context-ack, _file-output-guard) but lacked an enforcement mechanism. Skills were loaded into context and documented, but weren't automatically executed, leading to:

  • Inconsistent response quality
  • Skipped instruction reading
  • Missing output format markers
  • Potential hallucinated skill usage

Solution

Created a new AI_INITIALIZATION.md protocol that defines:

Non-skippable 4-Phase Sequence

  1. Phase 1 (_instruction-guard): Explicit reading of .github/copilot-instructions.md
  2. Phase 2 (_execution-precheck): Complete 6-step self-check including truthfulness test
  3. Phase 3 (_context-ack): Apply standardized output format with required markers
  4. Phase 4 (_file-output-guard): Validate file operation constraints

Verifiable Output Markers

Every response must include:

  • First line: ✨ 已启用上下文校验
  • Standalone salutation: 尊敬的主人:
  • Footer with diff-formatted sections:
    • 已读指令 (only files actually read)
    • 已启用技能 (one per line with evidence)
    • 仓库状态 (branch, uncommitted, untracked)

Pre-Send Gate

Mandatory checklist before every response:

  • .github/copilot-instructions.md explicitly read this turn
  • _execution-precheck 6-step self-check completed
  • _context-ack format fully applied
  • _file-output-guard constraints satisfied

Changes

  • Added: .github/AI_INITIALIZATION.md - Mandatory initialization protocol
  • Updated: .github/AI_CONSTITUTION.md - Bind initialization as layer 2 authority
  • Updated: .github/copilot-instructions.md - Add enforcement rules and verifiable markers
  • Enhanced: .agent/skills/_execution-precheck/SKILL.md - Add 6-step self-check with truthfulness test
  • Enhanced: .agent/skills/_context-ack/SKILL.md - Add diff format, anti-fake-list rules
  • Removed: .github/EXECUTION_RULES.md - Replaced by stronger initialization protocol

Testing

  • ✅ Verified all 4 phases execute in correct order
  • ✅ Confirmed all output markers present in responses
  • ✅ Validated no hallucinated items in footer lists
  • ✅ Tested format compliance in new session
  • ✅ Verified pre-send gate prevents incomplete responses

Impact

Before: Skills existed but weren't enforced → inconsistent quality
After: Skills execute on every response → guaranteed consistency

Checklist

  • Code follows style guidelines
  • Self-review completed
  • Comments added for complex areas
  • Tests completed (manual verification)
  • Documentation updated (protocol docs added)
  • No breaking changes (additive improvement)

🤖 Generated by _pr-creator skill

## Changes
- Added AI_INITIALIZATION.md defining non-skippable 4-phase execution sequence
- Updated AI_CONSTITUTION.md to bind initialization protocol as layer 2 authority
- Updated copilot-instructions.md with verifiable output markers and pre-send gate
- Enhanced _execution-precheck skill with 6-step self-check and truthfulness test
- Enhanced _context-ack skill with diff-formatted footer and anti-fake-list rules
- Removed deprecated EXECUTION_RULES.md (replaced by initialization protocol)

## Technical Details
The initialization protocol enforces:
1. Phase 1 (_instruction-guard): Explicit file reading before every response
2. Phase 2 (_execution-precheck): 6-step pre-flight check including honesty verification
3. Phase 3 (_context-ack): Standardized format with required markers
4. Phase 4 (_file-output-guard): File operation validation

Every response must now include:
- First line: `✨ 已启用上下文校验`
- Standalone salutation: `尊敬的主人:`
- Footer: `已读指令` (only actual reads)
- Footer: `已启用技能` (one per line, with evidence)
- Footer: Repository status in diff format

## Testing
- Verified all 4 phases execute in correct order
- Confirmed all output markers present
- Validated no fake list items in footer
- Tested format compliance in new session

## Rationale
Previous system had skill definitions and documentation but no enforcement mechanism.
This creates a fail-closed protocol that cannot be bypassed, ensuring:
- Consistent quality across all responses
- Traceability of instruction compliance
- Prevention of hallucinated skill usage
- Honest self-assessment before every response

---

🤖 Generated by _git-commit skill
@wxy
wxy merged commit dbc1f99 into main Mar 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0