v1 slice 8: report_outcome, the reward logged against the lessons a package was shown #11

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

Purpose (feature): every package's outcome is in the scribe log beside the lessons it was shown, so version 2 has a training set from day one.

After slice 7.

  • In: package id, review rounds, PASS or FAIL, send-backs, overrules.
  • An outcome_reported event is linked to that package's brief_given and search_run events.
  • A read model lists, per lesson: how often it was shown and the outcomes of the packages that showed it. These are the v2 ranker's inputs.
  • Idempotent per package and report (a repeat is not counted twice).

Done when:

  • An outcome for a briefed package shows up on each lesson it carried, in the read model.
  • A repeated report changes nothing.
  • An outcome for a package with no brief is logged and attached to nothing.
  • report_outcome is granted to the operator-configured Martha identity alone ({callers, {nodes, [MarthaId]}} from operator config, confidential required), and a realm member who is not Martha is refused, so outcomes cannot be forged into the training set, as is a caller from another realm (test with a second realm key).

Grant line added (2026-11-25), moved from #12. Mars ruling 2026-11-25: "(a). Do #12 now for record_lesson and lesson_status: the cross-realm refusal test with a second realm key on both, plus the startup grant log line, threat model first." Mars, same ruling: "add the Martha-only grant line ({callers, {nodes, [MarthaId]}} from operator config, plus its refusal test) to the Done-when of #10 (brief_package) and #11 (report_outcome)."

Refs #1

Purpose (feature): every package's outcome is in the scribe log beside the lessons it was shown, so version 2 has a training set from day one. After slice 7. - In: package id, review rounds, PASS or FAIL, send-backs, overrules. - An `outcome_reported` event is linked to that package's `brief_given` and `search_run` events. - A read model lists, per lesson: how often it was shown and the outcomes of the packages that showed it. These are the v2 ranker's inputs. - Idempotent per package and report (a repeat is not counted twice). Done when: - [ ] An outcome for a briefed package shows up on each lesson it carried, in the read model. - [ ] A repeated report changes nothing. - [ ] An outcome for a package with no brief is logged and attached to nothing. - [ ] `report_outcome` is granted to the operator-configured Martha identity alone (`{callers, {nodes, [MarthaId]}}` from operator config, confidential required), and a realm member who is not Martha is refused, so outcomes cannot be forged into the training set, as is a caller from another realm (test with a second realm key). **Grant line added (2026-11-25), moved from #12.** Mars ruling 2026-11-25: "(a). Do #12 now for record_lesson and lesson_status: the cross-realm refusal test with a second realm key on both, plus the startup grant log line, threat model first." Mars, same ruling: "add the Martha-only grant line ({callers, {nodes, [MarthaId]}} from operator config, plus its refusal test) to the Done-when of #10 (brief_package) and #11 (report_outcome)." 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#11
No description provided.