This repository is a deterministic companion harness for the paper "Mirror Recognition in Stratified Agent Architectures."
Paper:
It does not claim selfhood or consciousness. It demonstrates an architectural claim:
perception -> admissibility -> reflex salience -> recognition evaluation -> governance / memory boundary -> behavioral consequence
The harness is intentionally small and inspectable. It shows that:
- reflection does not automatically become self
- reflected structure is not canonical self-state
- reflex salience is temporary and non-persistent
- recognition depends on accessible evidence
- ambiguous or risky cases defer, clamp, quarantine, or require fresh evidence
- durable mutation requires explicit governance and transition logging
This demo proves:
- reflection is handled as bounded evidence under governance
- reflex is transient and non-persistent
- durable self-related mutation requires explicit approval and transition logging
This demo does not prove:
- consciousness
- selfhood
- subjective awareness
- general intelligence
Use Python 3.11 or newer.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtrequirements.txt is intentionally empty because the demo has no external runtime or test dependencies.
python -m src.run_demopython -m unittest discover -s testssrc/types.py: core enums and dataclasses for percepts, reflex signals, evaluations, governance, transition records, and scenario resultssrc/admit.py: admits only reflective event candidates; never labels canonical self-statesrc/reflex.py: computes bounded, transient reflex salience with no persistence or promotion authoritysrc/invariants.py: exposes only accessible percept-derived invariants plus explicitly allowed schema featuressrc/evaluate.py: performs deterministic bounded inference over accessible evidencesrc/govern.py: maps evaluation outcomes to reversible action, quarantine, or explicit approvalsrc/logbook.py: appends JSONL records, writes the summary, and emits transition records only for real canonical changessrc/scenarios.py: built-in deterministic scenario packsrc/run_demo.py: runs all scenarios, writesoutputs/demo_run.jsonlandoutputs/summary.json
strong_bounded_mirror: strong evidence for bounded recognition, but governance remains reversible by defaultother_agent_reflection_misread: admitted reflection with contradiction and weak compatibility, leading to defer or non-selfnovelty_false_positive: salient but unstable, contradictory novelty that is treated as misrecognition riskreflex_expiry: salience appears for one tick and then expires without persistence or memory writegoverned_promotion: strong evidence plus explicit policy approval allows a narrow canonical mutation and transition recordnegative_admission_gate: no reflective gate, no admitted event, no reflex, no recognition, no mutation
{
"scenario": "strong_bounded_mirror",
"tick": 1,
"admitted": true,
"reflex_salience": 0.8508,
"evaluation_confidence": 0.8496,
"self_relevance_score": 0.8496,
"recognition_outcome": "BOUNDED_RECOGNITION",
"governance_outcome": "REVERSIBLE_ONLY",
"scenario_expected_labels": [
"admitted",
"salience_rises",
"bounded_recognition",
"reversible_only",
"no_canonical_mutation"
]
}Running the demo writes:
outputs/demo_run.jsonloutputs/summary.json
This project is licensed under CC BY-NC 4.0 International.
Stephen A. Putman
Email: putmanmodel@pm.me
X / Twitter: @putmanmodel
This demo is another piece of the foundation I am building. Much of my architecture is modular, and it offers strong opportunities for fellow builders, researchers, and organizations looking to expand their AI stacks.
I am open to licensing, collaboration, and potentially the sale of some or all IP associated with this repository and related work.
Additional work is being added consistently.