How sexysexy0/public-matters works
Public-Matters combines Solidity governance and accountability contracts with operational JavaScript utilities. The clearest sampled runtime flow is a health check recording agent-performance metrics to a local append-only log; separate scripts record governance risks and query an on-chain consciousness ledger through an RPC provider. The README also describes security guardrails and automated health checks, but their implementation wiring is not shown in the excerpts. Contract capabilities are represented as subsystems from the tree, without inferred call relationships.
Main entry points: export_consciousness.js Ledger Query · healthCheck.js Health Check · agentPerformance.js Performance Tracking · governanceRiskTracker.js Risk Tracker
Components 20
Operations
- Health Check
scripts/healthCheck.js - Performance Tracking
utils/agentPerformance.js - Performance Log
- Risk Tracker
scripts/governanceRiskTracker.js - Risk Log
- Ledger Query
script/export_consciousness.js - Security Guardrails
.github/workflows/security.yml
Governance Contracts
- AI Governance
src/AIAgentRegistry.sol - Decision Auditing
src/AIDecisionAudit.sol - Action Guardrails
src/GovernedActionGate.sol - Accountability
src/AccountabilityArc.sol - Transparency
src/TransparencyLedger.sol
Community Contracts
- Community DAO
contracts/community/CommunityDAO.sol - Resource Stewardship
contracts/community/ResourceStewardshipEscrow.sol
Specialized Contracts
- Consciousness Ledger
src/OperatorConsciousnessLedger.sol - Prediction Markets
contracts/prediction/FairLiquidityPool.sol - Research Registry
contracts/neuroscience/StudyDesignRegistry.sol - Energy Resilience
contracts/EnergyResilience.sol
Other components
- Operator
- Ethereum RPC
Connections 8
- Operator → Health Check: runs
scripts/healthCheck.js - Health Check → Performance Tracking: records metrics
scripts/healthCheck.js - Performance Tracking → Performance Log: appends records
utils/agentPerformance.js - Operator → Risk Tracker: records risks
- Risk Tracker → Risk Log: appends records
scripts/governanceRiskTracker.js - Operator → Ledger Query: runs query
- Ledger Query → Ethereum RPC: queries via
script/export_consciousness.js - Ledger Query → Consciousness Ledger: reads log count
script/export_consciousness.js