Add sophia-core audit v3 (trajectory, ethics, causal memory) plus CLI/tools, schemas, and tests#52
Open
pdxvoiceteacher wants to merge 1 commit intomasterfrom
Conversation
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.
Motivation
sophia-corepackage implementing advanced Sophia audit features (v2->v3) including trajectory-phase checks, ethical-symmetry scoring, and a causal-memory kernel with drift detection so audits can monitor longitudinal coherence and surface governance signals.Description
sophia-corePython package (src/sophia_core) withaudit.py,causal_memory.py,ethics.py,trajectory_monitor.py,tel.py,version.py, and__init__.pyimplementing v2/v3 audit flows, kernel update/detect logic, ethics computation, trajectory phase evaluation, and TEL hooks.sophia-core/config/audit_config.json,sophia-core/config/trajectories/psi_lambda_bounds.json,schema/sophia_audit_v2.schema.json, andschema/sophia_audit_v3.schema.json, and extendschema/telemetry/telemetry_run.schema.jsonandschema/submission.schema.jsonto support v3 fields and opt-in audit flags.tools/telemetry/sophia_audit.pyto detect and callsophia_core(v2/v3/basic) and add flags--calibrate-trajectories,--ethics-check,--memory-aware,--blockchain-commit, and--audit-sophia; addtools/telemetry/blockchain_anchor.pyto anchor reports to a ledger; updatetools/telemetry/ingest_submission.pyto opt-in runs via submission config.sophia-core/pyproject.toml, packageREADME.md, overlayREADME.mdreplacement, and new unit teststests/sophia_core/test_audit_v2.pyandtests/sophia_core/test_audit_v3.pythat exercise history/trend detection, contradiction detection, trajectory/ethics checks, kernel update, and drift detection.Testing
python -m pytest -q tests/sophia_core/test_audit_v3.pywhich completed with2 passedindicating the v3 trajectory/ethics and memory-aware scenarios exercised in the tests succeeded.run_audit_v3integration with the newcausal_memory,trajectory_monitor, andethicsmodules and succeeded.pytestinvocation above.Codex Task