Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ jobs:
run: |
python tools/generate_role_defaults.py
python tools/generate_claude_profiles.py
- name: Check test file length, case limits, and contract coverage
run: python tools/check_test_budget.py
- name: Run full synthetic suite
if: ${{ !cancelled() }}
id: pytest
Expand Down
5 changes: 3 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ POSIX의 개인 캐시 실행기는 원래 인터프리터 경로를 exec하여
6. Windows/macOS/Linux와 Python 3.11·3.13의 CI 결과를 확인한다. 로컬 결과와 미실행 환경을 구분한다.
7. 공개 경계 점검과 저장소 완료 절차에 따라 배포·설치본·실행 중 대시보드를 확인한다.

테스트는 정답이 아닌 현재 구현을 복제하지 않는다. 기존 테스트 삭제로 실패를 숨기지 않고,
위험한 동작인 상태 변경·동시 실행·경로 접근·검증 재사용을 실제 관찰 결과로 확인한다.
테스트는 정답이 아닌 현재 구현을 복제하지 않는다. 실패하는 단언을 지워서 빨간 스위트를
녹색으로 만들지 않는다. 같은 계약을 남은 시나리오나 코퍼스가 여전히 잡으면 그 밖의 테스트는
지울 수 있다. 위험한 동작인 상태 변경·동시 실행·경로 접근·검증 재사용을 실제 관찰 결과로 확인한다.
구조 검사는 테스트 혼입, 구현의 경로 조작과 등록 디렉터리 의존이 다시 생기면 실패해야 한다.

Hermes의 미션 상태 변경은 `chef_mission` 도구 handler가 담당한다. 사전 훅은 검증만 하며 shell marker는 native bridge에서 거부한다. `contracts.py`는 명시된 외부 읽기 파일과 역할 지침·모델 정책의 해시를 확인한다. Claude·Codex·Grok의 기존 echo marker는 아래 실행 경계에 따라 전용 명령으로 전환한다. 기존 상태 CLI·훅 경로는 유지한다.
Expand Down
5 changes: 5 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ python plugins/chef/chef_cli.py guard-check --runtime codex <어댑터 이름>
인자 없이 실행하면 생성 결과와 실제 파일의 일치를 검사합니다.
CI는 Windows/macOS/Linux의 Python 3.11·3.13에서 전체 검사와 JUnit 결과 게시를 수행합니다.
macOS/Linux의 별도 Hermes native job은 고정한 공개 Hermes 소스로 실제 플러그인 로더·도구 등록·훅·작업 경로 계약을 검사합니다. 모델·외부 메시징·인증정보를 사용하지 않습니다.
테스트 파일과 테스트 데이터(`py`·`json`·`tsv`·`txt`)는 파일당 400줄을 넘기지 않습니다.
수집 케이스는 300개를 넘기지 않으며, 999개는 절대 상한입니다. 줄 합은 약 3,400줄을 목표로 두되
그 합을 CI에서 검사하지 않습니다. `python tools/check_test_budget.py`가 파일 길이와 수집 수,
가드 목록·검증 무효·슬롯 거부 계약이 테스트에 연결됐는지를 확인합니다.

저장소의 `pytest.ini`가 패키지 경로와 테스트 검색 범위를 정합니다.
테스트 파일에서 스킬의 구현 디렉터리를 Python 검색 경로로 추가하지 않습니다.
기존 `python plugins/chef/codex/sync_shared.py`는 체크아웃에서만 쓰는 개발 명령 별칭으로 유지합니다.
Expand Down
103 changes: 0 additions & 103 deletions tests/contracts/test_distribution.py

This file was deleted.

23 changes: 23 additions & 0 deletions tests/contracts/test_install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""Installed entry points resolve without the checkout on the path."""
import json
import shutil
import subprocess
import sys

from tests.paths import PLUGIN_ROOT
from tests.support import INSTALL_PATHS


def test_installed_commands_resolve_without_checkout(tmp_path):
target = tmp_path / "installed plugin"
shutil.copytree(PLUGIN_ROOT, target, ignore=shutil.ignore_patterns("__pycache__", ".pytest_cache"))
paths = json.loads(INSTALL_PATHS.read_text(encoding="utf-8"))
assert paths
for relative in paths:
result = subprocess.run(
[sys.executable, "-I", "-B", str(target / relative), "--help"],
cwd=tmp_path, capture_output=True, timeout=30,
)
assert result.returncode == 0, (relative, result.stderr.decode("utf-8", errors="replace"))
expected = b"--client" if relative.endswith("p4c.py") else b"usage:"
assert expected in result.stdout, relative
207 changes: 0 additions & 207 deletions tests/contracts/test_python_runtime.py

This file was deleted.

Loading
Loading