Commit Graph

97 Commits

Author SHA1 Message Date
Ni Jingzhe d21ab944f0 docs(skill): QL selection playbook guide (#20)
Dedicated topic page for QL selection, every snippet executed against
the SDK before landing:

- the selection loop: probe -> card -> read -> exactly(n)
- predicate vocabulary (geometry / naming / lineage) with the two
  verified gotchas: coordinates take ranges (float noise), one property
  is never enough after booleans or blends
- root-blend recipe via shared_boundary with a failure-signature table:
  tangency (axis-to-wall distance == radius) splits the card into two
  arcs and crashes TopOpeBRepDS at any radius; overhang yields half/extra
  arcs and aborts; generalize by comparing card shape with the imagined
  intersection curve and hunting the singular point
- tagged-bore chamfer recipe absorbing incident_to seam edges,
  scope-scoped apply_tag_rselection ownership, single-GraphSession
- face -> sketch datum plane derivation (make_sketch_rsketch takes a
  plane mapping, never a Face) plus largest-face ordering pattern
- lineage routes: generated_faces_tag vs output_role (kernel-proven
  generated) vs op() touched-set superset

Wired from the edge-selection defaults in geometric-validation.md and
the SKILL.md references list; no new routing targets.

skillbuild: omp/opencode now ship 373 files each.
2026-08-23 11:54:55 +08:00
Ni Jingzhe 075f88e342 feat(skill): routing SOP from load-order discipline + audit-driven fixes (#19)
Rewrite SKILL.md in the routed-authority register (mandatory numbered
load order, hard rules, routing-discipline table): deterministic route
selection, forbidden route-choice menus, one pre-scripted discriminator
question for ambiguous requests, authority precedence, and an
execution-discipline section that binds every gate to a named artifact.

Apply S1-S8 from design-docs/skill-solution.md plus five deeper
patterns from session-audit-01a02469 evidence:

- S1 Ask-or-Record gate + mounting/load brief fields; S6 companion line
- S2 selection-evidence gate before fillet/chamfer (card + cardinality
  assertion + highlight render), anti-patterns named
- S3 edge-selection defaults: shared_boundary first, index getters only
  for intentional picks; wired into the workflow step
- S4 check-definition protocol (posture vs path, verification vs design
  geometry, feedback-to-predicate)
- S5 fastener envelopes precede geometry as brief inputs
- S6 visual acceptance minimum replaces 'Visual plausibility'
- S7 reading-an-API-page contract + external-dependency boundary
- S8 a run analysis ends in a verdict

Deeper audit patterns folded in: acceptance set before geometry,
own-the-methods/ask-the-requirements split, assumptions as brief fields
with derivation tracking, enumeration-is-not-repair, and
discriminating-evidence selection.
2026-08-23 01:38:45 +08:00
Ni Jingzhe c454a3af10 feat(skill): per-harness skillbuild toolchain replaces skill-pack (#18)
* feat(skill): replace skill-pack with per-harness conditional compiler

skillbuild compiles the skill tree into per-target harness builds:
- <!-- skill:if omp,!claude --> blocks include text only for matching
  targets; name-list conditions only, no else/nesting, fail-loud on
  unknown targets and unpaired/nested directives
- fence-aware: directive-looking lines inside code fences are literal
- layout is the filesystem; tree root configured in skillproj.toml
- post-build assertion: zero directive residue, SKILL.md frontmatter
  name check

Migration to the new model:
- docs/skill/ becomes the self-contained source root (SKILL.md,
  references/, generated api/stdlib/core/guides now under
  references/docs/; SDK_OVERVIEW/LICENSE/inspect are ordinary tree
  files)
- auto_docs_gen output redirected into the tree (docs/api ->
  docs/skill/references/docs/api, likewise stdlib)
- skills/simplecadapi/ is now the compiled omp target output;
  dist/generic/simplecadapi the generic target
- dropped skill-pack entry point (plus dangling evolve/make-export
  entries and their orphaned test), release workflow builds via
  skillbuild + tar; README updated

First real conditional block: harness reading paths in SKILL.md
(skill:// mount on omp vs disk-relative on generic).

Verified: 59 tests pass (skillbuild 31, auto_docs_gen 19, persistence
regression 9); both targets build; outputs residue-clean; full suite
collects (1376 tests).

* refactor(tools): auto_docs_gen moves out of the installed package

tools/ scripts are repo-checkout dev scripts, not packaged CLIs:
- auto_docs_gen.py now lives in tools/ beside the other generators;
  auto_tools/ package removed entirely
- path resolution simplifies: repo root = parent of tools/, fail-loud
  if pyproject.toml missing; site-packages/cwd fallback branches were
  dead code once the script stopped shipping in the wheel
- auto-docs-gen console script dropped from [project.scripts];
  release.yml and README invoke python tools/auto_docs_gen.py
- MANIFEST.in stale src/auto_tools include removed; CadQuery-free
  runtime scan no longer needs the auto_tools filter
- run_examples.py retired (user removal): README example-runner text
  updated to direct examples/ scripts; dangling runner-contract test
  (runpy.run_path into the deleted script) removed

Verified: 53 tests pass (auto_docs_gen + skill_build + ocp runtime
scan) and test_example_model_contract passes; regeneration from
tools/ is byte-identical (zero docs drift).

* refactor(skill): strip harness and build-tool content from the skill tree

The skill is plain harness-neutral content again:
- SKILL.md 'Reading skill files' section removed (the omp skill://
  mount block and its !omp complement were the only conditional
  blocks; the tree compiles identically for every target now)
- references/README.md: build-tool meta removed ('per-harness
  conditional compilation', skillbuild packaging/validation claims —
  link validation was never implemented, so the claim was false)
- live test now asserts the tree stays harness-neutral (zero blocks)
- skillproj.toml targets aligned with the user's output table
  (omp -> skills/simplecadapi-omp, opencode -> skills/simplecadapi-opencode;
  leftover 'generic' entry had no output and failed the build)
- compiled outputs are regenerable artifacts: skills/simplecadapi/
  untracked from git, skills/simplecadapi-*/ gitignored, release.yml
  and README build via skillbuild and tar the omp output directly
  (bsdtar has no --transform; inner dir keeps its suffixed name)

Verified: 49 tests pass; both targets build 372 files with zero
conditional blocks; no omp/conditional/directive residue in the tree
or outputs.

* chore(docs): drop stale architecture review and design notes
2026-08-22 20:20:49 +08:00
NiJingzhe f5727fe642 refacot(skill&docs): reorgnize skill for better function routing and adding diciplins from text to cad 2026-08-21 20:35:34 +08:00
NiJingzhe cb720dd1f3 docs(stdlib): regenerate pages for ring-gear sweep migration and bearing builder
Picks up the twisted-sweep docstrings from the ring-gear migration and
the new build_ball_bearing durable builder in the stdlib index.
2026-08-21 15:41:27 +08:00
NiJingzhe a4ba70640b docs(api): document primitive placement parameters from source docstrings
The make_box_rsolid docstring was a single sentence with no Args
section, so the generated page had no Parameters section and the
bottom_face_center semantics (geometric center of the bottom face:
centered along x/y, full depth upward along z from the point's height,
not a corner) were undocumented — exactly the gap behind the four-bar
web misplacement. Add Args sections to make_box_rsolid,
make_cylinder_rsolid, and make_cone_rsolid in both the public facade
and the kernel implementation file (both define the functions), phrased
without colons inside descriptions so the docstring parser does not
split them into new parameter entries. Regenerate docs/api/, which also
picks up pages stale from earlier PR changes (capture include_scene,
MJCF closure_count, ring-gear sweep docstrings).
2026-08-21 15:41:10 +08:00
NiJingzhe bc0a967c85 feat: propagate public connectors to exporters 2026-08-20 14:52:47 +08:00
NiJingzhe e1df185f5b Merge cadir/dev into feat/prt-and-assemble 2026-08-19 14:42:27 +08:00
NiJingzhe e6896d7baf fix: preserve nested assembly state 2026-08-19 14:02:58 +08:00
NiJingzhe ba1e06a489 feat: expand product exporters and FEM workflow 2026-08-18 01:36:44 +08:00
Jiahang Shen b4c1053a74 fix(reconstruction): keep similarity metrics diagnostic 2026-08-17 00:59:56 +08:00
Jiahang Shen 386d05cd23 docs(reconstruction): keep test contract compact 2026-08-17 00:46:20 +08:00
NiJingzhe 2427048ea8 feat(brep): add region snapshots 2026-08-17 00:46:20 +08:00
Jiahang Shen 7ffd57dbc5 fix(reconstruction): harden trusted evaluator evidence 2026-08-15 21:01:41 +08:00
Jiahang Shen 1145bacfcf fix(reconstruction): define evaluator contracts 2026-08-15 21:01:41 +08:00
Jiahang Shen 333997f454 docs(reconstruction): simplify agent test contract 2026-08-15 21:01:41 +08:00
Jiahang Shen 31ec2d7914 fix(surface): preserve bounded workflow semantics 2026-08-15 20:04:29 +08:00
Jiahang Shen ecbc12ff34 docs(surface): document replayable surface workflows 2026-08-15 20:04:29 +08:00
NiJingzhe 9d6703a786 feat: enforce canonical product capture workflow 2026-08-15 16:17:11 +08:00
Jiahang Shen 336bbcf8d3 fix(inspect): close final evidence gaps 2026-08-15 14:18:07 +08:00
Jiahang Shen 1e89b3fddb fix(inspect): strengthen reconstruction evidence gates 2026-08-15 14:18:07 +08:00
Jiahang Shen 73d590a454 docs(inspect): integrate reconstruction diagnostics 2026-08-15 14:18:07 +08:00
yuliuse 9d7092860a feat: group BREP comparison diagnostics 2026-08-13 00:00:57 +08:00
yuliuse 3fc96f67d8 feat: add STEP reconstruction inspection helpers 2026-08-12 23:27:48 +08:00
NiJingzhe fee5039cc6 feat: add canonical product package export 2026-08-11 23:16:20 +08:00
NiJingzhe 89564ee1f5 Add durable part and assembly caching 2026-08-11 17:06:00 +08:00
NiJingzhe 916c41e807 chore: prepare v2.0.4b2 release 2026-08-08 04:15:45 +08:00
NiJingzhe e63a18b530 feat: expand replayable surface translation 2026-08-08 02:11:06 +08:00
NiJingzhe 2e169dec8f feat: support named point-profile lofts 2026-08-06 13:21:56 +08:00
NiJingzhe d7a6ba4dc3 feat: add replayable surface modeling APIs 2026-08-05 21:32:07 +08:00
NiJingzhe 527bc8eee6 Fix workplane replay and BREP entity maps 2026-08-05 18:26:12 +08:00
Ni Jingzhe ddbc02a273 feat: add depth-safe BREP entity maps (#2) 2026-08-05 00:55:50 +08:00
NiJingzhe 675afb9b85 feat: consolidate BREP inspection workflow 2026-08-04 23:45:23 +08:00
Codex c5217dc0d5 docs: add 2.0.4b2 reconstruction notes 2026-08-03 14:30:05 +08:00
Codex e5c50d03d7 Merge remote-tracking branch 'origin/master' into feature/brep-reverse-engineering 2026-08-03 14:24:18 +08:00
Jiahang Shen fcc7c2d617 docs: refine BREP reconstruction workflow 2026-08-03 11:03:58 +08:00
Jiahang Shen fcc049bf23 docs: add BREP reconstruction agent workflow 2026-08-03 11:03:58 +08:00
NiJingzhe 9758542fbe Prepare 2.0.4b1 release 2026-08-02 15:56:49 +08:00
NiJingzhe a2b0c40297 Move update notes to 2.0.4b1 2026-08-02 15:36:14 +08:00
NiJingzhe a9acf38c0e Document FreeCAD and bearing updates 2026-08-02 04:07:15 +08:00
NiJingzhe 9a3bb407ae Harden union behavior for touching solids 2026-08-02 04:06:51 +08:00
Jiahang Shen e190715868 feat: enhance declarative sketch profiles 2026-07-31 11:07:20 +08:00
NiJingzhe 9e8450f192 feat: add py-slvs sketch solver backend 2026-07-30 01:00:01 +08:00
NiJingzhe aa2f0e2ab9 docs: add bilingual 2.0.2 update notes 2026-07-28 13:13:09 +08:00
NiJingzhe b54a08d981 Release version 2.0.2 2026-07-28 12:34:01 +08:00
NiJingzhe 7914a3fede Release version 2.0.1 2026-07-28 12:29:51 +08:00
NiJingzhe 4214c66cd5 feat: add STEP BREP inverse engineering tools 2026-07-27 02:06:38 +08:00
NiJingzhe 50f5b9cc11 Add parameterized fasteners 2026-07-23 16:17:02 +08:00
NiJingzhe dcb1677b6c Refresh modeling docs and skill references 2026-07-23 03:18:07 +08:00
NiJingzhe af660294b1 Merge feat/dimension-chain into dev 2026-07-16 01:05:21 +08:00