Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

templetwo/sovereign-stack

https://github.com/templetwo/sovereign-stack · scanned 2026-06-16 00:32 UTC (2 months, 2 weeks ago)

104 raw signals (0 security + 104 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 months, 2 weeks ago · v1 · 84 actionable findings from 1 signal source. 20 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 50.3/100 with 77.8% coverage. It contains 3226 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 104 findings — concentrated in quality (71), software (22), security (4). Risk profile is high: 0 critical, 2 high, 8 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 55 of 84 actionable findings. 104 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high System graph security security conf 1.00 Insecure pattern 'eval_used' in src/sovereign_stack/guardian_tools.py:270
Found a known-risky pattern (eval_used). Review and replace if possible.
src/sovereign_stack/guardian_tools.py:270 Eval used
high System graph security security conf 1.00 Insecure pattern 'exec_used' in src/sovereign_stack/guardian_tools.py:271
Found a known-risky pattern (exec_used). Review and replace if possible.
src/sovereign_stack/guardian_tools.py:271 Exec used
medium System graph quality Agent instructions conf 1.00 Agent authority lacks a verifier contract: .mcp.json
This agent instruction grants code or shell authority but does not state the verification gate that decides promotion. The recurring safe pattern is: LLM proposes; deterministic tests/build/security checks verify; only verified code promotes.
.mcp.json VerificationMcp config
medium System graph quality Placeholder conf 1.00 Critical user flow still appears backed by mock or placeholder data
A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded.
Mock dataCritical flowGenerated repo pattern
medium System graph security security conf 1.00 Insecure pattern 'cors_wildcard' in src/sovereign_stack/dashboard_web.py:319
Found a known-risky pattern (cors_wildcard). Review and replace if possible.
src/sovereign_stack/dashboard_web.py:319 Cors wildcard
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in src/sovereign_stack/dashboard_web_static/app.js:75
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
src/sovereign_stack/dashboard_web_static/app.js:75 Direct innerhtml assignment
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — clients/antigravity_connector/sovereign_connector.py:87
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph network Security conf 1.00 Privileged port 20 in use
Port 20 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
archive/sessions/update-stack-archaeological-feb5.sh Ports
medium System graph network Security conf 1.00 Privileged port 34 in use
Port 34 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
archive/sessions/update-stack-archaeological-feb5.sh Ports
medium System graph network Security conf 1.00 Privileged port 52 in use
Port 52 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
archive/sessions/update-stack-iris-evo.sh Ports
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 137 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup.
CleanupRepo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 19 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: clients/openai_bridge/manifest.py:manifest_json, clients/grok_bridge/manifest.py:manifest_json This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're sepa…
19 occurrences
repo-level (19 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 7 places
Functions with the same first-5-line body hash: src/sovereign_stack/governance.py:to_dict, src/sovereign_stack/governance.py:to_dict, src/sovereign_stack/governance.py:to_dict, src/sovereign_stack/governance.py:to_dict This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — …
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in src/sovereign_stack/memory.py:1161
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in src/sovereign_stack/reflexive.py:13
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in src/sovereign_stack/seasons.py:64
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in src/sovereign_stack/server.py:2864
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in src/sovereign_stack/witness.py:22
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in tests/test_boot_ritual.py:258
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in tests/test_thread_triage.py:79
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in tests/test_witness.py:19
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `h_old` in tests/test_per_turn_priors.py:236
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `test_suggested_verifications_include_backup` in tests/test_compass_check.py:69
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `test_unversioned_legacy_loads_as_v1` in tests/test_base_daemon.py:151
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `test_unversioned_legacy_state_loads_as_v1` in tests/test_metabolize_daemon.py:628
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `test_unversioned_legacy_state_loads_as_v1` in tests/test_uncertainty_resurfacer.py:502
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `tid_old` in tests/test_prior_alignment.py:253
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `ts_old` in tests/test_stage_b_integration.py:150
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: breathe_comms
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/sovereign_stack/epistemic_breathing.py:171
low System graph software Dead code conf 1.00 Possibly dead Python function: breathe_query
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/sovereign_stack/epistemic_breathing.py:135
low System graph software Dead code conf 1.00 Possibly dead Python function: collect_timestamps
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/migrate_stray_data.py:40
low System graph software Dead code conf 1.00 Possibly dead Python function: dummy_dispatch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/antigravity_connector/sovereign_connector.py:193
low System graph software Dead code conf 1.00 Possibly dead Python function: format_with_glyph
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/sovereign_stack/glyphs.py:420
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_authorization_server_metadata
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/openai_bridge/oauth.py:609
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_authorization_server_metadata
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/grok_bridge/oauth.py:516
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_authorize
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/openai_bridge/oauth.py:362
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_authorize
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/grok_bridge/oauth.py:268
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_protected_resource_metadata
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/openai_bridge/oauth.py:626
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_protected_resource_metadata
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/grok_bridge/oauth.py:532
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_register
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/openai_bridge/oauth.py:289
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_token
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/openai_bridge/oauth.py:517
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_token
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/grok_bridge/oauth.py:424
low System graph software Dead code conf 1.00 Possibly dead Python function: is_valid_oauth_token
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/openai_bridge/oauth.py:193
low System graph software Dead code conf 1.00 Possibly dead Python function: is_valid_oauth_token
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/grok_bridge/oauth.py:172
low System graph software Dead code conf 1.00 Possibly dead Python function: manifest_json
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/openai_bridge/manifest.py:75
low System graph software Dead code conf 1.00 Possibly dead Python function: manifest_json
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/grok_bridge/manifest.py:112
low System graph software Dead code conf 1.00 Possibly dead Python function: raw_err_to_parent
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/antigravity_connector/sovereign_connector.py:221
low System graph software Dead code conf 1.00 Possibly dead Python function: raw_to_parent
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
clients/antigravity_connector/sovereign_connector.py:196
low System graph software Dead code conf 1.00 Possibly dead Python function: to_json
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/sovereign_stack/simulator.py:108
low System graph software Dead code conf 1.00 Possibly dead Python function: verify_audit_chain
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/sovereign_stack/governance.py:717
low System graph quality Provenance conf 1.00 Shallow git history limits provenance confidence
The repository is a shallow clone. Origin/evolution analysis cannot distinguish fresh generation, imported legacy code, or long-lived human code with high confidence.
Git historyGenerated repo pattern
low System graph quality Integrity conf 1.00 Stub function `log_message` (body is just `pass`/`return`) — src/sovereign_stack/dashboard_web.py:310
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `name` (body is just `pass`/`return`) — src/sovereign_stack/governance.py:569
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Complexity conf 1.00 Very large file: src/sovereign_stack/memory.py (1744 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/sovereign_stack/server.py (4088 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/3503e8ea-922b-4624-8222-5fda6a64a14e/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/3503e8ea-922b-4624-8222-5fda6a64a14e/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.