# S2_00 YAML·assets·sources 생성 SOW ## Objective Stage 2 v4의 5-task clean-slate DAG에서 S2_00 deterministic ingress를 구현하기 위한 YAML·고정 Python·schema·manifest binding·fixture·상류 source 검증 작업명세를 작성한다. ## Deliverables - `YAML_Prompts/2. Stage_2/S_00_SOW.md` - `YAML_Prompts/2. Stage_2/MEMORY.md` 압축 갱신 ## Scope and Non-Scope - 범위: S2_00-owned 자산과 shared dependency, Stage 1 handoff discovery, IO·상태·보존식·cluster/bundle·검증·구현 순서. - 비범위: 실제 S2_00 YAML/Python/schema 구현, S2_10 이후 자산 구현, live Stage 1→2 E2E, 법률가 production sign-off. ## Known Inputs - `stage_2_optimal_update_strategy_v.4.md` - `stage_2_optimal_update_strategy_v.4_workflow.svg` - `assets_for_stage_2_v.4.md` - Stage 1 v.8 Part 1~4 YAML과 배포된 Stage 1 registry/schema/manifest - Stage 2 `MEMORY.md` ## Material Assumptions - S2_00은 NON-LLM-DETERMINISTIC이며 사건 실행 중 코드나 schema를 생성하지 않는다. - 구 Stage 2 v.0~v.3 YAML dependency와 fallback은 0이다. - 현행 Stage 1 산출물만 소비하며 제5 Stage 1 production task를 요구하지 않는다. ## Questions That Could Change the Outcome - Stage 1 logical input의 실제 schema ID·wrapper·path·producer/hash 계약이 v4 전략의 기본 resolver와 일치하는가. - S2_00의 recoverable issue와 package-impossible diagnostic 경계가 schema와 상태표에서 닫히는가. - cluster dependency와 prompt bundle 계획이 S2_10의 immutable input·cache 경계에 충분한가. ## Workstreams and Dependencies 1. v4·assets·Stage 1 handoff 계약 추출. 2. 독립 설계안 2개 병렬 생성. 3. main agent ensemble SOW 작성. 4. 독립 평가→증분 개정 2회. 5. 정적 검증과 MEMORY 갱신. ## Source and Tool Plan - repository local source를 우선하며 `rg`, `sed`, schema/path set 대조와 Markdown 정적검사를 사용한다. - sub-agent는 문서를 수정하지 않고 finding·권고만 반환한다. - 모든 파일 편집은 `apply_patch`로 수행한다. ## Validation Plan - S2_00 C00/C05/C10/C15, exact ingress allowlist, 12개 주요 출력, producer ownership과 impossible branch를 전수 대조한다. - YAML/Python/schema/manifest/fixture/source의 이름·배포경로·producer/consumer·완료기준을 확인한다. - old Stage 2 runtime dependency, LLM 호출, dynamic Python/schema generation이 0인지 검사한다. - 평가 회차는 정확히 2회, 각 finding의 APPLIED/REJECTED disposition을 남긴다. ## Approval Boundaries - 요청된 SOW·MEMORY·ExecPlan만 수정한다. - 실제 runtime 자산 생성·배포·외부 서비스 write·commit은 수행하지 않는다. ## Progress - [x] AGENTS·MEMORY·ExecPlan 규칙 확인 - [x] v4 S2_00 계약과 Stage 1 handoff source 추출 - [x] 독립 설계안 2개 병렬 생성 - [x] ensemble SOW 초안 작성 - [x] 평가 1회차·증분 개정 - [x] 평가 2회차·증분 개정 - [x] 정적 검증·MEMORY 갱신 ## Decision Log | Date/Stage | Decision | Basis | Consequence | |---|---|---|---| | 2026-08-29 / intake | S2_00-owned 자산과 shared dependency를 분리한다 | 전체 92개 자산 중 S2_00 단독 생성범위를 과장하지 않기 위함 | SOW inventory에 owner·consumer·dependency class를 둔다 | | 2026-08-29 / intake | Stage 1 schema/path 실측을 구현 선행 gate로 둔다 | v4가 임의 ID 순번·multiset 규칙 생성을 금지 | 발견 결과를 schema lock receipt로 봉인한 뒤 구현한다 | | 2026-08-29 / ensemble | Stage 1 `ALL`은 `files[]` 전 행을 보존하고 compatibility view는 integrity-only로 분류한다 | 실제 compiler/schema에는 `ALL[*].path`가 없고 세 kind가 모두 manifest에 존재 | semantic input 축소와 manifest 보존을 동시에 충족한다 | | 2026-08-29 / ensemble | fixed `.py` 호출 adapter 확인을 Phase S00-0 gate로 둔다 | Agent Script 지침에 native external entrypoint primitive가 확인되지 않음 | inline Python 우회를 금지하고 loader integration receipt를 요구한다 | | 2026-08-29 / round 1 | global diagnostic 대신 `minimum_coherent_package_possible`과 affected scope를 사용한다 | v4의 strict global no-save 폐기와 evaluator C-01 | coherent scope는 S2_10_WITH_ISSUES로 보존한다 | | 2026-08-29 / round 1 | 외부 egress와 승인 workspace transport를 구분한다 | localdocs/host storage를 쓰면서 network 0을 요구한 모순 | 임의 endpoint 0, pinned transport만 허용한다 | | 2026-08-29 / round 2 | Stage 1에 없는 party/object canonical ID 대신 occurrence·lineage context ID만 mint한다 | 실체 동일성 과잉확정과 ID ownership 충돌 방지 | fuzzy merge 0, unresolved occurrence 분리 | | 2026-08-29 / round 2 | signal file row와 semantic record occurrence 보존식을 분리한다 | compatibility projection과 record universe 혼합 방지 | manifest file Counter와 semantic-record Counter를 각각 검사 | | 2026-08-29 / round 2 | run tuple을 영구 결속하고 whole-tree atomic rename을 사용한다 | attempt retry와 공개 output overwrite 모순 해소 | 동일 tuple은 idempotent, 다른 tuple은 새 run ID | | 2026-08-29 / round 2 | v4의 `release_ops/stage2_loader.py`를 유일 host trust boundary로 고정한다 | backend primitive 추측과 runtime 우회 방지 | signed release/hash/workspace 검증 뒤 fixed argv만 허용 | ## Evidence Ledger | Claim/Issue | Source or Test | Status | Notes | |---|---|---|---| | 5-task DAG와 S2_00 책임 | v4 §0·§2·§5 | VERIFIED | C00/C05/C10/C15 deterministic ingress | | Stage 1 allowlist·exact handoff | v4 §3.1, Stage 1 v.8 YAML | VERIFIED_PARTIAL | path와 핵심 field 확인; 실제 fixture schema lock은 구현 단계 필요 | | canonical asset inventory | `assets_for_stage_2_v.4.md` | VERIFIED | workflow/Python/schema/source 위치를 SOW에 반영 | | actual Stage 1 producer contract | v.8 Part 1~4, signal compiler/schema/registry, domain configs | VERIFIED | screening, dual SG-01, P1 flat/P2 flat/P3·P4 wrapper, config v1/v2 확인 | | Round 1 adversarial evaluation | independent sub-agent | REVISED | C3/M8/N3 전부 APPLIED | | Round 2 adversarial evaluation | independent sub-agent + red-team child | REVISED | C4/M9/N3 전부 APPLIED; 사용자 지정 최종 평가로 제3회 미수행 | | final SOW static validation | `rg`, `iconv`, `wc`, `shasum` | PASS | 978행/67,381 bytes/`a1a20207…`; fence 36, trailing 0, legacy import edge 0 | ## Risks and Failure Modes - Stage 1 logical name을 실제 물리경로로 오인하거나 wrapper/schema를 추정할 위험. - 보존검사 실패를 사실 삭제 또는 전역 no-save로 잘못 처리할 위험. - Stage 1 registry `depends_on`을 소송상 dependency로 복사할 위험. - S2_00이 S2_10 법률판단·C25 사건종류 binding을 침범할 위험. ## Results and Residual Uncertainty `S_00_SOW.md`를 완성하고 두 독립 설계안 앙상블과 정확히 2회 독립 평가의 30개 finding을 모두 증분 반영했다. 프로젝트 `MEMORY.md`에 최종 계약·검증값·미구현 경계를 기록했다. 실제 S2_00 YAML/Python/schema/test/fixture 생성·live 실행·commit은 범위 밖으로 남겼다.