Skip to content

feat(state): emit sketch.attached event in Store.AttachSketch#6

Merged
mcampbellr merged 1 commit into
mainfrom
feat/emit-sketch-attached-event
Jul 1, 2026
Merged

feat(state): emit sketch.attached event in Store.AttachSketch#6
mcampbellr merged 1 commit into
mainfrom
feat/emit-sketch-attached-event

Conversation

@mcampbellr

Copy link
Copy Markdown
Owner

What

Closes a state-sync audit gap: attaching a sketch mutated spec state without leaving an activity-log entry. Store.AttachSketch now records a sketch.attached event, so the board's activity trace and standup reflect the attach like every other domain action (state-sync-discipline).

  • AttachSketch takes an actor and appends the sketch.attached event (SketchAttachedData{Name}).
  • New event type EvtSketchAttached = "sketch.attached".
  • cmd/vector/sketch.go passes resolveActor() to the new signature.

Gate

gofmt clean · go vet ./... · go build ./... · go test ./... green.

Provenance / merge note

This change was sitting uncommitted in the working tree alongside the cobra migration; it is split out here as its own PR. cmd/vector/sketch.go here is the pre-cobra (runSpecAttachSketch) form. The separate #5 (adopt-cobra-lipgloss-cli) migrates cmd/vector to a cobra tree. When both land, resolve the sketch.go conflict by keeping newSpecAttachSketchCmd (cobra) with the 4-arg AttachSketch.

🤖 Generated with Claude Code

Close the state-sync audit gap: attaching a sketch mutated the spec state
without leaving an activity-log entry. Store.AttachSketch now records a
sketch.attached event, so the board's activity trace and standup reflect the
attach like every other domain action (state-sync-discipline).

- AttachSketch takes an actor and appends the sketch.attached event.
- cmd/vector/sketch.go passes resolveActor() to the new signature.

Note: cmd/vector/sketch.go here is the pre-cobra (runSpecAttachSketch) form.
The separate adopt-cobra-lipgloss-cli PR migrates cmd/vector to a cobra tree;
when both land, keep newSpecAttachSketchCmd (cobra) with the 4-arg AttachSketch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mcampbellr mcampbellr merged commit a24488e into main Jul 1, 2026
2 checks passed
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