Skip to content

Commitment pattern miner (patterns over time) - #17

Merged
ssethia2 merged 1 commit into
mainfrom
ss/commitment-patterns
Jun 17, 2026
Merged

Commitment pattern miner (patterns over time)#17
ssethia2 merged 1 commit into
mainfrom
ss/commitment-patterns

Conversation

@ssethia2

Copy link
Copy Markdown
Owner

First "patterns over time" layer — and the high-signal one: deterministic mining of the commitments history (no fuzzy LLM inference), squarely on the "nothing slips" mission.

Audit result (what the DB records today)

commitments has created_at, due_date, completed_at, status, who, kind, recurring. Enough for: overdue-open detection, late-completion rate, and who/kind concentration. Not enough (yet) for reschedule-frequency or per-occurrence recurring on-time rate — those need a commitment_events log (deferred; can't mine history you didn't record).

What's here

  • commitment_patterns(today) — pure analyzer → overdue list (sorted, with days-overdue), late-completion rate, overdue-by-who / by-kind, and a findings list of human sentences (only notable ones).
  • analyze_commitments tool — owner-only (correctly absent from the guest toolset); prompt steers "how am I doing / what keeps slipping" to it. Verified on live data — surfaced a real overdue item.
  • 2 tests (overdue concentration + late detection; clean slate → no findings). 227 pass.

Next (optional): a commitment_events log to unlock reschedule/recurring-slip patterns; a proactive weekly surfacing; and the softer weekly-reflection-over-memory layer.

🤖 Generated with Claude Code

First "patterns over time" layer — deterministic mining of the commitments table (no LLM):
what's slipping (open + past due), where it concentrates (which people/kinds), and how
often completed items finished late. Directly serves the "nothing slips" mission.

- commitment_patterns(today): pure analyzer over existing columns (created_at/due_date/
  completed_at/status/who/kind) → overdue list, late-completion rate, who/kind concentration,
  and a `findings` list of human sentences (only notable ones).
- analyze_commitments tool: owner-only (NOT in the guest toolset); prompt steers "how am I
  doing / what keeps slipping" to it. Verified live: surfaces a real overdue item.
- 2 tests (overdue concentration + late detection; clean slate → no findings). 227 pass.

Audit note: this mines what's recorded today. Richer patterns (reschedule frequency,
per-occurrence recurring on-time rate) would need a commitment_events log — deferred, since
you can't mine history you didn't record; worth adding when we want those.

Assisted-by: Claude Code (Opus 4.8)
@ssethia2
ssethia2 merged commit 901a36c into main Jun 17, 2026
1 check passed
@ssethia2
ssethia2 deleted the ss/commitment-patterns branch June 17, 2026 00:18
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