Skip to content

fix(mechanism): find the hinge line, keep its rooms under a closure, say what works (#446) - #458

Merged
ManuelStaggl merged 1 commit into
mainfrom
claude/mechanism-first-call-446
Nov 15, 2026
Merged

ManuelStaggl merged 1 commit into
mainfrom
claude/mechanism-first-call-446

Conversation

@ManuelStaggl

Copy link
Copy Markdown
Collaborator

Part of #446. The hinged box ("80 x 60 x 40 mm, lid on a print-in-place hinge, snap closure at the front") took five partbuddy_mechanism calls, three refused, then three undos and a rebuild; every retry resent the whole conversation.

What changes

  • hinge without from/to: PartBuddy puts the line in the middle of the gap between the two bodies, along the stretch both share, at their rims (box built open) or half the barrel above the bed (plates), and says where. What stands in the way is said instead (rims at two heights, too far apart, diagonal).
  • A line that misses a body is answered with the line that reaches both.
  • Skin behind the knuckles' rooms (thickness unknown): the answer gives the wall that keeps two lines, or the one under which the rooms open through (run: "at least 2.5 mm, or under 1.6 mm").
  • closure on a hinge PartBuddy built: takes its line from the design (no hinge_from/hinge_to needed), and makes the lid's part of the hinge again after the lip (hingeSteps filtered to the lid). The run's failure, replayed against SolidCraft (tools/audit/cases/box-446.case.ts): the foot filled the rooms that open through the lid's wall (17.16 mm³ shared with the box, taken back), and the cut at the hinge wall sliced the lid's knuckles (0.2 mm skin over the bore). The foot now reaches no further than the room at that wall.
  • Every check stays: line, skins, shared volume before/after, take-back.

Measured (real Claude Code, token-probe.spec.ts, PROBE_REAL=1, same request)

before (2026-11-15, main) after
build turns (from the first hinge on) 9 + 21 requests, 356 k + 1 348 k input 9 + 7 requests, 358 k + 375 k input
whole run input ~2.0 M 1.02 M
mechanism calls 5 (3 refused) + 3 undo + rebuild 3 (1 refused: lid 10 / tray 30 mm, the model asked the user, as before)
print check joint stops at 177.3° joint stops at 177.2°, nothing else

Tests

  • test/mechanism.test.ts: 91 passed (new: line finding, offer, skin numbers, builtHinges, closure on a built hinge, foot at the hinge wall)
  • Contract tests (real SolidCraft) for hinge, closure, latch and template: 10 passed, 1 skipped (needs the SolidCraft window)
  • Audit: box-446 (both build, no shared volume, print check ready, folds to 177°), mechanik-fix template still ready
  • test/supervisor.test.ts fails locally on main too (not this change)

🤖 Generated with Claude Code

…say what works (#446)

The hinged box of the token run took five partbuddy_mechanism calls, three refused.
- hinge: from and to may be left out; the line goes in the middle of the gap
  between the two bodies, at their rims (box built open) or half the barrel
  above the bed (plates). A line that misses a body is answered with the line
  that reaches both, or with what stands in the way (rims at two heights).
- A skin behind the knuckles' rooms is answered with the wall thickness that
  keeps two lines, or the one under which the rooms open through.
- closure: takes the line of a hinge PartBuddy built in the lid, and makes the
  lid's part of that hinge again after the lip. The foot filled the rooms that
  open through the lid's wall (17 mm³ shared with the box, taken back) and the
  cut at the hinge wall sliced the lid's knuckles (0.2 mm skin over the bore).
  The foot reaches no further than the room at that wall.
- Audit case box-446 replays the run's box against SolidCraft: both build,
  no shared volume, print check ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ManuelStaggl
ManuelStaggl merged commit 9cce35f into main Nov 15, 2026
10 checks passed
@ManuelStaggl
ManuelStaggl deleted the claude/mechanism-first-call-446 branch November 15, 2026 18:47
ManuelStaggl pushed a commit that referenced this pull request Nov 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.3.2](v0.3.1...v0.3.2)
(2026-11-15)


### Features

* a model per step of the assistant's work
([#446](#446))
([#451](#451))
([7b3b9e8](7b3b9e8))
* blocks placed by expressions follow the design's parameters
([#446](#446))
([#454](#454))
([3ca7c89](3ca7c89))
* branded sign-in callback page for ChatGPT
([#448](#448))
([44d7fca](44d7fca))
* hand the chat over to a fresh conversation, warn near the plan's limit
([#446](#446))
([#455](#455))
([cda0e68](cda0e68))
* log the own loop's rounds, ask for batched calls
([#446](#446))
([#453](#453))
([9d4dff9](9d4dff9))
* **mechanism:** hinge and closure follow the design's parameters
([#446](#446))
([#460](#460))
([a0ff3fd](a0ff3fd))


### Bug Fixes

* a chatgpt turn that stops after its web search goes on
([#446](#446))
([#456](#456))
([b30ce73](b30ce73))
* a test window shown on purpose paints instead of staying black
([#457](#457))
([257c1ed](257c1ed))
* claude code gets solidcraft's instructions and partbuddy's notes in
its system prompt
([#446](#446))
([#459](#459))
([7c62a8a](7c62a8a))
* **deps:** update ai to v7.0.165 and @ai-sdk/openai to v4.0.111
together ([#442](#442))
([8c5ed17](8c5ed17))
* **deps:** update dependency clipper2-ts to v2.0.1-19
([#426](#426))
([57e833b](57e833b))
* **deps:** update dependency i18next-icu to v2.7.0
([#434](#434))
([3afff05](3afff05))
* **deps:** update dependency react-i18next to v17.1.13
([#428](#428))
([c5012cb](c5012cb))
* **deps:** update dependency rehype-harden to v1.1.9
([#429](#429))
([11e6162](11e6162))
* **deps:** update dependency three-mesh-bvh to v0.9.18
([#430](#430))
([d0d5c5f](d0d5c5f))
* **deps:** update dependency xstate to v5.33.4
([#431](#431))
([c602cfe](c602cfe))
* **deps:** update dependency zustand to v5.1.0
([#435](#435))
([24518c2](24518c2))
* **deps:** update i18next to v27 and react-i18next to v18 together
([#441](#441))
([8bd11c4](8bd11c4))
* **deps:** update shiki monorepo to v4.6.0
([#436](#436))
([9ca310f](9ca310f))
* **mechanism:** find the hinge line, keep its rooms under a closure,
say what works
([#446](#446))
([#458](#458))
([9cce35f](9cce35f))
* signing in again after signing out starts a fresh sign-in
([#445](#445))
([#447](#447))
([2a1ca6d](2a1ca6d))
* the policy knows run-together clearance names and "Spalt"
([#444](#444))
([9ae231d](9ae231d))


### Performance

* claude code loads tools on demand, with partbuddy's own system prompt
([#446](#446))
([#452](#452))
([5926d2d](5926d2d))
* fewer lookup rounds and no model turn for simple commands
([#446](#446))
([#450](#450))
([caa76f8](caa76f8))
* measure and cut the assistant's token use, first package
([#446](#446))
([#449](#449))
([511c23a](511c23a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant