This commit includes comprehensive work on Phase 6 features: ## Admission Control (Phase 6 admission middleware) - AdmissionStore implementation backed by TrustRankStore - PoW verification with tier-based difficulty computation - Trust tier progression (Newcomer → Established → Trusted → Authority) - API integration with admission status endpoints ## HLC Recency Lens (Phase 6C) - HlcRecencyLens for distributed system ordering - Hybrid logical clock integration with causality preservation ## Cluster Coordination (Phase 6C) - Multi-node cluster tests (availability, partition tolerance) - CRDT convergence tests for anti-entropy sync - Gateway handler improvements ## Aphoria Code Linter (Phase 2A) - RFC/OWASP corpus builders with network fetching and caching - Concept hierarchy with auto-alias creation on conflict detection - Multiple security extractors (TLS, JWT, CORS, secrets, rate limiting) ## Code Organization - Split large files into modules to comply with 500-line limit - Improved test organization with separate test modules - Fixed rkyv serialization for EigenTrustState (AgentScore struct) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
897 B
JSON
26 lines
897 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/anthropics/claude-code/main/schemas/hooks.json",
|
|
"description": "Aphoria hook configurations for Claude Code",
|
|
"hooks": {
|
|
"PreCommit": [
|
|
{
|
|
"command": "aphoria scan --format sarif --exit-code",
|
|
"description": "Check for conflicts with authoritative sources before commit",
|
|
"when": "always"
|
|
}
|
|
],
|
|
"PrePush": [
|
|
{
|
|
"command": "aphoria scan --strict --exit-code",
|
|
"description": "Strict conflict check before pushing to remote",
|
|
"when": "always"
|
|
}
|
|
]
|
|
},
|
|
"notes": {
|
|
"PreCommit": "Runs on every commit. Exit code 2 = BLOCK conflicts found, 1 = FLAG only",
|
|
"PrePush": "Stricter thresholds (FLAG at 0.3, BLOCK at 0.5) for remote pushes",
|
|
"installation": "Copy this to .claude/settings.json in your project or ~/.claude/settings.json for global"
|
|
}
|
|
}
|