Commit Graph
13 Commits
Author SHA1 Message Date
Lucas WintherandClaude Opus 5.5 50c115b4c7 fix(core): follow merged tombstones in the position lookup
A merged child still holds its (parent_id, position) slot under the unique
index, so skipping tombstones made every retry collide. Follow the tombstone
to the surviving work instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 19:32:27 +01:00
Lucas WintherandClaude Opus 5.5 437ca143e5 fix(core): race-safe matching, visibility-checked ID matches, child-preserving merges
- migration 0002: unique index on works (parent_id, position)
- matchWork retries the whole transaction on a unique violation (3 attempts)
- addMissingExternalIds uses ON CONFLICT DO NOTHING
- ID matches only return shared works or the user's own; private works cannot carry external ids
- adminMergeWorks requires shared works and repoints non-colliding children
- draft is computed for the aliased work id

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 19:29:48 +01:00
Lucas WintherandClaude Sonnet 5.5 a46fb60eee feat(core): works catalogue and matching
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 15:56:05 +01:00
Lucas WintherandClaude Opus 5.5 d392a65aa7 merge: task 2 schema
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:52:10 +01:00
Lucas WintherandClaude Sonnet 5.5 ff595c1c5f fix(db): add down migration, template-DB test harness, EntryStatus type
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 15:49:06 +01:00
Lucas WintherandClaude Sonnet 5.5 da04adb286 feat(db): initial schema
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 15:39:14 +01:00
Lucas WintherandClaude Opus 5.5 06a59e1b5c fix(sdk): block real network in test context, strip query from HttpError message
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:38:45 +01:00
Lucas WintherandClaude Opus 5.5 a14c4e7747 feat(sdk): plugin contract, http client, fixture harness
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:36:55 +01:00
Lucas WintherandClaude Opus 5.5 27ec24eb4b feat(core): shared domain error classes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:30:49 +01:00
Lucas WintherandClaude Opus 5.5 8248a2ac27 feat(db): Bun.SQL Kysely dialect for sqlite and postgres
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:30:49 +01:00
Lucas WintherandClaude Opus 5.5 6c5a9fbad9 chore: workspace package stubs with approved dependencies
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:30:49 +01:00
Lucas WintherandClaude Opus 5.5 fb4ff36602 docs: phase 1 implementation plan
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:24:48 +01:00
Lucas WintherandClaude Opus 5.5 560c27c04d chore: bootstrap agent-ready docs, rules and Bun workspace
Adds the approved v1 design spec, UI mockups, AGENTS.md (with CLAUDE.md
and GEMINI.md pointers), architecture/decisions/todo/permissions docs,
agent permission files, and an empty Bun workspaces skeleton.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:06:58 +01:00