chore: snapshot of work since 2026-10-05 (Stage 1 v.8, S2_00 v7.4/v7.5 handoff, S2_10 rewrite research v.2, 청구취지·요건사실 corpora)

Case_02_Comparison_Research
- Stage 1 v.8: Part 1~4 YAMLs with R1~R3 patches, F-1/F-2 fixes, 피고과식별방지 prompt
  (defendant_qualification), dated backups, 실행검사/실패분석 reports
- Stage 2 S2_00: v7.4 handoff (Task_S2_00_handoff, 경량화 전략서 + §2 개정) and
  v7.5 defendant qualification gate (피고관련작업_개정_S2_00.md), copies v.7/v.10/v.11,
  dated backups, 실행보고서/실패분석/결과물 리스트
- Stage 2 S2_10: v6/v7/v8 failure analyses, 재작성전략 10_06/10_08, case_kind_registry.json,
  연구조사보고서_S2_10_재작성용.md (v.1), _추가.md (multi-claim methodology) and
  merged _v.2.md (claims[] 1~4, join PRELIMINARY/SELECTIVE/INDEPENDENT, V1~V6),
  S2_10_Test run outputs, 실행검사 v.10/v.11
- Stage_2 MEMORY.md / CLAUDE.md / work-history notes, AGENTS.md and README_KO.md updates

Other corpora and tooling
- Default_Agent_청구취지기재방법: 청구취지 규칙문서 전체 모음(원문·사건종류별·raw) and tmp drafts
- 요건사실론: 사건종류별 문서(raw·filtered), plans, rf_draft
- 판례모음, STT_앱구성_연구, API Crowdness 조사, update_numbers.py

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 13:02:13 +09:00
co-authored by Claude Fable 5.1
parent 4d8c23863f
commit 5f9853e44b
5881 changed files with 6940615 additions and 1790 deletions
@@ -0,0 +1,55 @@
# ExecPlan Protocol
An ExecPlan is a living, self-contained execution document for complex work.
## When an ExecPlan is required
Create or update an ExecPlan when any of the following is true:
- the task has multiple deliverables or materially dependent stages;
- legal analysis and quantitative or coding work must be reconciled;
- the task is high-stakes and errors would be difficult to detect from the final prose alone;
- several source classes, jurisdictions, time periods, or datasets must be coordinated;
- implementation spans multiple files or requires migration, validation, and rollback thinking;
- subagents will be used;
- the user explicitly requests a plan.
Do not create an ExecPlan for a small, well-scoped answer or a trivial code edit.
## Required structure
Create the plan under `plans/<task-slug>.md` unless the task specifies another location.
```markdown
# <Task>
## Objective
## Deliverables
## Scope and Non-Scope
## Known Inputs
## Material Assumptions
## Questions That Could Change the Outcome
## Workstreams and Dependencies
## Source and Tool Plan
## Validation Plan
## Approval Boundaries
## Progress
- [ ] ...
## Decision Log
| Date/Stage | Decision | Basis | Consequence |
## Evidence Ledger
| Claim/Issue | Source or Test | Status | Notes |
## Risks and Failure Modes
## Results and Residual Uncertainty
```
## Operating rules
- Keep the plan current; do not use it as ceremonial documentation.
- Record material changes in the decision log.
- Mark completed steps only after validation.
- Split independent workstreams for subagents, but keep cross-cutting legal or methodological judgments with the main agent.
- End with a concise record of what was completed, validated, deferred, or left uncertain.
@@ -0,0 +1,15 @@
# Documentation Index
Use this index to select the smallest relevant workflow.
| Document | Use when |
|---|---|
| `PLANS.md` | The task is long, multi-stage, high-stakes, or requires several coordinated deliverables. |
| `workflows/knowledge-work.md` | Research, synthesis, academic critique, policy reports, document analysis, or evidence-backed recommendations. |
| `workflows/legal-analysis-ko.md` | Legal issue identification, authority research, statutory interpretation, case analysis, application, remedies, or litigation-oriented critique. |
| `workflows/python-work.md` | Python coding, data cleaning, quantitative checks, simulations, econometrics, or artifact generation. |
| `quality/evidence-policy.md` | The output relies on external sources, quotations, legal authorities, numerical evidence, or current facts. |
| `../templates/TASK_PROMPT.md` | A new task needs a precise goal/context/constraints/done specification. |
| `../evals/EVAL_RUBRIC.md` | Testing or revising `AGENTS.md`, workflows, model settings, or subagent design. |
Do not read every document by default. Read the documents required by the current task.
@@ -0,0 +1,56 @@
# Evidence, Citation, and Uncertainty Policy
## Claim classes
Tag material propositions mentally or in the work product as one of:
- `VERIFIED FACT`: directly supported by inspected evidence.
- `SOURCE INTERPRETATION`: a defensible reading of an inspected source.
- `ASSUMPTION`: supplied or adopted to proceed.
- `INFERENCE`: derived from facts or sources but not directly stated.
- `RECOMMENDATION`: normative proposal.
- `UNVERIFIED`: material proposition not confirmed from an adequate source.
Do not blur these classes.
## Source quality
Evaluate:
- authority and provenance;
- primary versus secondary status;
- temporal validity;
- jurisdiction or population fit;
- methodological quality;
- independence from other sources;
- completeness and access to underlying text or data;
- conflicts of interest.
## Citation rules
- Cite the source that actually supports the proposition.
- Use the smallest adequate pinpoint or locator.
- Do not cite a source merely because it discusses the same topic.
- Do not quote from memory.
- Do not rely on a snippet when the underlying source is available.
- Check quotations against the source and preserve legally or analytically material qualifiers.
- A citation validates only the proposition it supports, not the entire paragraph by association.
## Conflicts
When sources conflict:
1. confirm they address the same proposition, period, population, and legal version;
2. rank them by authority and method;
3. explain the reason for preferring one, if possible;
4. preserve unresolved disagreement in the conclusion.
## Uncertainty language
Use direct formulations:
- `Verified from ...`
- `The source supports ... but does not establish ...`
- `This conclusion depends on ...`
- `The available evidence is mixed because ...`
- `UNVERIFIED: ...`
- `This is an inference without much evidence.`
Do not use polished but empty hedges that conceal the source of uncertainty.
@@ -0,0 +1,68 @@
# Knowledge-Work Workflow
## 1. Frame the task
Record:
- the exact question or decision;
- audience and intended use;
- scope, jurisdictions, industries, entities, and time period;
- cutoff date for current information;
- required deliverables and level of detail;
- material assumptions and exclusions.
## 2. Build the source hierarchy
Default priority:
1. primary documents, official data, statutes, regulations, judgments, filings, contracts, and original research;
2. high-quality institutional or peer-reviewed analysis;
3. reputable secondary reporting;
4. commentary and discovery sources.
Use lower-tier material to locate or contextualize higher-tier evidence. Do not use it to overrule primary evidence without explanation.
## 3. Retrieve and verify
For each material source:
- verify title, author or institution, date, version, and relevant scope;
- inspect the underlying text, table, appendix, or data—not only a snippet or abstract;
- capture the smallest locator that supports the proposition;
- note limitations, conflicts, and whether the source is current enough.
## 4. Maintain a claim-evidence matrix
| Material claim | Evidence | Source quality | Counterevidence | Status |
|---|---|---|---|---|
| ... | ... | Primary/Secondary | ... | Verified/Qualified/Unverified |
Do not draft a confident synthesis while decisive claims remain unmapped.
## 5. Analyze
Separate:
- descriptive facts;
- causal claims and identification assumptions;
- legal or institutional interpretation;
- the source author's conclusion;
- the agent's critique;
- the agent's proposal.
For quantitative claims, check definitions, units, denominators, sample construction, timing, missingness, and comparability.
## 6. Adversarial review
Before finalizing:
- search for disconfirming evidence;
- identify alternative explanations;
- check whether sources are independent or merely repeat one another;
- test whether the conclusion depends on a single fragile assumption;
- identify what evidence would reverse the conclusion.
## 7. Deliver
Lead with the conclusion and decision relevance. Then provide:
- scope and method;
- evidence-backed findings;
- disagreements and counterevidence;
- assumptions and limitations;
- implications or recommendations;
- a clear separation between verified findings and original inference.
@@ -0,0 +1,113 @@
# Legal Analysis Workflow — Republic of Korea Focus
Apply this workflow to Korean-law tasks unless the task specifies another jurisdiction. For another jurisdiction, adapt the authority hierarchy and precedent rules explicitly.
## 1. Intake and legal frame
Identify before concluding:
- governing jurisdiction;
- legally relevant date or period;
- procedural posture and tribunal;
- parties and legal relationships;
- requested remedy or decision;
- stipulated, alleged, disputed, and missing facts;
- applicable burdens, presumptions, and standards of review or proof.
If one of these is outcome-determinative and absent, ask or branch the analysis.
## 2. Issue decomposition
Create an issue tree that distinguishes:
- claim or legal basis;
- constituent elements;
- defenses, exceptions, exclusions, and limitation periods;
- procedural prerequisites;
- remedy, causation, damages, and enforcement questions;
- constitutional, statutory, regulatory, administrative, and private-law interactions.
Do not skip directly from a broad doctrine to a conclusion.
## 3. Authority hierarchy and temporal validity
For Korean law, ordinarily examine as applicable:
- Constitution;
- statutes;
- presidential decrees;
- ordinances of the Prime Minister or ministries;
- local ordinances and rules;
- administrative rules, notices, guidelines, and interpretations;
- Constitutional Court and court decisions;
- authoritative legislative history and official materials;
- secondary commentary.
For every material provision:
- verify the text effective on the relevant date;
- check promulgation and effective dates;
- check amendment history, supplementary provisions, transitional rules, exceptions, and delegated legislation;
- distinguish legal binding force from interpretive or practical weight.
For decisions:
- verify court, case number, decision date, type of disposition, and procedural posture;
- read the operative reasoning or full text when available;
- distinguish the actual holding from official summaries, headnotes, dicta, later commentary, and factual description;
- identify later decisions that affirm, narrow, distinguish, criticize, or supersede the proposition;
- characterize Korean precedent by its institutional and practical authority rather than mechanically importing common-law stare decisis terminology.
## 4. Element-by-element application
Use a matrix:
| Issue/Element | Governing rule | Supporting facts | Opposing facts | Missing facts | Counterargument | Preliminary conclusion |
|---|---|---|---|---|---|---|
| ... | ... | ... | ... | ... | ... | ... |
For each element:
- state the rule precisely;
- identify the authority and its temporal applicability;
- apply both favorable and unfavorable facts;
- identify evidentiary or pleading gaps;
- explain whether the result is rule-driven or fact-sensitive.
## 5. Adverse review
Actively test:
- competing characterization of the transaction or conduct;
- contrary statutory interpretation;
- adverse or limiting decisions;
- procedural bars, standing, jurisdiction, limitation, exhaustion, or burden failures;
- remedy mismatch;
- factual scenarios under which the conclusion reverses.
If an adverse point cannot be resolved, preserve it as residual uncertainty rather than burying it.
## 6. Citation integrity
Never fabricate a case number, quotation, statutory text, or administrative interpretation.
A legal authority entry should include, when available:
- issuing body or court;
- date;
- case number or official identifier;
- relevant provision or paragraph;
- exact proposition supported;
- authority weight;
- verification status.
Memory may suggest a search lead. It may not serve as decisive authority in a final legal conclusion.
## 7. Output structure
Unless another form is requested:
1. Executive conclusion.
2. Scope, assumptions, and legally relevant date.
3. Facts and unresolved factual disputes.
4. Issues presented.
5. Governing law and authority hierarchy.
6. Element-by-element application.
7. Adverse authority and counterarguments.
8. Remedy and procedural considerations.
9. Conclusion by issue, with confidence and reversal conditions.
10. Verification record and sources requiring human confirmation.
Treat the result as a professional draft requiring review against the complete record and current official authorities.
@@ -0,0 +1,61 @@
# Python and Quantitative Work Workflow
## 1. Inspect before changing
Determine:
- Python version and execution environment;
- package manager and lockfile;
- existing dependencies, style, tests, and entry points;
- data schema, units, keys, time indexes, missing values, and expected outputs;
- whether the task is exploratory, production, or evidentiary.
Do not replace the project's toolchain without a task-specific reason.
## 2. Design the smallest adequate solution
Prefer:
- existing dependencies before new dependencies;
- small functions with explicit inputs and outputs;
- `pathlib` for paths;
- type hints for nontrivial interfaces;
- deterministic random seeds;
- clear units, index conventions, and numerical tolerances;
- scripts or modules as the reproducible source of truth, even when a notebook is used for exploration.
Avoid hidden global state, silent data coercion, and unrelated refactoring.
## 3. Protect data and secrets
- Treat raw data as immutable.
- Write intermediate and final results to designated derived-data or artifact paths.
- Never print, commit, or transmit secrets.
- Confirm before accessing external systems, installing production dependencies, or performing costly computation.
- Record material transformations and exclusions.
## 4. Validate
Select checks proportionate to the task:
- syntax/import check;
- targeted unit tests;
- smoke test on a small sample;
- edge cases and failure paths;
- schema, uniqueness, merge, and index-alignment checks;
- missing-value and outlier checks;
- unit and dimensional consistency;
- tolerance-based numerical assertions;
- independent formula or implementation;
- benchmark or regression test against a known result;
- look-ahead, survivorship, leakage, and timing checks for empirical finance or econometrics.
## 5. Report
State:
- files changed;
- commands actually run;
- tests and numerical checks;
- results;
- data or environment assumptions;
- warnings, failures, and untested branches;
- reproduction steps.
Never convert an unexecuted suggestion into a claim that the code works.