Skip to content

refactor(plugin): slim prompt surface -1.7k + hard-gate commit hook (v0.1.11) - #29

Merged
HyeonsangKim merged 1 commit into
mainfrom
refactor/prompt-slim-hardgate
Jul 10, 2026
Merged

refactor(plugin): slim prompt surface -1.7k + hard-gate commit hook (v0.1.11)#29
HyeonsangKim merged 1 commit into
mainfrom
refactor/prompt-slim-hardgate

Conversation

@HyeonsangKim

Copy link
Copy Markdown
Contributor

Summary

Opus 4.8(1M 컨텍스트)에 맞춰 플러그인을 더하기 아닌 덜기로 정렬. 소프트 게이트를 하네스로 하드화하고, base 모델이 이미 하는 재교육 산문을 걷어 주의 표면을 줄였다. 새 에이전트/커맨드/스킬 0개.

Changes

1. 하드 게이트 hook (hooks/hooks.json, commands/auto-commit.md)

  • PreToolUse가 파이프라인 git commit을 가로채: 메시지에 점수 신호가 있는데 30분 내 .wigtn/gate-pass PASS 아티팩트가 없으면 exit 2 차단
  • PASS 시에만 auto-commit Step 3.5가 아티팩트 기록 (mtime=PASS 시각)
  • 수동 커밋(신호 없음)·--no-review(신호 제거)는 무마찰. safe-fail(닫힘)
  • 한계: 리뷰를 수행하진 않고 "일어났고 PASS했음"만 강제 — PASS 날조는 못 막음

2. 프롬프트 프루닝 (13 agents + 4 commands, net −1,763줄)

  • Auto-Discovery 보일러플레이트 ×4(근사 중복), UX 목업, generic 스택 열거, 파일 내 Flow↔Steps 중복 제거
  • 로직·게이트·임계값·adversarial 메커니즘 변경 0

3. 버전 0.1.10 → 0.1.11

Verification

  • 검증: 편집자와 독립된 fresh-context 적대적 검증자 4인이 18개 diff 전량 감사 → 18/18 SAFE (변수 defined-AND-referenced, 임계값·복구 브랜치·cross-note 실재). 발견 흠 1건(design-discovery 옵션 서브타이틀) 보정.
  • hook: 임시 repo 6/6 시나리오 + 편집 후 회귀 3/3 통과. 이 PR의 수동 커밋이 차단 안 된 것 자체가 무마찰 증명.
  • 성능(정직): bytes/words −19% 프록시(실토큰 아님). 행동 레벨 측정은 미실시 — 방향 유리·과압축 부작용 실측상 없음까지. "측정된 성능 향상" 주장 안 함.

Linear

PROD-454 (Epic) / PROD-455·456·457

Test Plan

  • 플러그인 로드 후 /auto-commit 파이프라인에서 게이트 PASS→커밋, 게이트 스킵→차단 확인
  • --no-review 긴급 경로가 hook 우회하는지 확인
  • 수동 git commit이 영향 없는지 확인

🤖 Generated with Claude Code

…hook (v0.1.11)

Prune (net -1763 lines, ~-19% attention surface across agents + command bodies):
- remove base-competence re-teaching, Auto-Discovery boilerplate (x4 near-dup),
  UX mockups, generic tech-stack enumerations across 13 agents + 4 commands
- logic, gates, thresholds, and the adversarial-verify mechanism unchanged
- verified by 4 fresh-context adversarial verifiers: 18/18 SAFE

Hard-gate hook (harness-enforced quality gate):
- hooks.json PreToolUse blocks a pipeline `git commit` when the message carries the
  score signal but no fresh .wigtn/gate-pass PASS artifact (30-min freshness)
- auto-commit Step 3.5 writes the artifact on rollup PASS; Rule 13; --no-review
  omits the signal to preserve the emergency hotfix path
- manual commits are unaffected (no signal); safe-fail (closed, not open)

Version 0.1.10 -> 0.1.11 (plugin.json x2, marketplace.json, READMEs, CLAUDE.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@HyeonsangKim
HyeonsangKim merged commit 8369dd9 into main Jul 10, 2026
1 check passed
@linear-code

linear-code Bot commented Jul 10, 2026

Copy link
Copy Markdown

PROD-457

PROD-456

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