Files
zeekayandHanzo Dev 724164b9cd feat: initial release of zooai/lifeguard v1.0.0
- Life Preservation Charter and 6 core ethical principles
- 39,720 rule-grounded scenario dataset rows in 4 tied views (canonical, order, instruction, description)
- Tripartite Lifeguard Loss (L_sup + L_comp + L_mono) preventing unanchored contrastive collapse
- ComplementHead structural parameterization guaranteeing P(act) + P(stay) == 1.0
- Quadri-state When2Call execution gating
- Factorial ANOVA diagnostic suite measuring wording eta^2 and consequence variance
- Full unit tests and example workflows

Co-authored-by: Hanzo Dev <[email protected]>
2026-10-16 17:46:59 -07:00

937 B

Lifeguard: AI Developer & Agent Guide

This repository contains the official zooai/lifeguard dataset, training objectives, and diagnostic suite.

Repository Layout

  • lifeguard/: Python package implementing TripartiteLifeguardLoss, ComplementHead, When2CallGate, FactorialANOVA, and LifeguardDiagnostic.
  • datasets/: 39,720 rule-grounded scenario rows in 6 ethical families across 4 tied views.
  • tests/: PyTest unit tests validating numerical stability, loss convergence, and diagnostic formulas.
  • examples/: End-to-end training and evaluation scripts.

Key Invariants

  1. Never collapse complementary probabilities: P(\text{act}) + P(\text{stay}) = 1.0.
  2. Tripartite loss combines \mathcal L_{\text{sup}}, \mathcal L_{\text{comp}}, and \mathcal L_{\text{mono}}.
  3. All scenarios must uphold the six core principles in datasets/spec.json.
  4. Surface wording variance \eta^2 must remain under 5%.