laser-cutter 2.0.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/pages.yml +44 -0
- data/.gitignore +2 -0
- data/.openlanes/config.yml +106 -0
- data/.plans/004.00/342/224/201/342/224/201/342/232/252/342/224/201/342/224/201/342/235/257can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows/spec.md +40 -0
- data/.plans/004.00/342/224/201/342/224/201/342/232/252/342/224/201/342/224/201/342/235/257can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows/state.json +337 -0
- data/.plans/004.01/342/224/201/342/224/201/342/232/252/342/224/201/342/224/201/342/235/257sloped-box-panels/plan.md +91 -0
- data/.plans/decisions.md +11 -0
- data/CHANGELOG.md +134 -0
- data/CLAUDE.md +18 -6
- data/Gemfile +2 -1
- data/README.md +223 -50
- data/Rakefile +11 -7
- data/docs/badges/coverage_badge.svg +2 -2
- data/docs/decisions/decisions-on-angled-box.md +93 -0
- data/docs/decisions/stack.md +6 -0
- data/docs/images/box-3d.avif +0 -0
- data/docs/images/box-sloped-3d.avif +0 -0
- data/docs/images/box-sloped.avif +0 -0
- data/justfile +24 -8
- data/laser-cutter.gemspec +1 -1
- data/lib/laser/cutter/aggregator.rb +28 -0
- data/lib/laser/cutter/box.rb +95 -5
- data/lib/laser/cutter/box_factory.rb +15 -0
- data/lib/laser/cutter/cli/command.rb +27 -1
- data/lib/laser/cutter/cli/config_file.rb +2 -0
- data/lib/laser/cutter/cli/examples.rb +3 -0
- data/lib/laser/cutter/cli/generate.rb +37 -6
- data/lib/laser/cutter/cli/help.rb +4 -0
- data/lib/laser/cutter/cli/page_sizes.rb +3 -0
- data/lib/laser/cutter/cli/version.rb +2 -0
- data/lib/laser/cutter/cli.rb +23 -4
- data/lib/laser/cutter/configuration.rb +38 -4
- data/lib/laser/cutter/geometry/dimensions.rb +7 -0
- data/lib/laser/cutter/geometry/line.rb +42 -0
- data/lib/laser/cutter/geometry/loop.rb +138 -0
- data/lib/laser/cutter/geometry/point.rb +3 -0
- data/lib/laser/cutter/geometry/rect.rb +25 -0
- data/lib/laser/cutter/geometry/shape.rb +19 -1
- data/lib/laser/cutter/geometry/transform.rb +50 -0
- data/lib/laser/cutter/geometry/tuple.rb +47 -11
- data/lib/laser/cutter/launcher.rb +14 -1
- data/lib/laser/cutter/missing_option.rb +2 -0
- data/lib/laser/cutter/notching/angled_edge.rb +67 -0
- data/lib/laser/cutter/notching/base.rb +8 -0
- data/lib/laser/cutter/notching/edge.rb +44 -4
- data/lib/laser/cutter/notching/infinite_iterator.rb +11 -1
- data/lib/laser/cutter/notching/path_generator.rb +40 -6
- data/lib/laser/cutter/notching/shift.rb +4 -0
- data/lib/laser/cutter/options.rb +25 -4
- data/lib/laser/cutter/page_manager.rb +12 -2
- data/lib/laser/cutter/renderer/base.rb +19 -3
- data/lib/laser/cutter/renderer/box_renderer.rb +14 -1
- data/lib/laser/cutter/renderer/layout_renderer.rb +10 -0
- data/lib/laser/cutter/renderer/line_renderer.rb +6 -0
- data/lib/laser/cutter/renderer/meta_renderer.rb +33 -9
- data/lib/laser/cutter/renderer/rect_renderer.rb +5 -0
- data/lib/laser/cutter/renderer/svg_renderer.rb +9 -1
- data/lib/laser/cutter/renderer.rb +2 -0
- data/lib/laser/cutter/sloped/box.rb +90 -0
- data/lib/laser/cutter/sloped/corners.rb +58 -0
- data/lib/laser/cutter/sloped/layout.rb +97 -0
- data/lib/laser/cutter/sloped/notcher.rb +53 -0
- data/lib/laser/cutter/sloped/panels.rb +121 -0
- data/lib/laser/cutter/sloped/placement.rb +36 -0
- data/lib/laser/cutter/sloped/profile.rb +176 -0
- data/lib/laser/cutter/sloped/request.rb +31 -0
- data/lib/laser/cutter/sloped/ring_panel.rb +120 -0
- data/lib/laser/cutter/sloped/side_panel.rb +89 -0
- data/lib/laser/cutter/types.rb +3 -0
- data/lib/laser/cutter/units_converter.rb +5 -0
- data/lib/laser/cutter/version.rb +2 -1
- data/lib/laser/cutter/zero_value_not_allowed.rb +2 -0
- data/lib/laser/cutter.rb +2 -0
- data/spec/laser/cutter/angled_edge_spec.rb +103 -0
- data/spec/laser/cutter/box_factory_spec.rb +19 -0
- data/spec/laser/cutter/cli_spec.rb +87 -7
- data/spec/laser/cutter/configuration_spec.rb +37 -0
- data/spec/laser/cutter/loop_spec.rb +107 -0
- data/spec/laser/cutter/options_spec.rb +51 -9
- data/spec/laser/cutter/renderer/layout_renderer_spec.rb +18 -0
- data/spec/laser/cutter/renderer/meta_renderer_spec.rb +82 -0
- data/spec/laser/cutter/renderer/svg_renderer_spec.rb +34 -0
- data/spec/laser/cutter/sloped/assembly_spec.rb +78 -0
- data/spec/laser/cutter/sloped/box_spec.rb +151 -0
- data/spec/laser/cutter/sloped/corners_spec.rb +45 -0
- data/spec/laser/cutter/sloped/layout_spec.rb +77 -0
- data/spec/laser/cutter/sloped/notcher_spec.rb +57 -0
- data/spec/laser/cutter/sloped/panels_spec.rb +175 -0
- data/spec/laser/cutter/sloped/placement_spec.rb +50 -0
- data/spec/laser/cutter/sloped/request_spec.rb +48 -0
- data/spec/laser/cutter/sloped/ring_panel_spec.rb +102 -0
- data/spec/laser/cutter/sloped/side_panel_spec.rb +98 -0
- data/spec/laser/cutter/sloped_profile_spec.rb +156 -0
- data/spec/laser/cutter/transform_spec.rb +53 -0
- data/spec/spec_helper.rb +4 -0
- data/spec/support/loops.rb +106 -0
- data/spec/support/sloped.rb +26 -0
- data/spec/support/solid.rb +95 -0
- data/spec/wishes/wish-tilted-box.png +0 -0
- metadata +55 -9
- /data/.plans/{001.00-dry-cli-migration/plan.md → 001.00/342/224/201/342/224/201/342/232/252/342/224/201/342/224/201/342/235/257dry-cli-migration/plan.md"} +0 -0
- /data/.plans/{002.00-lid-options/plan.md → 002.00/342/224/201/342/224/201/342/232/252/342/224/201/342/224/201/342/235/257lid-options/plan.md"} +0 -0
- /data/.plans/{003.00-ruby-api/plan.md → 003.00/342/224/201/342/224/201/342/232/252/342/224/201/342/224/201/342/235/257ruby-api/plan.md"} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea56314a7c96b711cec7b0c25c7182aae7a855c7bb36504799e4b5f62a6293ea
|
|
4
|
+
data.tar.gz: 444ab52937af2265898bc3b8264155c5f600f0823772593315e80a20368ab140
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e208b7a2c7f4fcc0182c103b469182e3cf42645638d44c06a1c791c5f1c84c539ffa4d64bfd82b14cafb8990b04a91dff01d2c0f7c473889648e0dfb99d59c36
|
|
7
|
+
data.tar.gz: 3f1899c3d1e350287ec7cda969dfce866b3b4a2c34187c5e962fdf79491c74845f46a3f18214de12d3356ab9e4660ab7b978418413b0ada2e0536f2a6eb27341
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: YARD Docs
|
|
2
|
+
|
|
3
|
+
# Builds the YARD documentation with `rake doc` and publishes it to GitHub
|
|
4
|
+
# Pages. The repository's Pages source must be set to "GitHub Actions".
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [master]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
pages: write
|
|
13
|
+
id-token: write
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: pages
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
build:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
- uses: ruby/setup-ruby@v1
|
|
25
|
+
with:
|
|
26
|
+
ruby-version: 4.0.6
|
|
27
|
+
bundler-cache: true
|
|
28
|
+
- name: Generate YARD docs
|
|
29
|
+
env:
|
|
30
|
+
CI: "true"
|
|
31
|
+
run: bundle exec rake doc
|
|
32
|
+
- uses: actions/upload-pages-artifact@v3
|
|
33
|
+
with:
|
|
34
|
+
path: doc
|
|
35
|
+
|
|
36
|
+
deploy:
|
|
37
|
+
needs: build
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
environment:
|
|
40
|
+
name: github-pages
|
|
41
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
42
|
+
steps:
|
|
43
|
+
- id: deployment
|
|
44
|
+
uses: actions/deploy-pages@v4
|
data/.gitignore
CHANGED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
project: laser-cutter
|
|
2
|
+
starts: research
|
|
3
|
+
frontend:
|
|
4
|
+
jobs:
|
|
5
|
+
adapter:
|
|
6
|
+
redis_url:
|
|
7
|
+
redis_outage_hours:
|
|
8
|
+
ci_pending_hours:
|
|
9
|
+
redis_backoff:
|
|
10
|
+
initial:
|
|
11
|
+
cap:
|
|
12
|
+
jitter:
|
|
13
|
+
desired_codebase_quality: high
|
|
14
|
+
merge:
|
|
15
|
+
by: human
|
|
16
|
+
max_rejections:
|
|
17
|
+
commands: {}
|
|
18
|
+
application:
|
|
19
|
+
name: laser-cutter
|
|
20
|
+
description:
|
|
21
|
+
current_phase:
|
|
22
|
+
commands:
|
|
23
|
+
setup:
|
|
24
|
+
before_start:
|
|
25
|
+
start: []
|
|
26
|
+
stop: []
|
|
27
|
+
after_stop:
|
|
28
|
+
backend_tests:
|
|
29
|
+
frontend_tests:
|
|
30
|
+
other_tests:
|
|
31
|
+
ci_tests:
|
|
32
|
+
app:
|
|
33
|
+
plans:
|
|
34
|
+
aging_since:
|
|
35
|
+
questions:
|
|
36
|
+
model:
|
|
37
|
+
coverage:
|
|
38
|
+
events:
|
|
39
|
+
enabled: false
|
|
40
|
+
dir:
|
|
41
|
+
ci:
|
|
42
|
+
provider:
|
|
43
|
+
config:
|
|
44
|
+
stack:
|
|
45
|
+
language:
|
|
46
|
+
frameworks:
|
|
47
|
+
front_end:
|
|
48
|
+
persistence:
|
|
49
|
+
caching:
|
|
50
|
+
logins:
|
|
51
|
+
deployment:
|
|
52
|
+
domain:
|
|
53
|
+
from:
|
|
54
|
+
to:
|
|
55
|
+
architecture_decisions:
|
|
56
|
+
version: 1
|
|
57
|
+
detail: low
|
|
58
|
+
current:
|
|
59
|
+
layout: library
|
|
60
|
+
languages:
|
|
61
|
+
- ruby
|
|
62
|
+
task_runners:
|
|
63
|
+
- just
|
|
64
|
+
- rake
|
|
65
|
+
secrets:
|
|
66
|
+
- sopsy
|
|
67
|
+
env_loading:
|
|
68
|
+
- direnv
|
|
69
|
+
ci:
|
|
70
|
+
- github_actions
|
|
71
|
+
deployment:
|
|
72
|
+
- gem
|
|
73
|
+
testing:
|
|
74
|
+
- rspec
|
|
75
|
+
target:
|
|
76
|
+
layout: library
|
|
77
|
+
languages:
|
|
78
|
+
- ruby
|
|
79
|
+
task_runners:
|
|
80
|
+
- just
|
|
81
|
+
- rake
|
|
82
|
+
secrets:
|
|
83
|
+
- sopsy
|
|
84
|
+
env_loading:
|
|
85
|
+
- direnv
|
|
86
|
+
ci:
|
|
87
|
+
- github_actions
|
|
88
|
+
deployment:
|
|
89
|
+
- gem
|
|
90
|
+
testing:
|
|
91
|
+
- rspec
|
|
92
|
+
review:
|
|
93
|
+
adapters:
|
|
94
|
+
refactor:
|
|
95
|
+
threshold:
|
|
96
|
+
lock_hours:
|
|
97
|
+
sizing:
|
|
98
|
+
chime:
|
|
99
|
+
budget:
|
|
100
|
+
plan_usd:
|
|
101
|
+
agents:
|
|
102
|
+
slack:
|
|
103
|
+
channel:
|
|
104
|
+
workspace:
|
|
105
|
+
operators:
|
|
106
|
+
poll_seconds:
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 2026-11-25
|
|
3
|
+
starts: research
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Can We Create an Angled Box Where Angle Is Configurable Like in Spec Wishes Image Shows
|
|
7
|
+
|
|
8
|
+
## What we are trying to achieve
|
|
9
|
+
|
|
10
|
+
Add an option that tilts the box's walls to a configurable angle, instead of the straight, right-angled box the gem draws today. The target look is the picture in `spec/wishes/wish-tilted-box.png`, which is the only record of the idea in the repo. The exact meaning of "angle" (wall slope, top tilt, or both) is not stated in the repo.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Why it matters
|
|
14
|
+
|
|
15
|
+
The README's Feature Wish List does not mention angled or tilted boxes. The closest entries are "Support more shapes than just box, such as prisms" and "Extensibility with various layout strategies", and the README says the gem should be extensible. The repo does not say why this matters to its users.
|
|
16
|
+
|
|
17
|
+
This is the first attempt at doing something other than just a box.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## What already exists
|
|
21
|
+
|
|
22
|
+
- `spec/wishes/wish-tilted-box.png`: the wish image, staged in git (`A`). Look at it first.
|
|
23
|
+
- `lib/laser/cutter/box.rb`: `Box` builds the six faces as `Geometry::Rect`s in a fixed cross (`position_faces!`), with alignment set by the `conf` table. Every face is axis-aligned, so this is the main place a tilt would touch. The file is flagged "badly needs refactoring and tests".
|
|
24
|
+
- `lib/laser/cutter/notching/edge.rb`, `notching/path_generator.rb`: notches assume each side is a straight line. Tilted sides would need the notch geometry generalized.
|
|
25
|
+
- `lib/laser/cutter/aggregator.rb`: merges collinear lines by axis and offset (groups by axis, so it assumes axis-aligned lines). Relevant if tilted edges are not axis-aligned.
|
|
26
|
+
- `lib/laser/cutter/configuration.rb`, `options.rb`, `types.rb`: where a new option would go. A new `generate` option needs an attribute in `Options`.
|
|
27
|
+
- `lib/laser/cutter/renderer/base.rb`, `spec/support/outline.rb`: matched "angle/rotat" hits; not checked whether they relate to this.
|
|
28
|
+
- `.plans/001.00-dry-cli-migration`, `002.00-lid-options`, `003.00-ruby-api`: earlier plans, not read here. `002.00` (lid) is the nearest precedent for changing panel geometry.
|
|
29
|
+
- `.plans/decisions.md` and `docs/decisions/stack.md`: exist, not read here.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## What research needs to settle
|
|
33
|
+
|
|
34
|
+
- What "angle" means in the wish image: which walls tilt, and whether the top and bottom stay parallel.
|
|
35
|
+
- Whether the angle is a single value or per-wall, and its allowed range.
|
|
36
|
+
- How the notch alignment (`valign`/`halign`) and the symmetric-notch rule work on a non-rectangular face.
|
|
37
|
+
- Whether the tilted panels can still be cut as flat sheets and snap together.
|
|
38
|
+
- Whether the Aggregator's axis-based sweep needs to change for non-axis-aligned edges.
|
|
39
|
+
- Whether the Ruby API (`Options`) and SVG output need changes to match.
|
|
40
|
+
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://github.com/kigster/openlanes/blob/main/schemas/plan-state.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"plan": {
|
|
5
|
+
"ordinal": "004.00",
|
|
6
|
+
"slug": "can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows"
|
|
7
|
+
},
|
|
8
|
+
"state": "new",
|
|
9
|
+
"updated_at": "2026-11-25T15:37:23-08:00",
|
|
10
|
+
"stages": [
|
|
11
|
+
{
|
|
12
|
+
"agent": "researcher",
|
|
13
|
+
"round": 1,
|
|
14
|
+
"status": "Interrupted",
|
|
15
|
+
"started_at": "2026-11-25T14:55:17-08:00",
|
|
16
|
+
"cwd": "/Users/kig/github/kigster/laser-cutter.worktrees/004.00-can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows",
|
|
17
|
+
"from": "new",
|
|
18
|
+
"state": "new",
|
|
19
|
+
"adapter": "claude",
|
|
20
|
+
"model": "haiku",
|
|
21
|
+
"effort": "medium",
|
|
22
|
+
"visit": 1,
|
|
23
|
+
"session": "1b4211b0-798f-4cc6-b5fd-ad159f0ca9ad",
|
|
24
|
+
"to": "new",
|
|
25
|
+
"finished_at": "2026-11-25T14:56:19-08:00",
|
|
26
|
+
"up": 495305,
|
|
27
|
+
"down": 8346,
|
|
28
|
+
"seconds": 60.0,
|
|
29
|
+
"note": "Interrupted; no rounds left",
|
|
30
|
+
"moves": 1
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"agent": "researcher",
|
|
34
|
+
"round": 2,
|
|
35
|
+
"status": "Interrupted",
|
|
36
|
+
"started_at": "2026-11-25T14:56:30-08:00",
|
|
37
|
+
"cwd": "/Users/kig/github/kigster/laser-cutter.worktrees/004.00-can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows",
|
|
38
|
+
"from": "new",
|
|
39
|
+
"state": "new",
|
|
40
|
+
"adapter": "claude",
|
|
41
|
+
"model": "haiku",
|
|
42
|
+
"effort": "medium",
|
|
43
|
+
"visit": 1,
|
|
44
|
+
"session": "1b4211b0-798f-4cc6-b5fd-ad159f0ca9ad",
|
|
45
|
+
"to": "new",
|
|
46
|
+
"finished_at": "2026-11-25T14:56:57-08:00",
|
|
47
|
+
"up": 287311,
|
|
48
|
+
"down": 2063,
|
|
49
|
+
"seconds": 24.3,
|
|
50
|
+
"note": "Interrupted; no rounds left",
|
|
51
|
+
"moves": 1
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"agent": "researcher",
|
|
55
|
+
"round": 3,
|
|
56
|
+
"status": "Blocked",
|
|
57
|
+
"started_at": "2026-11-25T14:57:07-08:00",
|
|
58
|
+
"cwd": "/Users/kig/github/kigster/laser-cutter.worktrees/004.00-can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows",
|
|
59
|
+
"from": "new",
|
|
60
|
+
"state": "new",
|
|
61
|
+
"adapter": "claude",
|
|
62
|
+
"model": "claude-opus-5-5",
|
|
63
|
+
"effort": "medium",
|
|
64
|
+
"visit": 1,
|
|
65
|
+
"session": "1b4211b0-798f-4cc6-b5fd-ad159f0ca9ad",
|
|
66
|
+
"to": "new",
|
|
67
|
+
"finished_at": "2026-11-25T14:57:53-08:00",
|
|
68
|
+
"up": 483423,
|
|
69
|
+
"down": 3043,
|
|
70
|
+
"seconds": 42.6,
|
|
71
|
+
"note": "ledger says Blocked but Technical Block requires `blocked.md`",
|
|
72
|
+
"moves": 1
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"agent": "researcher",
|
|
76
|
+
"round": 4,
|
|
77
|
+
"status": "Blocked",
|
|
78
|
+
"started_at": "2026-11-25T15:08:14-08:00",
|
|
79
|
+
"cwd": "/Users/kig/github/kigster/laser-cutter.worktrees/004.00-can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows",
|
|
80
|
+
"from": "new",
|
|
81
|
+
"state": "new",
|
|
82
|
+
"adapter": "claude",
|
|
83
|
+
"model": "claude-opus-5-5",
|
|
84
|
+
"effort": "medium",
|
|
85
|
+
"visit": 1,
|
|
86
|
+
"session": "1b4211b0-798f-4cc6-b5fd-ad159f0ca9ad",
|
|
87
|
+
"to": "new",
|
|
88
|
+
"finished_at": "2026-11-25T15:08:37-08:00",
|
|
89
|
+
"up": 266789,
|
|
90
|
+
"down": 1139,
|
|
91
|
+
"seconds": 20.1,
|
|
92
|
+
"note": "ledger says Blocked but Technical Block requires `blocked.md`",
|
|
93
|
+
"moves": 1
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"agent": "researcher",
|
|
97
|
+
"round": 5,
|
|
98
|
+
"status": "Blocked",
|
|
99
|
+
"started_at": "2026-11-25T15:19:49-08:00",
|
|
100
|
+
"cwd": "/Users/kig/github/kigster/laser-cutter.worktrees/004.00-can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows",
|
|
101
|
+
"from": "new",
|
|
102
|
+
"state": "new",
|
|
103
|
+
"adapter": "claude",
|
|
104
|
+
"model": "claude-opus-5-5",
|
|
105
|
+
"effort": "medium",
|
|
106
|
+
"visit": 1,
|
|
107
|
+
"session": "1b4211b0-798f-4cc6-b5fd-ad159f0ca9ad",
|
|
108
|
+
"to": "new",
|
|
109
|
+
"finished_at": "2026-11-25T15:20:11-08:00",
|
|
110
|
+
"up": 285423,
|
|
111
|
+
"down": 1195,
|
|
112
|
+
"seconds": 20.3,
|
|
113
|
+
"note": "ledger says Blocked but Technical Block requires `blocked.md`",
|
|
114
|
+
"moves": 1
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"agent": "researcher",
|
|
118
|
+
"round": 5,
|
|
119
|
+
"status": "Blocked",
|
|
120
|
+
"started_at": "2026-11-25T15:37:03-08:00",
|
|
121
|
+
"cwd": "/Users/kig/github/kigster/laser-cutter.worktrees/004.00-can-we-create-an-angled-box-where-angle-is-configurable-like-in-spec-wishes-image-shows",
|
|
122
|
+
"from": "new",
|
|
123
|
+
"state": "new",
|
|
124
|
+
"adapter": "claude",
|
|
125
|
+
"model": "claude-opus-5-5",
|
|
126
|
+
"effort": "medium",
|
|
127
|
+
"visit": 1,
|
|
128
|
+
"session": "1b4211b0-798f-4cc6-b5fd-ad159f0ca9ad",
|
|
129
|
+
"to": "new",
|
|
130
|
+
"finished_at": "2026-11-25T15:37:23-08:00",
|
|
131
|
+
"up": 304445,
|
|
132
|
+
"down": 1082,
|
|
133
|
+
"seconds": 19.0,
|
|
134
|
+
"note": "ledger says Blocked but Technical Block requires `blocked.md`",
|
|
135
|
+
"moves": 1
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"signatures": [
|
|
139
|
+
{
|
|
140
|
+
"at": "2026-11-25T14:55:24-08:00",
|
|
141
|
+
"agent": "researcher",
|
|
142
|
+
"status": "Started",
|
|
143
|
+
"round": 1
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"at": "2026-11-25T14:56:11-08:00",
|
|
147
|
+
"agent": "researcher",
|
|
148
|
+
"status": "Interrupted",
|
|
149
|
+
"round": 1,
|
|
150
|
+
"note": "technical"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"at": "2026-11-25T14:56:36-08:00",
|
|
154
|
+
"agent": "researcher",
|
|
155
|
+
"status": "Started",
|
|
156
|
+
"round": 2
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"at": "2026-11-25T14:56:51-08:00",
|
|
160
|
+
"agent": "researcher",
|
|
161
|
+
"status": "Interrupted",
|
|
162
|
+
"round": 2,
|
|
163
|
+
"note": "technical"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"at": "2026-11-25T14:57:15-08:00",
|
|
167
|
+
"agent": "researcher",
|
|
168
|
+
"status": "Started",
|
|
169
|
+
"round": 3
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"at": "2026-11-25T14:57:42-08:00",
|
|
173
|
+
"agent": "researcher",
|
|
174
|
+
"status": "Blocked",
|
|
175
|
+
"round": 3,
|
|
176
|
+
"note": "technical"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"at": "2026-11-25T15:08:23-08:00",
|
|
180
|
+
"agent": "researcher",
|
|
181
|
+
"status": "Started",
|
|
182
|
+
"round": 4
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"at": "2026-11-25T15:08:30-08:00",
|
|
186
|
+
"agent": "researcher",
|
|
187
|
+
"status": "Blocked",
|
|
188
|
+
"round": 4,
|
|
189
|
+
"note": "technical"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"at": "2026-11-25T15:19:56-08:00",
|
|
193
|
+
"agent": "researcher",
|
|
194
|
+
"status": "Started",
|
|
195
|
+
"round": 5
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"at": "2026-11-25T15:20:03-08:00",
|
|
199
|
+
"agent": "researcher",
|
|
200
|
+
"status": "Blocked",
|
|
201
|
+
"round": 5,
|
|
202
|
+
"note": "technical"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"at": "2026-11-25T15:37:11-08:00",
|
|
206
|
+
"agent": "researcher",
|
|
207
|
+
"status": "Started",
|
|
208
|
+
"round": 5
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"at": "2026-11-25T15:37:18-08:00",
|
|
212
|
+
"agent": "researcher",
|
|
213
|
+
"status": "Blocked",
|
|
214
|
+
"round": 5,
|
|
215
|
+
"note": "technical"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"messages": [],
|
|
219
|
+
"moves": 1,
|
|
220
|
+
"memory": {
|
|
221
|
+
"researcher": {
|
|
222
|
+
"rounds": {
|
|
223
|
+
"1": {
|
|
224
|
+
"round": 1,
|
|
225
|
+
"state": "new",
|
|
226
|
+
"entries": [
|
|
227
|
+
{
|
|
228
|
+
"kind": "note",
|
|
229
|
+
"text": "Wish image spec/wishes/wish-tilted-box.png is staged only in the main checkout, not in the worktree"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"kind": "decision",
|
|
233
|
+
"text": "Left spec.md unwritten: plan folder lock refused (openlanes harness holds it); did not write over it"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"kind": "question",
|
|
237
|
+
"text": "Is the openlanes lock on the plan folder mine to take over, or should it be released by a person?"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"2": {
|
|
242
|
+
"round": 2,
|
|
243
|
+
"state": "new",
|
|
244
|
+
"entries": [
|
|
245
|
+
{
|
|
246
|
+
"kind": "question",
|
|
247
|
+
"text": "Round 2: the harness lock on the plan folder is still held by openlanes:81256 and refreshed; a person must release or re-scope it before the Research chapter can be written"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"3": {
|
|
252
|
+
"round": 3,
|
|
253
|
+
"state": "new",
|
|
254
|
+
"entries": [
|
|
255
|
+
{
|
|
256
|
+
"kind": "note",
|
|
257
|
+
"text": "Lock holder 81256 is openlanes-engine, the grandparent of this researcher run; alock 3.1.0 does not treat it as my parent, so acquire on the plan folder always fails"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "decision",
|
|
261
|
+
"text": "Round 3: signed Blocked (technical) instead of Interrupted so the harness stops relaunching; did not write past the refused lock"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "question",
|
|
265
|
+
"text": "Should openlanes skip locking the plan folder or hand the lock to the agent, treat its lock as the agent's, or should a person release it and run openlanes unblock 004.00?"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"4": {
|
|
270
|
+
"round": 4,
|
|
271
|
+
"state": "new",
|
|
272
|
+
"entries": [
|
|
273
|
+
{
|
|
274
|
+
"kind": "note",
|
|
275
|
+
"text": "Round 4: engine restarted as pid 84057 and re-locked the plan folder; acquire on spec.md still refused, no mail; signed Blocked (technical) again"
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"5": {
|
|
280
|
+
"round": 5,
|
|
281
|
+
"state": "new",
|
|
282
|
+
"entries": [
|
|
283
|
+
{
|
|
284
|
+
"kind": "note",
|
|
285
|
+
"text": "Round 5: engine pid 3740 re-locked the plan folder; still refused; harness relaunches about every 11 min despite Blocked, likely because no blocked.md exists; suggest ol stop until the lock is fixed"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
"6": {
|
|
290
|
+
"round": 5,
|
|
291
|
+
"state": "new",
|
|
292
|
+
"entries": [
|
|
293
|
+
{
|
|
294
|
+
"kind": "note",
|
|
295
|
+
"text": "Round 5 rerun: same lock by engine pid 3740 at 23:37:02, refused again, no mail; signed Blocked (technical). Needs ol stop plus a lock fix from a person"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"held": {
|
|
301
|
+
"session": "1b4211b0-798f-4cc6-b5fd-ad159f0ca9ad",
|
|
302
|
+
"through": 10
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"extensions": [
|
|
307
|
+
{
|
|
308
|
+
"number": 1,
|
|
309
|
+
"agent": "researcher",
|
|
310
|
+
"state": "new",
|
|
311
|
+
"round": 1,
|
|
312
|
+
"limit": "rounds",
|
|
313
|
+
"asked_at": "2026-11-25T14:56:19-08:00",
|
|
314
|
+
"moves": 1,
|
|
315
|
+
"answer": "a",
|
|
316
|
+
"by": "root",
|
|
317
|
+
"grant": "round",
|
|
318
|
+
"seconds": 0,
|
|
319
|
+
"settled_at": "2026-11-25T14:56:27-08:00"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"number": 2,
|
|
323
|
+
"agent": "researcher",
|
|
324
|
+
"state": "new",
|
|
325
|
+
"round": 2,
|
|
326
|
+
"limit": "rounds",
|
|
327
|
+
"asked_at": "2026-11-25T14:56:57-08:00",
|
|
328
|
+
"moves": 1,
|
|
329
|
+
"answer": "c",
|
|
330
|
+
"by": "root",
|
|
331
|
+
"grant": "round",
|
|
332
|
+
"seconds": 1200,
|
|
333
|
+
"settled_at": "2026-11-25T14:57:04-08:00",
|
|
334
|
+
"spent": true
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Plan 004.01: draw the sloped box
|
|
2
|
+
|
|
3
|
+
Follows `docs/decisions/decisions-on-angled-box.md`. PR #25 built `Geometry::Transform`, `Notching::AngledEdge` and `Sloped::Profile`. This plan draws the box.
|
|
4
|
+
|
|
5
|
+
## Outcome
|
|
6
|
+
|
|
7
|
+
`laser-cutter generate -b 4x3x5/0.125 --slope 45 --front-height 1 -o box.pdf` writes seven panels: two sides, bottom, back, top strip, tilted panel, front strip. Without `--slope` nothing changes.
|
|
8
|
+
|
|
9
|
+
## Design
|
|
10
|
+
|
|
11
|
+
```mermaid
|
|
12
|
+
flowchart TD
|
|
13
|
+
Config --> BoxFactory
|
|
14
|
+
BoxFactory -->|no slope| Box
|
|
15
|
+
BoxFactory -->|slope| SB[Sloped::Box]
|
|
16
|
+
SB --> Profile
|
|
17
|
+
SB --> Panels
|
|
18
|
+
Panels --> SidePanel
|
|
19
|
+
Panels --> RingPanel
|
|
20
|
+
Panels --> Corners
|
|
21
|
+
SidePanel --> Notcher
|
|
22
|
+
RingPanel --> Notcher
|
|
23
|
+
Notcher --> AngledEdge
|
|
24
|
+
SB --> Layout --> Placement
|
|
25
|
+
SB --> Loop[Geometry::Loop]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- **`Geometry::Loop`**: a closed outline as ordered points. It drops repeated points, spikes and collinear points, grows by a distance (the kerf), and turns into lines.
|
|
29
|
+
- **`Sloped::Notcher`**: the notched path from one point to another, through `AngledEdge` without kerf.
|
|
30
|
+
- **`Sloped::RingPanel`**: a rectangular panel. Each long edge is notched or plain; each end is notched for a stretch and covers the side wall for the rest; each corner square is its own or not.
|
|
31
|
+
- **`Sloped::SidePanel`**: the five-sided wall, with the two triangles that close the wedges under the strips.
|
|
32
|
+
- **`Sloped::Corners`**: which panel owns the corner cube at each square corner of the side.
|
|
33
|
+
- **`Sloped::Panels`**: the seven panels, each in its own frame.
|
|
34
|
+
- **`Sloped::Layout`** and **`Sloped::Placement`**: where each panel goes on the sheet.
|
|
35
|
+
- **`Sloped::Box`**: the facade the renderers use, with the interface of `Box`: `generate_notches`, `outlines`, `notches`, `enclosure`, `metadata=`.
|
|
36
|
+
- **`BoxFactory`**: picks `Box` or `Sloped::Box`. The two renderers ask it instead of naming `Box`.
|
|
37
|
+
|
|
38
|
+
### Joints
|
|
39
|
+
|
|
40
|
+
| Joint | Kind |
|
|
41
|
+
| -------------------------------------------------------- | --------------------------------------------------------------------------------- |
|
|
42
|
+
| side to bottom, back, top strip, front strip | notched, side centre in |
|
|
43
|
+
| side to tilted panel | notched with `--lid full`; plain with `--lid plain`, the panel lying on the sides |
|
|
44
|
+
| bottom to back, bottom to front strip, back to top strip | notched; back and front strip centre out |
|
|
45
|
+
| tilted panel to a strip | plain butt joint, the strip covering the end of the side |
|
|
46
|
+
| tilted panel to back or bottom, a strip dropped | plain, both ending at the corner |
|
|
47
|
+
|
|
48
|
+
A corner cube goes to the back or the front strip, unless both of its notches at that corner are holes; then the bottom or the top strip takes it.
|
|
49
|
+
|
|
50
|
+
### Kerf
|
|
51
|
+
|
|
52
|
+
Every panel is built without kerf and its loop is then grown by half the kerf. That is exact at the corners that are not square.
|
|
53
|
+
|
|
54
|
+
### Sheet
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
+-------+
|
|
58
|
+
| front |
|
|
59
|
+
+-------+
|
|
60
|
+
| tilted|
|
|
61
|
+
+-------+
|
|
62
|
+
| top |
|
|
63
|
+
+------++-------++------+
|
|
64
|
+
| side || back || side |
|
|
65
|
+
+------++-------++------+
|
|
66
|
+
| bottom|
|
|
67
|
+
+-------+
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The metadata block keeps its place at the bottom left.
|
|
71
|
+
|
|
72
|
+
### Options
|
|
73
|
+
|
|
74
|
+
- `--slope DEGREES`, above 0 and below 90. `--front-height HF`, zero or more.
|
|
75
|
+
- `--slope` needs `--front-height`, and `--front-height` needs `--slope`.
|
|
76
|
+
- `--lid back` with `--slope` raises `InvalidOption`.
|
|
77
|
+
- Both are `Options` attributes, and are printed in the metadata.
|
|
78
|
+
|
|
79
|
+
## Steps
|
|
80
|
+
|
|
81
|
+
1. `Geometry::Loop`, with specs.
|
|
82
|
+
1. `Notcher`, `RingPanel`, `SidePanel`, `Corners`, `Panels`, with specs that every joint interlocks.
|
|
83
|
+
1. `Placement`, `Layout`, `Sloped::Box`, `BoxFactory`; renderers through the factory.
|
|
84
|
+
1. `Configuration`, `Types`, `Options`, `generate`, metadata.
|
|
85
|
+
1. README, `CLAUDE.md`, decisions.
|
|
86
|
+
|
|
87
|
+
## Done when
|
|
88
|
+
|
|
89
|
+
- `just lint` and `just test` are green, coverage above 95%.
|
|
90
|
+
- A PDF and an SVG of a sloped box render, with and without each strip, for both lids.
|
|
91
|
+
- The six-panel box draws exactly what it drew before.
|
data/.plans/decisions.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Decisions
|
|
2
|
+
|
|
3
|
+
## desired_codebase_quality: high
|
|
4
|
+
|
|
5
|
+
Please indicate the desired quality of the codebase. Decided by openlanes init on 2026-11-25, written to `.openlanes/config.yml`.
|
|
6
|
+
|
|
7
|
+
a) high: the highest quality software design, modularity, low inter-module coupling, high intra-module cohesion, design patterns, events, immutability and functional programming, at the cost of slower delivery, more rounds per plan and high standards for accepting the review. SOLID classes and maximum reuse in OO code; the most sophisticated UI. A "review-passed" PR returns to developers. **(chosen)**
|
|
8
|
+
|
|
9
|
+
b) standard: a reasonable middle ground. Similar modularity and full test coverage, but less strict on SOLID, immutability and functional programming; likely fewer rounds and faster delivery. A "review-passed" PR returns to developers.
|
|
10
|
+
|
|
11
|
+
c) mvp: the fastest and least designed codebase, for MVPs and prototypes, not for software with paying customers. Cheapest in AI tokens, most likely to have bugs, and a less sophisticated UI. A "review-passed" PR is accepted, as it has no blocking issues.
|