26 Commits

Author SHA1 Message Date
Andrey Epifancev
9b4ea0a3c9 docs(openspec): archive core-recording-lifecycle, promote specs (#1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKHeGuAYh4W1jNdjMConZa
2026-09-27 19:26:25 +04:00
aep
001ba8af80 Merge pull request 'feat: core recording lifecycle (#1)' (#2) from feat/1-core-recording-lifecycle into main
Reviewed-on: #2
2026-09-27 18:24:24 +03:00
Andrey Epifancev
eb8e00b2a0 docs: set test vault path in project CLAUDE.md (M-3, partial)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKHeGuAYh4W1jNdjMConZa
2026-09-27 17:59:49 +04:00
Andrey Epifancev
d48b50a893 fix: stop ignoring tests/fixtures/*.webm golden fixtures (M-2, F-3)
Decision 25 allows .webm/.ogg golden cases and decision 9 requires audio
fixtures to be committed; the ignore rule silently let a webm golden case
pass locally while failing on a clean clone (the fixture would never reach
git). Removes the `tests/fixtures/*.webm` line from .gitignore.

Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:12:45 +04:00
Andrey Epifancev
972976b16a fix(core): claimAll reclaims own work; isolate per-record queue errors
- I-1 (F-1): claimAll() now also moves this device's own `retry` records
  and own stale `sent` records to `saved` via the `claim` transition
  (device = own), same as it already does for other devices' claimable
  records, then runs a normal tick() so everything sends without waiting
  for the next retry time. The returned count still only reflects records
  reassigned from other devices. Adds `ownReclaimable()` to schedule.ts.
- M-1 (F-2): pass() wraps each per-record operation (staleOwn update and
  each send) in try/catch, remembers the first error, keeps processing the
  rest of the due queue, and rethrows the first error after both loops
  complete — so one permanently failing record no longer blocks newer
  records behind it. list()/load() failures still reject tick()
  immediately, as before.
- F-4a: send()'s post-request update now also requires
  `r.device === env.deviceId && r.sentAt === sent.sentAt`, so a late
  transcription result can never overwrite a record another device (or a
  newer send) has since taken over.
- F-4b: pass()'s staleOwn loop now also stops when the abort signal fires;
  retry() and claimAll() return early (false / 0) without writing once
  disposed.
- F-4d: retry() no-op it.each now also covers `sent` (own, fresh).

Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:12:31 +04:00
Andrey Epifancev
968140f7e1 docs(openspec): final-review rulings — claim-all scope, per-record errors, fixtures ignore, hardening
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKHeGuAYh4W1jNdjMConZa
2026-09-27 17:05:56 +04:00
Andrey Epifancev
1b23554658 test(core): golden test-01 end-to-end capture → queue → note
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:54:51 +04:00
Andrey Epifancev
88ef2bde24 feat(core): manual retry and claim-all commands
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:47:08 +04:00
Andrey Epifancev
626d832bd1 fix(core): stop sending after QueueRunner.dispose()
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:42:57 +04:00
Andrey Epifancev
d7ec88a91e docs(openspec): ruling — queue stops sending after dispose()
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKHeGuAYh4W1jNdjMConZa
2026-09-27 16:41:23 +04:00
Andrey Epifancev
97a560820f feat(core): queue runner with retries, stale-sent recovery and re-entrancy guard
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:38:46 +04:00
Andrey Epifancev
b126e4bf8b feat(core): save captured audio and initial note; in-memory port fakes
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:32:34 +04:00
Andrey Epifancev
0cd683d5df feat(core): due, stale-sent and claimable selection
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:29:28 +04:00
Andrey Epifancev
d579ffd4a1 feat(core): note body with status region and transcript insertion
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:24:30 +04:00
Andrey Epifancev
83236c4118 feat(core): read, parse and patch voice-* frontmatter
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:19:57 +04:00
Andrey Epifancev
a4163fa5fe feat(core): voice record state machine with backoff
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:12:31 +04:00
Andrey Epifancev
6b2466cf05 feat(core): record ids, file paths, time formatting
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:08:28 +04:00
Andrey Epifancev
7cd3811ead chore: scaffold build and vitest, add core ports and boundary guard
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:52:20 +04:00
Andrey Epifancev
cbd76d5802 docs(openspec): SDD pre-flight rulings — implementer models, test helper duplication, decision logging
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:47:55 +04:00
Andrey Epifancev
944a6594ec docs: apply plan review — retry status wording, TZ note, stale-sent and rename decisions
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:42:09 +04:00
Andrey Epifancev
cb9a691931 docs: implementation plan for core recording lifecycle; planning decisions
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:14:25 +04:00
Andrey Epifancev
1cd72201e2 test: track test-01.m4a fixture so golden tests pass on a clean clone
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:08:33 +04:00
Andrey Epifancev
75bac1eef9 docs(openspec): apply spec review — UTC id, 10m stale sent, no-speech wording, list() contract; decisions log
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 14:59:31 +04:00
Andrey Epifancev
e00d7e182c docs(openspec): core-recording-lifecycle proposal, specs, design
Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 14:44:26 +04:00
Andrey Epifancev
0098617d26 docs: route OpenSpec skills through superpowers 2026-09-27 14:07:26 +04:00
Andrey Epifancev
72c942f667 chore: bootstrap project skeleton, openspec, fixtures 2026-09-27 14:06:01 +04:00