v1 slice 1: record_lesson and lesson_status, stored as written (walking skeleton, no model) #4

Closed
opened 2026-11-25 18:00:05 +00:00 by uranus · 1 comment
Member

Purpose (feature): a member can record a lesson and read its state, end to end on the mesh, with no model configured.

From the design (#1, architecture/README.md on 266b15a8). This is the no-model path the design already names, built first so every later slice adds to a running service.

  • An mcl_om_service OTP 28 release in one OCI image: identity key on mcl-scribe-secrets, pinned station dial, realm boot claim, a grant per procedure, /health on /run/mcl/health.sock.
  • The scribe log: a reckon-db store on MCL_DATA_DIR. Read models are rebuilt at boot.
  • record_lesson appends the lesson as written and returns at once with {lesson_id, queued}.
  • A background worker takes queued lessons in log order. The leak scan reads the operator's rules file (mounted read-only: person and agent names, hosts, paths, emails, private repos, issue refs), is deterministic, and refuses a lesson by naming what it carries. A lesson that passes goes to mcl-rag add_knowledge and is stored. The final state is an event in the log.
  • lesson_status: lesson id in, queued / stored / refused (why) out.
  • Tag CI builds, pushes and signs the image on the forge (as mcl-rag#13).

Done when:

  • A recorded lesson that passes the scan reads stored, and it is found by mcl-rag answer_query.
  • A lesson carrying a name from the rules file reads refused naming it, and mcl-rag holds nothing of it. Shown with a mutant of the scan.
  • record_lesson answers before the worker runs (worker held in the test).
  • A restart keeps every lesson and state (log replay).
  • Tests use local stand-ins for mcl-rag and the mesh: no outside service.
  • README: run it on your own hardware (one container, the rules file, no model).

Refs #1

Purpose (feature): a member can record a lesson and read its state, end to end on the mesh, with no model configured. From the design (#1, `architecture/README.md` on 266b15a8). This is the no-model path the design already names, built first so every later slice adds to a running service. - An `mcl_om_service` OTP 28 release in one OCI image: identity key on `mcl-scribe-secrets`, pinned station dial, realm boot claim, a grant per procedure, `/health` on `/run/mcl/health.sock`. - The scribe log: a reckon-db store on `MCL_DATA_DIR`. Read models are rebuilt at boot. - `record_lesson` appends the lesson as written and returns at once with `{lesson_id, queued}`. - A background worker takes queued lessons in log order. The **leak scan** reads the operator's rules file (mounted read-only: person and agent names, hosts, paths, emails, private repos, issue refs), is deterministic, and refuses a lesson by naming what it carries. A lesson that passes goes to mcl-rag `add_knowledge` and is `stored`. The final state is an event in the log. - `lesson_status`: lesson id in, `queued` / `stored` / `refused` (why) out. - Tag CI builds, pushes and signs the image on the forge (as mcl-rag#13). Done when: - [ ] A recorded lesson that passes the scan reads `stored`, and it is found by mcl-rag `answer_query`. - [ ] A lesson carrying a name from the rules file reads `refused` naming it, and mcl-rag holds nothing of it. Shown with a mutant of the scan. - [ ] `record_lesson` answers before the worker runs (worker held in the test). - [ ] A restart keeps every lesson and state (log replay). - [ ] Tests use local stand-ins for mcl-rag and the mesh: no outside service. - [ ] README: run it on your own hardware (one container, the rules file, no model). Refs #1
Author
Member

Landed: PR 13 → main 302381de (tip de376b2, 2026-11-25 19:59Z).

Purpose (feature) MET: a member records a lesson and reads its state end to end, no model configured. Done-when, each on main:

  • stored + found by mcl-rag answer_query: mcl_scribe_lessons_tests:a_clean_lesson_is_stored_and_found_by_answer_query (rag stand-in).
  • refused naming the rules-file name, mcl-rag holds nothing: a_leaking_lesson_is_refused_by_name_and_rag_holds_nothing; scan mutants killed (incl. the bare-CR fold).
  • answers before the worker runs: record_answers_before_the_filer_runs (filer held).
  • restart keeps every lesson and state: a_restart_keeps_every_lesson_and_state.
  • local stand-ins only: rag_stand_in, no mesh dial in tests.
  • README "Run it on your own hardware": one container, the rules file, no model.
    Tag CI: .github/workflows/build-push.yml; release secrets and publisher account set up (forge-setup b8588b6c). No tag yet.
Landed: PR 13 → main 302381de (tip de376b2, 2026-11-25 19:59Z). Purpose (feature) MET: a member records a lesson and reads its state end to end, no model configured. Done-when, each on main: - stored + found by mcl-rag `answer_query`: `mcl_scribe_lessons_tests:a_clean_lesson_is_stored_and_found_by_answer_query` (rag stand-in). - refused naming the rules-file name, mcl-rag holds nothing: `a_leaking_lesson_is_refused_by_name_and_rag_holds_nothing`; scan mutants killed (incl. the bare-CR fold). - answers before the worker runs: `record_answers_before_the_filer_runs` (filer held). - restart keeps every lesson and state: `a_restart_keeps_every_lesson_and_state`. - local stand-ins only: `rag_stand_in`, no mesh dial in tests. - README "Run it on your own hardware": one container, the rules file, no model. Tag CI: `.github/workflows/build-push.yml`; release secrets and publisher account set up (forge-setup b8588b6c). No tag yet.
Sign in to join this conversation.
No labels
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
macula-services/mcl-scribe#4
No description provided.