|
| 1 | +``` |
| 2 | + |
| 3 | + ❯ Hold on-- docs/msc is allowed to accumulate tactical documents |
| 4 | + <agent-notification> |
| 5 | + <agent-id>a69d2cf</agent-id> |
| 6 | + <output-file>/tmp/claude/-Users-josephwecker-v2-src-archema/tasks/a69d2cf.output</output-file> |
| 7 | + <status>completed</status> |
| 8 | + <summary>Agent "Reconcile docs/dev with MAP/ISSUES" completed.</summary> |
| 9 | + Read the output file to retrieve the full result. |
| 10 | + </agent-notification> |
| 11 | + we can move them wholesale to .archive or something whenever-- there's no guarantee that anything there stays. On the other hand, we can just leave it all and it harms |
| 12 | + nothing... |
| 13 | + <agent-notification> |
| 14 | + <agent-id>aab60c8</agent-id> |
| 15 | + <output-file>/tmp/claude/-Users-josephwecker-v2-src-archema/tasks/aab60c8.output</output-file> |
| 16 | + <status>completed</status> |
| 17 | + <summary>Agent "Verify KEY_FILES.md is current" completed.</summary> |
| 18 | + Read the output file to retrieve the full result. |
| 19 | + </agent-notification> |
| 20 | +``` |
| 21 | + |
| 22 | + |
| 23 | +``` |
| 24 | +⏺ Based on the domain we've discussed, here's how I see the Ash resources: |
| 25 | +
|
| 26 | + # The source text being recorded |
| 27 | + Script |
| 28 | + attributes: |
| 29 | + - title: string |
| 30 | + - source_path: string (original file) |
| 31 | +
|
| 32 | + relationships: |
| 33 | + - has_many :segments |
| 34 | +
|
| 35 | + calculations: |
| 36 | + - progress (% of segments with takes) |
| 37 | + - duration_estimate (sum of take durations) |
| 38 | +
|
| 39 | +
|
| 40 | + # A sentence - the atomic unit of work |
| 41 | + Segment |
| 42 | + attributes: |
| 43 | + - index: integer (order in script) |
| 44 | + - text: string |
| 45 | + - silence_after_ms: integer (explicit gap before next, nil = natural) |
| 46 | + - notes: string (optional) |
| 47 | +
|
| 48 | + relationships: |
| 49 | + - belongs_to :script |
| 50 | + - has_many :takes |
| 51 | + - belongs_to :chosen_take (manually selected final) |
| 52 | +
|
| 53 | + calculations: |
| 54 | + - status (:unrecorded | :has_takes | :finalized) |
| 55 | + - latest_take |
| 56 | +
|
| 57 | +
|
| 58 | + # One recording attempt of a segment |
| 59 | + Take |
| 60 | + attributes: |
| 61 | + - take_number: integer (1, 2, 3... for this segment) |
| 62 | + - audio_file: string (path) |
| 63 | + - duration_ms: integer |
| 64 | + - recorded_at: utc_datetime |
| 65 | + - shadow_run_id: string (groups takes from same continuous recording) |
| 66 | +
|
| 67 | + relationships: |
| 68 | + - belongs_to :segment |
| 69 | +
|
| 70 | +
|
| 71 | + # Runtime recording state (might be GenServer-backed rather than persisted) |
| 72 | + Session |
| 73 | + attributes: |
| 74 | + - state: atom (:idle | :ready | :recording) |
| 75 | + - current_segment_index: integer |
| 76 | + - session_dir: string (where files go) |
| 77 | + - current_shadow_run_id: string |
| 78 | +
|
| 79 | + relationships: |
| 80 | + - belongs_to :script |
| 81 | +
|
| 82 | + actions: |
| 83 | + - :start_recording |
| 84 | + - :stop_recording |
| 85 | + - :advance (save take, move to next segment, continue) |
| 86 | + - :retake (save take, stay on segment, new shadow run) |
| 87 | + - :mark_silence (flag silence_after on current segment) |
| 88 | + - :pause |
| 89 | +``` |
0 commit comments