[verified] Document read control responses and script preparation

This commit is contained in:
2026-10-12 13:06:17 +00:00
parent 613a7ae24a
commit b24632d65d
2 changed files with 28 additions and 0 deletions
@@ -28,6 +28,26 @@ class ReviewProbeDocumentationTests(unittest.TestCase):
with self.subTest(rule=rule):
self.assertIn(rule, section)
def test_documentation_contract_requires_bound_content_and_control_response_handling(self):
text = SKILL.read_text()
heading = '### Programmatic read control response와 script 준비'
self.assertIn(heading, text)
section = text.split(heading, 1)[1].split('\n## ', 1)[0]
for rule in ('첫 content-bearing 응답', 'exact 경로', 'source revision',
'hash', '읽은 범위', '응답 shape', 'control response',
'unchanged/dedup', '보존된 내용', 'evidence_gap',
'force-read', '전역 dedup', 'stale cache'):
with self.subTest(rule=rule):
self.assertIn(rule, section)
def test_documentation_contract_requires_compile_before_execution_and_preserves_authority(self):
section = SKILL.read_text().split('### Programmatic read control response와 script 준비', 1)[1].split('\n## ', 1)[0]
for rule in ('typed JSON', '다중 quoted', 'compile', '실행·로그 append·외부 action 전에',
'문법 검사', '안전성·인증·실행 성공', 'credential',
'commit/push', 'review role', '권한을 확장하지 않는다', 'TDD RED'):
with self.subTest(rule=rule):
self.assertIn(rule, section)
if __name__ == '__main__':
unittest.main()