Files
make-cad/docs/skill
NiJingzhe facccaaef5 feat(tags): tags are a view over the recorded history
A tag assignment is a graph node (apply_tag_rselection, every op-kwarg tag); the tags an entity of a node's
output carries from upstream are now computed from that node's graph, not copied per operation:

- scad::reactive tag view (reactive/tag_view.cpp): per node, from its inputs' views and its TopoDelta,
  witness by witness, as each binding's lineage policy allows (continuation_fragment: every piece of a split
  face); identity ops pass it on; memoised per immutable node, O(delta entries) per node. Installed as the
  topo layer's history-witness provider, so has_tag / list_tags / list_tag_bindings / explain_tag and every
  ql.tag see it with no API change.
- Scopes: effective (the default) = local + inherited + lineage.
- One path per binding: a recorded assignment's continuation is the view's only; the per-op copy in
  autotag.cpp now carries only what shapes alone know (imported provenance, sketch topology names, tags
  outside a session, replayed values) and an op's naming of what it generates (fillet patch, extrude side).
- merge_topo_deltas composes the steps of an N-ary boolean, so names and references cross the chain.
- Effect (audit, every family): plain face tags survive booleans, blends, shell, copies, patterns,
  transform/scale/offset/draft; op-kwarg tags survive blends and copies; primitive role tags follow their
  face. Changed expectations: nine Python-port goldens gain exactly those carried tags (only additions,
  reviewed); test_tagging_refactor / test_semantic_tagging / test_tagging.cpp / test_finalize.cpp assert
  effective includes lineage.
- Skill: ql-playbook ground rules 3 and 5 and the boundaries, ql-recipes, geometric-validation, ql.tag
  docstring and API page; design 3.1, 3.2 (target API), 6; SDK_DEFECTS 21 fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 05:23:42 +08:00
..