Adapt lint-lessons relay for os-aidd-lint hook output #518

Open
opened 2026-08-26 21:33:49 +00:00 by jared · 0 comments
Owner

Context

The lint-lessons mechanism (LessonLibrary + LessonRelay, built in os-sdlc per the 2026-08-26 design session) appends teaching context per tripped cop to gate output, deduped per dispatch. os-aidd-lint needs the same at its PostToolUse hook output seam. The classes are host-agnostic by design; only the adapter differs.

Tasks

  • Reuse LessonLibrary/LessonRelay (decide: shared lib vs copy — record the choice)
  • Source seen_keys from os-aidd-lint session state under .cc-os/aidd-lint/ (its analog of the per-dispatch violations DB)
  • Convention directory analogous to .sdlc/lint-lessons/ for aidd cop lessons
  • Append lessons block below Tier-1 findings in hook output, once per cop per session

Acceptance criteria

  • First trip of a cop in a session injects the lesson; later trips inject a one-line reminder
  • Missing lesson file or directory degrades to current behavior exactly

Origin

  • Trigger: lint-lessons design session 2026-08-26; user directed the plumbing be set up for both os-sdlc and os-aidd with a common adapter
  • Improvised this session: none
  • Chain: aidd cops relay offenses without teaching context ← lesson relay built only at the os-sdlc gate seam first ← DESIGN (os-sdlc lesson-relay implementation, this session's worktree branch)
  • Root candidate: this ticket
## Context The lint-lessons mechanism (LessonLibrary + LessonRelay, built in os-sdlc per the 2026-08-26 design session) appends teaching context per tripped cop to gate output, deduped per dispatch. os-aidd-lint needs the same at its PostToolUse hook output seam. The classes are host-agnostic by design; only the adapter differs. ## Tasks - [ ] Reuse LessonLibrary/LessonRelay (decide: shared lib vs copy — record the choice) - [ ] Source seen_keys from os-aidd-lint session state under .cc-os/aidd-lint/ (its analog of the per-dispatch violations DB) - [ ] Convention directory analogous to .sdlc/lint-lessons/ for aidd cop lessons - [ ] Append lessons block below Tier-1 findings in hook output, once per cop per session ## Acceptance criteria - [ ] First trip of a cop in a session injects the lesson; later trips inject a one-line reminder - [ ] Missing lesson file or directory degrades to current behavior exactly ## Origin - Trigger: lint-lessons design session 2026-08-26; user directed the plumbing be set up for both os-sdlc and os-aidd with a common adapter - Improvised this session: none - Chain: aidd cops relay offenses without teaching context ← lesson relay built only at the os-sdlc gate seam first ← DESIGN (os-sdlc lesson-relay implementation, this session's worktree branch) - Root candidate: this ticket
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#518
No description provided.