Stage2/s2 20 index coverage build #3

Merged
jhogyu merged 3 commits from stage2/s2-20-index-coverage-build into main 2026-10-28 02:29:35 +00:00
3 Commits
Author SHA1 Message Date
jhogyuandClaude Opus 5.5 38c9a07a98 feat(stage2): add coverage T1/T1′/T3 to rulebook_index (rbidx/2.1.0) and build the S2_20 rulebook index
indexing_scratchpad/rulebook_index.py:
- read the S2_10 YAML (case_kind_relief_map.v1, KINDS, JOINS) without a
  YAML parser and the three class tables next to the module
- T1 relief candidates and T1′ object class spans are a build gate (no
  manifest on any gap); T3 lists paths whose 주된 주문 형태 falls outside the
  S2_10 candidates
- manifest.json gains "coverage" with input sha (S2_10 YAML, mapping,
  tables); check verifies them and B4 rebuilds manifest + coverage
- CLI: build CLAIM ELEM REC REGISTRY S2_10_YAML OUT_ROOT /
  check OUT_ROOT [REGISTRY [S2_10_YAML [CLAIM ELEM REC]]]
- B6 adds 6 T3 samples (24 in total); previous module kept as
  rulebook_index_old_v.1.py

Tables extracted verbatim from 정보묶음_일반성_확장.md: relief_invariants.json
(§4.2), object_class_spans.json (§5.2·§5.3), module_registry.json (§6.1~§6.3).

agent_scripts/rulebook_build/: 137 index entries + manifest and the 274
rulebook copies; T1 137/137, T1′ 137/137, T3 17 kinds; build and check
(B4 included) pass.

Docs: 최적색인방식구상_S2_20_Fable_v.2.md (new, §5-4 implementation),
정보묶음_일반성_확장.md §10.4, MEMORY.md entries, legal references and
working notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:25:38 +09:00
jhogyuandClaude Opus 5.5 2ac6de641d fix(rulebooks): unify joint-liability wording upstream and add freight joint-liability criteria
요건사실론 v2 (reprocessed, E1~E12 137/137):
- 관리비·진료비·청산금등·정산금: "각자" -> "공동하여" with the overlap scope;
  선급금 "연대(부진정)하여" -> "공동하여" (S2_20 W3 labels, 86그141)
- 변상금: drop table rows R-PROV013-5-06/5-19 that had no body; 분담금 §4
  header aligned to R-PROV021-4-04; 경정등기 retired ID -> description
- 운임운송대금: relation criteria (연대채무 / 부진정연대 / 독립) for
  shipper + receiving consignee (상법 §57·§141·§807①), 57① quoted verbatim,
  wording delegated to the common S2_20 rule

청구취지 appendix decisions (C1~C12 pass, assembled output byte-checked):
- 19 kinds, 51 patches for "각자" recommendations / conditional use / split
  usage, 32 "STOP-ROUTE" -> STOP-ROUTE01~04, 45 RULE-ILLEGALITY -> prose
- 운임운송대금 21 patches: Q-19 route to 전액공동 / LEAF-02 / FORM-02,
  [부담표지] for FORM-02/03/05, SRC-L09/L13 in basis columns

Previous inputs are kept under yo_work/_superseded_20261027_{gakja,unim}/ and
appx_decisions/*.dec_outdated_20261027_*.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:25:23 +09:00
jhogyuandClaude Opus 5.5 8ec843ede6 chore(stage2): remove weaviate corpus snapshot lineage and Argon index prototype
Delete the weaviate collection schema and the zero-source corpus snapshot
(corpus/, offline_build/build_corpus_snapshot.py and its .txt copy,
manifest/corpus_release.json) and drop the builder entries from
offline_build.zip. Delete the Argon v.1 prototype under
agent_scripts/rulebook_index/ and its byte-identical copy
agent_scripts/gemini_색인작업파일/.

Note: the current Stage_2_S2_20.yml, runtime/s2_20_reduce.py, deployment
binding, three manifests and two tests still reference the removed files;
stage2_release.json (sha 2363f116…) is pinned in S2_20/30/40 YAML. See
최적색인방식구상_S2_20_Fable_v.2.md §10-6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:24:34 +09:00