Remove review material byte caps and enable complete readonly evidence inspection

This commit is contained in:
Takeshi
2026-10-13 23:21:02 +09:00
parent be3047979b
commit e31233685b
44 changed files with 22269 additions and 2 deletions
@@ -12,8 +12,17 @@ ALLOWED_CODEX_MODELS = ('gpt-6.1-sol', 'gpt-6-astra')
original_llm = Runner.llm
def owner_model_llm(self, task_id, role, service, prompt, cwd, schema):
prompt = ("Latest owner review-material policy: fixed 500000-byte limits are removed. Do not omit required sources or evidence or perform compression/re-submission merely to satisfy the obsolete cap. Claude commander/reviewer can inspect their source checkout with Read,Grep,Glob; reviewer validation materials are mirrored into .review-material within the frozen checkout. Other services keep their own tool sets. Preserve scope, acceptance, exact-version evidence and independent review. Read relevant dependencies directly and report required context gaps.\n" + prompt)
if service == 'claude' and role == 'commander':
schema = json.loads(json.dumps(schema))
state = self.task(task_id)["state"]
actions = {"ready": ["run", "wait"], "repair_ready": ["run", "wait"],
"submitted": ["validate", "wait"], "repair_pending": ["request-repair", "wait"],
"blocked": ["request-repair", "wait"], "review_pending": ["review", "wait"],
"reviewed": ["prepare-integration", "wait"], "completed": ["wait"]}
if state in actions:
schema["properties"]["action"]["enum"] = actions[state]
prompt = "Actual Runner state: " + state + "; valid actions: " + ", ".join(actions[state]) + ". Return a valid action; do not repeat completed transitions.\n" + prompt
schema['required'] += ['codex_model', 'codex_model_reason']
schema['properties']['codex_model'] = {'type': 'string', 'enum': list(ALLOWED_CODEX_MODELS)}
schema['properties']['codex_model_reason'] = {'type': 'string', 'minLength': 1}
@@ -69,7 +78,6 @@ def packet_with_actual_evidence(self, task_id, role, sha=None):
prefix, data = packet.split('\nDATA:\n', 1)
body = json.loads(data)
body['coordinator_actual_runtime_evidence'] = json.loads(Path(extra).read_text())
assert len(json.dumps(body).encode()) < 500000, 'unchanged complete packet size guard'
packet = prefix + '\nDATA:\n' + json.dumps(body, ensure_ascii=False)
return packet