refactor: simplify distillation data layout

This commit is contained in:
Jerry
2026-07-27 17:40:16 +08:00
parent 8895178844
commit c8dbc51549
34 changed files with 132 additions and 7791 deletions
@@ -10,11 +10,10 @@ published library and require repeated support before promoting any experience.
## Required workflow
1. Put source `.step` or `.stp` files in
`workspace/teacher/inbox/`. Only deterministic ingestion and Agent B may
access this vault.
2. Parse every new, content-unique STEP into visible private JSON under
`workspace/teacher/evidence/`:
1. Put source `.step` or `.stp` files directly in `input/`. Git ignores this
directory; only deterministic ingestion and Agent B may access it.
2. Parse every new, content-unique STEP into private JSON under
`runs/evidence/`:
```bash
../../scripts/cad-experience extract-folder
@@ -26,11 +25,11 @@ published library and require repeated support before promoting any experience.
../../scripts/cad-experience prepare
```
4. Read `workspace/promotion/candidates/semantic-batch.json` completely. Act as the semantic
4. Read `runs/review/semantic-batch.json` completely. Act as the semantic
distiller: compare families, parameter roles, datum roles, canonical
reconstruction stages, feature cardinality classes, relations, prior
vocabulary, failure rules, and validation targets; then author
`workspace/promotion/candidates/experience-draft.json` using
`runs/review/experience-draft.json` using
`references/llm-review-contract.md`.
Propose methods, invariants, and family-level `reconstruction_grammar`
@@ -44,7 +43,7 @@ published library and require repeated support before promoting any experience.
```bash
../../scripts/cad-experience publish \
--draft ../../workspace/promotion/candidates/experience-draft.json
--draft ../../runs/review/experience-draft.json
```
The publisher recomputes support from the private corpus, rejects numeric
@@ -55,14 +54,14 @@ published library and require repeated support before promoting any experience.
```bash
python scripts/cad_experience.py audit \
../../workspace/promotion/promoted/library.json
../../output/library.json
```
7. Query only the published library for creation, modification, or rebuilding:
```bash
python scripts/cad_experience.py query \
../../workspace/promotion/promoted/library.json \
../../output/library.json \
--family flanged_hub_adapter \
--features base_flange,hollow_sleeve,counterbore
```
@@ -88,8 +87,10 @@ required.
family without publishing any teacher dimensions.
- Exact source paths, hashes, dimensions, coordinates, and face references are
permitted in private case JSON and forbidden in the published library.
- Keep input/output as a human-visible staging area and induction corpus. Never
use it directly during creation, modification, or reconstruction.
- Keep `input/` and `runs/` as a local-only induction corpus. Never use them
directly during ordinary creation, modification, or reconstruction.
- Commit only the verified runtime library in `output/`; never commit source
STEP files, extracted evidence, review drafts, reports, or rebuilt parts.
- A semantic candidate is not a trusted design method until repeated,
independently sourced cases satisfy the promotion policy.