Align reference architecture with P.A.I.H.I. and add a live PAIHI Scorer#1
Merged
Merged
Conversation
- Reframe the five architectural commitments explicitly around AltmanAI's P.A.I.H.I. framework (Proof, Alignment, Integrity, Humanity, Impact) instead of a separate, competing naming scheme. - Add src/human_first_ai/paihi: a PAIHIScorer that computes a real 0-100 score per dimension from a completed Orchestrator run, not just a cosmetic relabel. - Wire Orchestrator to track RunRecords (decision, checkpoint offered/ honored, completed) so the scorer has real signal to work with. - Update demo.py to print a live P.A.I.H.I. Score at the end of the walkthrough. - Update README and docs/ARCHITECTURE.md to document the scorer and the P.A.I.H.I. mapping. - Add tests/test_paihi_score.py (5 new tests covering clean runs, denied boundaries, honored checkpoints, and unconsented long-term memory). - All 20 tests passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Authorized by Blake Hunter Altman — ALL CLEAR FOR IMPACT (2026-07-08).
What this does
This repo already had a real, clean, working reference implementation — orchestrator, values engine, memory store, transparency log, tests, docs. But it defined its own five-principle framework ("Consent over assumption", "Values as code, not vibes", etc.) instead of AltmanAI's actual P.A.I.H.I. framework (Proof, Alignment, Integrity, Humanity, Impact) — a brand collision between two competing "what is human-first AI" definitions under the same org.
This PR:
human_first_ai.paihi.PAIHIScorer— computes a real 0-100 score per P.A.I.H.I. dimension from a completed pipeline run, so the framework is operational code, not just a labelOrchestratorto trackRunRecords (decision, checkpoint offered/honored, completed) so the scorer has real signaldemo.pyto print a live P.A.I.H.I. Score at the end of the walkthroughVerification
No new repo created — consolidating into this existing one to avoid further fragmentation across the org (human-first-ai / altmanai-sdk / PAIHI-Portables already overlap; flagged separately for a future consolidation pass).