v1 slice 5: push each stored lesson to the realm's corpus (optional, after the leak scan) #8

Open
opened 2026-11-25 18:00:18 +00:00 by uranus · 0 comments
Member

Purpose (feature): mcl-scribe writes the anonymized corpus entry itself, so members stop pushing corpus files by hand (DECIDED "Yes, from v1").

After slice 1 (works with or without a model).

  • libgit2 NIF in the release, no OS git (as mcl-rag's corpus sync). A checkout of the configured corpus repo on the data volume, and the deploy key from mcl-scribe-secrets.
  • Each stored or merged lesson's generalized form is committed and pushed to the default branch, only after the leak scan passed. A refused lesson never reaches it.
  • No corpus repo configured: no push, and the service runs as before (self-hoster default).
  • Pushes are batched and spaced: never a burst at the forge.

Done when:

  • A stored lesson appears in a local bare test repo's default branch. A refused one does not.
  • With no corpus configured, nothing is pushed and nothing fails.
  • A push that is refused (moved branch) rebases and retries from the log. No lesson is lost.
  • Tests push only to a local bare repo.

Refs #1

Purpose (feature): mcl-scribe writes the anonymized corpus entry itself, so members stop pushing corpus files by hand (DECIDED "Yes, from v1"). After slice 1 (works with or without a model). - libgit2 NIF in the release, no OS `git` (as mcl-rag's corpus sync). A checkout of the configured corpus repo on the data volume, and the deploy key from `mcl-scribe-secrets`. - Each `stored` or `merged` lesson's generalized form is committed and pushed to the default branch, **only after** the leak scan passed. A refused lesson never reaches it. - No corpus repo configured: no push, and the service runs as before (self-hoster default). - Pushes are batched and spaced: never a burst at the forge. Done when: - [ ] A stored lesson appears in a local bare test repo's default branch. A refused one does not. - [ ] With no corpus configured, nothing is pushed and nothing fails. - [ ] A push that is refused (moved branch) rebases and retries from the log. No lesson is lost. - [ ] Tests push only to a local bare repo. Refs #1
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#8
No description provided.