[verified] Document read control responses and script preparation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user