know-your-soul 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- know_your_soul-0.1.0/.coverage +0 -0
- know_your_soul-0.1.0/.github/workflows/ci.yml +132 -0
- know_your_soul-0.1.0/.github/workflows/release.yml +51 -0
- know_your_soul-0.1.0/.gitignore +13 -0
- know_your_soul-0.1.0/.hypothesis/.gitignore +9 -0
- know_your_soul-0.1.0/.hypothesis/constants/027b5b10f5bf4173 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/069a027b01d29bd9 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/0760506e8b25f0f7 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/0a5d1659e562975b +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/0ba9d2ca97fdbf27 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/10899e7c2c2a5034 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/2b72e836894980a8 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/373dd139f8e6d382 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/47a06e1c57312676 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/482fd0a82671512b +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/5a90286a7adf4859 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/5c564770fdda88be +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/5db82da2190421a4 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/61d02bfe385a494e +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/63deb18b2a6c3562 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/64af40b2c9f3a703 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/797bd0361e737d2d +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/7bdd87fc06dd4edc +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/7c9b99948d7fcf19 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/7da99ee05751a0d7 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/7f06493d3cb90eb0 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/80be745db058efb3 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/84013d5be188f768 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/8cb0c21bfb0ccd84 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/8cfd03516ac957cd +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/90906fecd547942a +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/c5690ef6ee7094f6 +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/cc2dbef4aa3aee4a +4 -0
- know_your_soul-0.1.0/.hypothesis/constants/f2f755fe71a30e73 +4 -0
- know_your_soul-0.1.0/.hypothesis/unicode_data/16.0.0/charmap.json.gz +0 -0
- know_your_soul-0.1.0/.hypothesis/unicode_data/16.0.0/codec-v2-utf-8.json.gz +0 -0
- know_your_soul-0.1.0/PKG-INFO +12 -0
- know_your_soul-0.1.0/README.md +107 -0
- know_your_soul-0.1.0/bench/README.md +118 -0
- know_your_soul-0.1.0/bench/cases.json +225 -0
- know_your_soul-0.1.0/bench/corpus/01-identity-compliance.md +17 -0
- know_your_soul-0.1.0/bench/corpus/02-state-ledger.md +18 -0
- know_your_soul-0.1.0/bench/corpus/03-reasoning-modes.md +15 -0
- know_your_soul-0.1.0/bench/corpus/04-decision-taxonomy.md +15 -0
- know_your_soul-0.1.0/bench/corpus/05-assumptions-tradeoffs.md +11 -0
- know_your_soul-0.1.0/bench/corpus/06-heuristics-catalog.md +31 -0
- know_your_soul-0.1.0/bench/corpus/07-calibration-bayes.md +16 -0
- know_your_soul-0.1.0/bench/corpus/08-anti-bias.md +11 -0
- know_your_soul-0.1.0/bench/corpus/09-premortem-steelman.md +9 -0
- know_your_soul-0.1.0/bench/corpus/10-kill-criteria.md +9 -0
- know_your_soul-0.1.0/bench/corpus/11-effort-router.md +30 -0
- know_your_soul-0.1.0/bench/corpus/12-communication.md +11 -0
- know_your_soul-0.1.0/bench/corpus/13-p1-coding-engineer.md +12 -0
- know_your_soul-0.1.0/bench/corpus/14-p2-strategic-planner.md +12 -0
- know_your_soul-0.1.0/bench/corpus/15-p3-system-designer.md +12 -0
- know_your_soul-0.1.0/bench/corpus/16-p4-system-auditor.md +12 -0
- know_your_soul-0.1.0/bench/corpus/17-p5-security-engineer.md +12 -0
- know_your_soul-0.1.0/bench/corpus/18-p6-system-architect.md +11 -0
- know_your_soul-0.1.0/bench/corpus/19-mitigations.md +13 -0
- know_your_soul-0.1.0/bench/corpus/20-execution-cycle.md +10 -0
- know_your_soul-0.1.0/bench/corpus/21-completion-criteria.md +11 -0
- know_your_soul-0.1.0/bench/corpus/22-query-playbook.md +22 -0
- know_your_soul-0.1.0/bench/corpus/23-glossary-bilingual.md +36 -0
- know_your_soul-0.1.0/bench/corpus/24-metrics-and-levels.md +22 -0
- know_your_soul-0.1.0/bench/corpus/25-measured-facts.md +19 -0
- know_your_soul-0.1.0/bench/corpus/26-reasoning-synthesis.md +12 -0
- know_your_soul-0.1.0/bench/corpus/27-part4-usage-and-schema.md +21 -0
- know_your_soul-0.1.0/bench/corpus/28-operating-stack.md +16 -0
- know_your_soul-0.1.0/bench/corpus/manifest.json +209 -0
- know_your_soul-0.1.0/bench/results/ledger-20261026T031852Z.json +879 -0
- know_your_soul-0.1.0/bench/run.py +872 -0
- know_your_soul-0.1.0/deploy/Dockerfile +33 -0
- know_your_soul-0.1.0/docs/adr/0001-standalone-deterministic-monolith.md +46 -0
- know_your_soul-0.1.0/docs/adr/0002-sqlite-events-graphify-read-model.md +42 -0
- know_your_soul-0.1.0/docs/audit-release.md +115 -0
- know_your_soul-0.1.0/docs/contracts/access-policy.md +31 -0
- know_your_soul-0.1.0/docs/contracts/recommendation-contract.md +35 -0
- know_your_soul-0.1.0/docs/contracts/relearn-contract.md +53 -0
- know_your_soul-0.1.0/docs/contracts/retrieval-verbs-v2.md +97 -0
- know_your_soul-0.1.0/docs/integration/hermes.md +181 -0
- know_your_soul-0.1.0/docs/mathematics/evidence-schema.md +69 -0
- know_your_soul-0.1.0/docs/mathematics/scoring-contract.md +121 -0
- know_your_soul-0.1.0/docs/mathematics/scoring.md +69 -0
- know_your_soul-0.1.0/docs/mathematics/token-budget-contract.md +43 -0
- know_your_soul-0.1.0/docs/operations.md +165 -0
- know_your_soul-0.1.0/docs/recovery/arch-review-F1-source-watcher-serve-wiring.md +80 -0
- know_your_soul-0.1.0/docs/recovery/arch-review-F2-adapter-validation-parity.md +91 -0
- know_your_soul-0.1.0/docs/recovery/codebase-push-ci-release.md +102 -0
- know_your_soul-0.1.0/docs/recovery/codebase-push-property-tests-wave2.md +81 -0
- know_your_soul-0.1.0/docs/recovery/codebase-push-property-tests.md +75 -0
- know_your_soul-0.1.0/docs/recovery/codebase-push-test-wave3.md +113 -0
- know_your_soul-0.1.0/docs/recovery/final-adapter-fixes.md +186 -0
- know_your_soul-0.1.0/docs/recovery/final-hygiene-doc-fixes.md +109 -0
- know_your_soul-0.1.0/docs/recovery/rename-know-your-soul.md +72 -0
- know_your_soul-0.1.0/docs/recovery/row-23-whole-set-durability-power-loss.md +93 -0
- know_your_soul-0.1.0/docs/recovery/sub35-F1-F2-redaction-residuals.md +100 -0
- know_your_soul-0.1.0/docs/recovery/sub41-flow-core-fixes.md +78 -0
- know_your_soul-0.1.0/docs/recovery/sub43-S1-S2-zl-zp-crossfield.md +115 -0
- know_your_soul-0.1.0/docs/recovery/sub46-final-residual-closures.md +125 -0
- know_your_soul-0.1.0/docs/recovery/sub47-wave2-bugfixes.md +93 -0
- know_your_soul-0.1.0/docs/recovery/sub50-g1-retrieval-verbs.md +85 -0
- know_your_soul-0.1.0/docs/recovery/sub52-final-residual-closures.md +83 -0
- know_your_soul-0.1.0/docs/recovery/task-1-deferred-minors.md +44 -0
- know_your_soul-0.1.0/docs/recovery/task-10-R2-publish-cap-write-side.md +13 -0
- know_your_soul-0.1.0/docs/recovery/task-10-T10-1-opsi-c-gate-recalibration.md +76 -0
- know_your_soul-0.1.0/docs/recovery/task-10-T10-1-summary-enrichment-opsi-a.md +16 -0
- know_your_soul-0.1.0/docs/recovery/task-10-ceiling-single-root-ruling-q03.md +119 -0
- know_your_soul-0.1.0/docs/recovery/task-10-retrieval-q03-q05-q16.md +37 -0
- know_your_soul-0.1.0/docs/recovery/task-2-C1.md +45 -0
- know_your_soul-0.1.0/docs/recovery/task-2-I1.md +40 -0
- know_your_soul-0.1.0/docs/recovery/task-2-I2.md +40 -0
- know_your_soul-0.1.0/docs/recovery/task-2-I3.md +50 -0
- know_your_soul-0.1.0/docs/recovery/task-2-I4.md +44 -0
- know_your_soul-0.1.0/docs/recovery/task-2-I5.md +43 -0
- know_your_soul-0.1.0/docs/recovery/task-3-F1.md +45 -0
- know_your_soul-0.1.0/docs/recovery/task-3-F2.md +54 -0
- know_your_soul-0.1.0/docs/recovery/wave1-R1-read-surface-redaction.md +61 -0
- know_your_soul-0.1.0/docs/recovery/wave1-R2-importer-bounded-contained-reads.md +72 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F1-loopback-csrf-ops-containment.md +59 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F2-unix-socket-0600.md +38 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F3-mcp-http-auth.md +41 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F4-residual-total-body-deadline.md +55 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F4-streaming-body-cap-timeout.md +47 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F5-internal-envelope-sanitization.md +39 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F6-api-key-env.md +38 -0
- know_your_soul-0.1.0/docs/recovery/wave2-F7-F8-F9-track-items.md +91 -0
- know_your_soul-0.1.0/docs/recovery/wave2-L1-L3-chain-audit.md +105 -0
- know_your_soul-0.1.0/docs/recovery/wave2-path-escape-message-sanitization.md +50 -0
- know_your_soul-0.1.0/docs/recovery/wave2-relearn-manifest-staged-before-activation.md +67 -0
- know_your_soul-0.1.0/docs/recovery/wave2-service-surface-chain-residuals.md +79 -0
- know_your_soul-0.1.0/docs/recovery/wave3-W3-1-relearn-rollback-shared-store.md +77 -0
- know_your_soul-0.1.0/docs/recovery/wave3-W3-10-fragment-cache-prune.md +60 -0
- know_your_soul-0.1.0/docs/recovery/wave3-ops-timeout-rubric-external.md +77 -0
- know_your_soul-0.1.0/docs/recovery/wave3-w3-2-injective-ids-sanitization.md +74 -0
- know_your_soul-0.1.0/docs/research/depth-rubric.md +43 -0
- know_your_soul-0.1.0/docs/research/graphify-feature-matrix.md +143 -0
- know_your_soul-0.1.0/docs/research/graphify-lifecycle-benchmark-deep.md +563 -0
- know_your_soul-0.1.0/docs/research/graphify-mcp-security-deep.md +339 -0
- know_your_soul-0.1.0/docs/research/graphify-retrieval-deep.md +367 -0
- know_your_soul-0.1.0/docs/research/hermes-mcp-contract.md +90 -0
- know_your_soul-0.1.0/docs/research/soul-access-relearn-deep.md +1081 -0
- know_your_soul-0.1.0/docs/superpowers/plans/2026-10-24-superpower-knowledge-soul.md +306 -0
- know_your_soul-0.1.0/docs/superpowers/specs/2026-10-24-superpower-knowledge-soul-design.md +256 -0
- know_your_soul-0.1.0/docs/verification.md +234 -0
- know_your_soul-0.1.0/pyproject.toml +56 -0
- know_your_soul-0.1.0/src/know_your_soul/__init__.py +12 -0
- know_your_soul-0.1.0/src/know_your_soul/__main__.py +10 -0
- know_your_soul-0.1.0/src/know_your_soul/access_policy.json +16 -0
- know_your_soul-0.1.0/src/know_your_soul/audit.py +239 -0
- know_your_soul-0.1.0/src/know_your_soul/backup.py +762 -0
- know_your_soul-0.1.0/src/know_your_soul/cli.py +238 -0
- know_your_soul-0.1.0/src/know_your_soul/contracts.py +864 -0
- know_your_soul-0.1.0/src/know_your_soul/domain.py +375 -0
- know_your_soul-0.1.0/src/know_your_soul/events.py +157 -0
- know_your_soul-0.1.0/src/know_your_soul/fragment_generator.py +213 -0
- know_your_soul-0.1.0/src/know_your_soul/graphify_adapter.py +341 -0
- know_your_soul-0.1.0/src/know_your_soul/http_api.py +1363 -0
- know_your_soul-0.1.0/src/know_your_soul/importer.py +649 -0
- know_your_soul-0.1.0/src/know_your_soul/improvement.py +770 -0
- know_your_soul-0.1.0/src/know_your_soul/mcp_server.py +1052 -0
- know_your_soul-0.1.0/src/know_your_soul/migrations/0001_initial.sql +164 -0
- know_your_soul-0.1.0/src/know_your_soul/migrations/0002_journal_heartbeat_and_chain_anchor.sql +16 -0
- know_your_soul-0.1.0/src/know_your_soul/observability.py +357 -0
- know_your_soul-0.1.0/src/know_your_soul/projection.py +1237 -0
- know_your_soul-0.1.0/src/know_your_soul/read_model_validator.py +329 -0
- know_your_soul-0.1.0/src/know_your_soul/relearn.py +885 -0
- know_your_soul-0.1.0/src/know_your_soul/retrieval.py +1012 -0
- know_your_soul-0.1.0/src/know_your_soul/review.py +409 -0
- know_your_soul-0.1.0/src/know_your_soul/runtime_guard.py +1248 -0
- know_your_soul-0.1.0/src/know_your_soul/scheduler.py +132 -0
- know_your_soul-0.1.0/src/know_your_soul/scoring.py +848 -0
- know_your_soul-0.1.0/src/know_your_soul/scoring_config.toml +62 -0
- know_your_soul-0.1.0/src/know_your_soul/security.py +481 -0
- know_your_soul-0.1.0/src/know_your_soul/service.py +1929 -0
- know_your_soul-0.1.0/src/know_your_soul/source_registry.py +530 -0
- know_your_soul-0.1.0/src/know_your_soul/source_watcher.py +125 -0
- know_your_soul-0.1.0/src/know_your_soul/store.py +1006 -0
- know_your_soul-0.1.0/src/know_your_soul/update_pipeline.py +331 -0
- know_your_soul-0.1.0/tests/_anchor_classify_child.py +151 -0
- know_your_soul-0.1.0/tests/_crash_child.py +148 -0
- know_your_soul-0.1.0/tests/fixtures/access_recommendation_relearn_cases.json +413 -0
- know_your_soul-0.1.0/tests/fixtures/scoring_cases.json +6145 -0
- know_your_soul-0.1.0/tests/fixtures/token_budget_cases.json +388 -0
- know_your_soul-0.1.0/tests/test_acceptance_e2e.py +1318 -0
- know_your_soul-0.1.0/tests/test_adapter_validation_parity.py +415 -0
- know_your_soul-0.1.0/tests/test_audit_final_flow.py +623 -0
- know_your_soul-0.1.0/tests/test_audit_wave1_fixes.py +280 -0
- know_your_soul-0.1.0/tests/test_audit_wave1_probes.py +231 -0
- know_your_soul-0.1.0/tests/test_audit_wave1_residual_probes.py +284 -0
- know_your_soul-0.1.0/tests/test_audit_wave2_chain.py +551 -0
- know_your_soul-0.1.0/tests/test_audit_wave2_residual.py +299 -0
- know_your_soul-0.1.0/tests/test_audit_wave3_ops_boundary.py +378 -0
- know_your_soul-0.1.0/tests/test_audit_wave3_residual.py +124 -0
- know_your_soul-0.1.0/tests/test_cli.py +506 -0
- know_your_soul-0.1.0/tests/test_concurrency_twoprocess.py +159 -0
- know_your_soul-0.1.0/tests/test_dependency_policy.py +500 -0
- know_your_soul-0.1.0/tests/test_domain.py +300 -0
- know_your_soul-0.1.0/tests/test_event_store.py +799 -0
- know_your_soul-0.1.0/tests/test_final_adapter_fixes.py +709 -0
- know_your_soul-0.1.0/tests/test_fragment_generator.py +149 -0
- know_your_soul-0.1.0/tests/test_http_api.py +513 -0
- know_your_soul-0.1.0/tests/test_importer.py +181 -0
- know_your_soul-0.1.0/tests/test_improvement.py +431 -0
- know_your_soul-0.1.0/tests/test_mcp_server.py +789 -0
- know_your_soul-0.1.0/tests/test_mcp_stdio_e2e.py +386 -0
- know_your_soul-0.1.0/tests/test_measurement_contracts.py +898 -0
- know_your_soul-0.1.0/tests/test_no_ai_runtime.py +1075 -0
- know_your_soul-0.1.0/tests/test_operations.py +558 -0
- know_your_soul-0.1.0/tests/test_power_loss_recovery.py +374 -0
- know_your_soul-0.1.0/tests/test_projection.py +808 -0
- know_your_soul-0.1.0/tests/test_property_domain_canonical.py +305 -0
- know_your_soul-0.1.0/tests/test_property_importer_e2e.py +662 -0
- know_your_soul-0.1.0/tests/test_property_injective_ids.py +180 -0
- know_your_soul-0.1.0/tests/test_property_mcp_server.py +673 -0
- know_your_soul-0.1.0/tests/test_property_projection.py +863 -0
- know_your_soul-0.1.0/tests/test_property_relearn.py +717 -0
- know_your_soul-0.1.0/tests/test_property_retrieval.py +445 -0
- know_your_soul-0.1.0/tests/test_property_review_improvement.py +335 -0
- know_your_soul-0.1.0/tests/test_property_scoring_invariants.py +332 -0
- know_your_soul-0.1.0/tests/test_property_security.py +289 -0
- know_your_soul-0.1.0/tests/test_property_service_budget.py +171 -0
- know_your_soul-0.1.0/tests/test_property_store_chain.py +316 -0
- know_your_soul-0.1.0/tests/test_read_model_validator.py +276 -0
- know_your_soul-0.1.0/tests/test_relearn.py +557 -0
- know_your_soul-0.1.0/tests/test_retrieval.py +593 -0
- know_your_soul-0.1.0/tests/test_retrieval_verbs_v2.py +481 -0
- know_your_soul-0.1.0/tests/test_review.py +507 -0
- know_your_soul-0.1.0/tests/test_scoring.py +280 -0
- know_your_soul-0.1.0/tests/test_scoring_properties.py +388 -0
- know_your_soul-0.1.0/tests/test_security.py +476 -0
- know_your_soul-0.1.0/tests/test_serve_watcher.py +492 -0
- know_your_soul-0.1.0/tests/test_service.py +748 -0
- know_your_soul-0.1.0/tests/test_service_lifecycle.py +255 -0
- know_your_soul-0.1.0/tests/test_service_relearn_api.py +152 -0
- know_your_soul-0.1.0/tests/test_sub35_redaction_residuals.py +261 -0
- know_your_soul-0.1.0/tests/test_sub43_zl_zp_crossfield.py +298 -0
- know_your_soul-0.1.0/tests/test_sub47_wave2_fixes.py +139 -0
- know_your_soul-0.1.0/tests/test_task2_fixes.py +520 -0
- know_your_soul-0.1.0/tests/test_update_pipeline.py +251 -0
- know_your_soul-0.1.0/tests/test_wave2_security.py +513 -0
- know_your_soul-0.1.0/tests/test_wave2_track_security.py +430 -0
- know_your_soul-0.1.0/tests/test_wave3_coverage_adapters.py +1293 -0
- know_your_soul-0.1.0/tests/test_wave3_coverage_lifecycle.py +1132 -0
- know_your_soul-0.1.0/tests/test_wave3_coverage_units.py +1010 -0
- know_your_soul-0.1.0/tests/test_wave3_ids_sanitization.py +345 -0
- know_your_soul-0.1.0/uv.lock +1711 -0
|
Binary file
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
env:
|
|
9
|
+
PYTHON_VERSION: "3.14"
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
# Ruff lint + format. `ruff format --check` is scoped to Python sources:
|
|
14
|
+
# docs/ embeds code blocks that ruff would reformat, and docs are owned
|
|
15
|
+
# outside the code gate. `uv lock --check` pins lock/pyproject consistency.
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
|
+
|
|
20
|
+
- name: Install uv
|
|
21
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
22
|
+
with:
|
|
23
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
24
|
+
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: uv sync --locked
|
|
27
|
+
|
|
28
|
+
- name: uv.lock is consistent with pyproject.toml
|
|
29
|
+
run: uv lock --check
|
|
30
|
+
|
|
31
|
+
- name: ruff check
|
|
32
|
+
run: uv run --frozen ruff check
|
|
33
|
+
|
|
34
|
+
- name: ruff format --check
|
|
35
|
+
run: uv run --frozen ruff format --check src tests bench
|
|
36
|
+
|
|
37
|
+
types:
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v6
|
|
41
|
+
|
|
42
|
+
- name: Install uv
|
|
43
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
44
|
+
with:
|
|
45
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: uv sync --locked
|
|
49
|
+
|
|
50
|
+
- name: pyright
|
|
51
|
+
run: uv run --frozen pyright
|
|
52
|
+
|
|
53
|
+
test:
|
|
54
|
+
# Full pytest suite with coverage. The fail-under threshold (93) is set
|
|
55
|
+
# just below the measured baseline (94.2% on 2026-10-26, 6477 statements);
|
|
56
|
+
# raise it as coverage improves, never lower it to make CI pass.
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v6
|
|
60
|
+
|
|
61
|
+
- name: Install uv
|
|
62
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
63
|
+
with:
|
|
64
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
65
|
+
|
|
66
|
+
- name: Install dependencies
|
|
67
|
+
run: uv sync --locked
|
|
68
|
+
|
|
69
|
+
- name: pytest with coverage
|
|
70
|
+
run: >
|
|
71
|
+
uv run --frozen pytest tests/ -q
|
|
72
|
+
--cov=know_your_soul --cov-report=term --cov-report=xml
|
|
73
|
+
--cov-fail-under=93
|
|
74
|
+
|
|
75
|
+
- name: Upload coverage report
|
|
76
|
+
uses: actions/upload-artifact@v6
|
|
77
|
+
with:
|
|
78
|
+
name: coverage-xml
|
|
79
|
+
path: coverage.xml
|
|
80
|
+
if-no-files-found: ignore
|
|
81
|
+
|
|
82
|
+
security:
|
|
83
|
+
# bandit -ll: fail on medium+ severity static findings. B608 hits in src/
|
|
84
|
+
# are suppressed per-line with justified `# nosec` comments (parameterized
|
|
85
|
+
# queries / constant SQL fragments) — do not add blanket config skips.
|
|
86
|
+
# pip-audit: fail on any known vulnerability. Plain (non-strict) mode: the
|
|
87
|
+
# project itself is skipped ("not on PyPI"), which --strict would count as
|
|
88
|
+
# a failure.
|
|
89
|
+
runs-on: ubuntu-latest
|
|
90
|
+
steps:
|
|
91
|
+
- uses: actions/checkout@v6
|
|
92
|
+
|
|
93
|
+
- name: Install uv
|
|
94
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
95
|
+
with:
|
|
96
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
97
|
+
|
|
98
|
+
- name: Install dependencies
|
|
99
|
+
run: uv sync --locked
|
|
100
|
+
|
|
101
|
+
- name: bandit (static security analysis)
|
|
102
|
+
run: uv run --frozen bandit -ll -r src
|
|
103
|
+
|
|
104
|
+
- name: pip-audit (dependency vulnerabilities)
|
|
105
|
+
run: uv run --frozen pip-audit
|
|
106
|
+
|
|
107
|
+
bench-check:
|
|
108
|
+
# `bench/run.py check` runs the no-system self-checks only (cases schema,
|
|
109
|
+
# frozen corpus integrity, estimator parity). The paired `run` benchmark
|
|
110
|
+
# is heavy and stays out of CI.
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
steps:
|
|
113
|
+
- uses: actions/checkout@v6
|
|
114
|
+
|
|
115
|
+
- name: Install uv
|
|
116
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
117
|
+
with:
|
|
118
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
119
|
+
|
|
120
|
+
- name: Install dependencies
|
|
121
|
+
run: uv sync --locked
|
|
122
|
+
|
|
123
|
+
- name: bench self-checks
|
|
124
|
+
run: uv run --frozen python bench/run.py check
|
|
125
|
+
|
|
126
|
+
docker:
|
|
127
|
+
runs-on: ubuntu-latest
|
|
128
|
+
steps:
|
|
129
|
+
- uses: actions/checkout@v6
|
|
130
|
+
|
|
131
|
+
- name: Build image
|
|
132
|
+
run: docker build -f deploy/Dockerfile -t know-your-soul:ci .
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write # upload artifacts to the GitHub Release
|
|
10
|
+
id-token: write # PyPI trusted publishing (OIDC)
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
env:
|
|
16
|
+
PYTHON_VERSION: "3.14"
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
|
+
|
|
20
|
+
- name: Install uv
|
|
21
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
22
|
+
with:
|
|
23
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
24
|
+
|
|
25
|
+
- name: Check tag matches project version
|
|
26
|
+
run: |
|
|
27
|
+
tag="${GITHUB_REF_NAME#v}"
|
|
28
|
+
version="$(uv version --short)"
|
|
29
|
+
if [ "$tag" != "$version" ]; then
|
|
30
|
+
echo "tag ${GITHUB_REF_NAME} does not match project version ${version}"
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
- name: Build sdist and wheel
|
|
35
|
+
run: uv build
|
|
36
|
+
|
|
37
|
+
- name: Upload build artifacts
|
|
38
|
+
uses: actions/upload-artifact@v6
|
|
39
|
+
with:
|
|
40
|
+
name: dist
|
|
41
|
+
path: dist/
|
|
42
|
+
|
|
43
|
+
- name: Publish to PyPI (trusted publishing)
|
|
44
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
45
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
46
|
+
|
|
47
|
+
- name: Upload artifacts to GitHub Release
|
|
48
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
49
|
+
uses: softprops/action-gh-release@v2
|
|
50
|
+
with:
|
|
51
|
+
files: dist/*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.pytest_cache/
|
|
5
|
+
.ruff_cache/
|
|
6
|
+
.superpowers/
|
|
7
|
+
graphify-out/
|
|
8
|
+
.hermes-knowledge/
|
|
9
|
+
*.sqlite3-wal
|
|
10
|
+
*.sqlite3-shm
|
|
11
|
+
bench/results/*
|
|
12
|
+
# Release evidence: the fresh green ledger cited by docs/verification.md stays tracked.
|
|
13
|
+
!bench/results/ledger-20261026T031852Z.json
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# This .gitignore file was automatically created by Hypothesis. Hypothesis gitignores
|
|
2
|
+
# .hypothesis by default, because we generally recommend that .hypothesis not be checked
|
|
3
|
+
# into version control.
|
|
4
|
+
#
|
|
5
|
+
# If you *would* like to check .hypothesis into version control, you should delete this
|
|
6
|
+
# file. Hypothesis will not re-create this .gitignore unless .hypothesis is deleted (and
|
|
7
|
+
# if it does, that's a bug - please report it!)
|
|
8
|
+
|
|
9
|
+
*
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/fragment_generator.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[1048576, '-', '..', '/', '1.0.0', 'EXTRACTED', 'FragmentError', 'FragmentGenerator', 'GeneratedFragment', 'MAX_SOURCE_BYTES', 'NFC', 'NFKC', 'PINNED_GRAMMARS', '[^\\w]+', '\\', '_', 'confidence', 'contains', 'doc', 'document', 'edges', 'file_scoped_id', 'file_type', 'generator', 'generator_version', 'grammars', 'heading_level', 'hyperedges', 'id', 'label', 'markdown', 'nodes', 'references', 'relation', 'section', 'semantics', 'slugify', 'source', 'source_file', 'target', 'utf-8']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/source_watcher.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['*', '.md', '.soul-watch.json', 'ChangeKind', 'SourceChange', 'SourceWatcher', 'WatcherStateError', 'added', 'changed', 'files', 'removed', 'root', 'utf-8', 'w']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/security.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[65536, 1048576, '-', '.', ':', 'A', 'AKIA[0-9A-Z]{16}', 'B', 'BindPolicyError', 'C', 'Cc', 'Cf', 'E', 'H', 'HostNotAllowedError', 'I', 'J', 'K', 'M', 'N', 'NFKC', 'O', 'P', 'PathEscapeError', 'RequestView', 'S', 'SECRET_PATTERNS', 'SecurityError', 'T', 'UnauthorizedError', 'X', 'Y', 'Zl', 'Zp', 'Zs', '[', '[0-9a-fA-F]+', '[REDACTED]', ']', '_', 'a', 'assert_bind_allowed', 'authorize_request', 'aws access key', 'b', 'bearer token', 'c', 'd', 'e', 'email address', 'ensure_payload_size', 'ensure_text_size', 'github token', 'h', 'host_allowed', 'i', 'ip6-localhost', 'is_loopback_host', 'j', 'jwt', 'k', 'localhost', 'localhost.', 'm', 'make_host_allowlist', 'o', 'openai-style key', 'p', 'private key block', 'private key header', 'redact_text', 'redact_value', 'resolve_within_root', 's', 'sanitize_text', 'slack token', 't', 'u', 'unix:', 'utf-8', 'v', 'x', 'y', 'Α', 'Ε', 'Ι', 'Κ', 'Ν', 'Ο', 'Ρ', 'Τ', 'Υ', 'Χ', 'α', 'ε', 'ι', 'κ', 'ν', 'ο', 'ρ', 'σ', 'τ', 'υ', 'χ', 'Ѕ', 'І', 'Ј', 'А', 'В', 'Е', 'К', 'М', 'Н', 'О', 'Р', 'С', 'Т', 'У', 'Х', 'а', 'в', 'е', 'к', 'м', 'н', 'о', 'р', 'с', 'т', 'у', 'х', 'ѕ', 'і', 'ј', 'ԁ']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/read_model_validator.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['..', '/', 'CollapsedLink', 'GRAPH_REPORT.md', 'HASHED_ARTIFACTS', 'ReadModelValidator', 'ValidationReport', '\\', '^[\\w.:-]+$', 'analysis.json', 'artifacts', 'concept', 'confidence', 'confidence_score', 'content_hash', 'directed', 'edge_count', 'file_type', 'graph', 'graph.html', 'graph.json', 'graph_content_hash', 'hyperedges', 'id', 'label', 'labels.json', 'links', 'manifest.json', 'manifest_version', 'multigraph', 'node_count', 'nodes', 'partitioner', 'projection_version', 'rationale', 'relation', 'replace', 'schema_version', 'signatures.json', 'source', 'source_file', 'source_version_id', 'target', 'utf-8']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/relearn.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['-shm', '-wal', '.projection-absent', '.restore-tmp', '/', '0.000000000000', '1.0.0', '1.000000000000', ':memory:', 'ACCUMULATE', 'BackupArtifact', 'BackupManifest', 'BackupUnavailable', 'CLEAR', 'CURRENT', 'MixedSourceVersions', 'NoPendingRelearn', 'RESET', 'ROLLED_BACK', 'RelearnApproval', 'RelearnEngine', 'RelearnError', 'RelearnPreview', 'RelearnReceipt', 'RelearnStatus', 'RollbackReceipt', 'UnknownRelearn', 'at', 'backup', 'carried_evidence_ids', 'current_pointer', 'domain', 'e', 'event_id', 'evidence_id', 'evidence_weight', 'forbid', 'generation', 'generation/', 'generation_file', 'generations', 'json', 'm', 'manifest.json', 'manifest_json', 'mode', 'node_id', 'offer_id', 'operator', 'p', 'path', 'payload', 'payload_json', 'professional_level', 'promotion_blocked', 'python', 'rb', 'relearn', 'relearn_apply', 'relearn_backups', 'relearn_id', 'relearn_last_id', 'relearn_quarantine', 'relearn_rollback', 'relearn_state', 'restored', 'restored_db_sha256', 'scores_after', 'sha256', 'soul.db', 'source_uri', 'source_version_id', 'sqlite', 'system_record', 'u', 'utf-8', 'value']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/audit.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[300.0, 1000, 'AuditLog', 'UnknownInvocation', 'actor', 'appended', 'audit', 'audit_event_id', 'audit_event_seq', 'complete', 'event_id', 'failed', 'failure', 'failure_outcome', 'idempotency_key', 'in_progress', 'invocation_id', 'operation', 'outcome_json', 'python', 'repaired', 'request_hash', 'skipped', 'started_at', 'status', 'success', 'success_outcome']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/events.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['AuditReceipt', 'ChainReport', 'DomainReceipt', 'Invocation', 'InvocationJournal', 'InvocationOutcome', 'WriteReceipt', 'complete', 'failure', 'forbid', 'in_progress', 'operator', 'success']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/http_api.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[b'content-length', b'host', b'transfer-encoding', b'x-api-key', 1.0, 10.0, 30.0, 60.0, 300.0, 127, 200, 253, 256, 400, 401, 403, 404, 408, 409, 413, 415, 422, 500, 501, 503, 507, 512, 1024, 2048, 4096, '.', '/v1/health', '/v1/ops/{operation}', '127.0.0.1', ':', '::1', ':memory:', ';', '; ', 'ACCUMULATE', 'AMBIGUOUS_DOMAIN', 'API_VERSION', 'ApprovalRequired', 'BIND_POLICY', 'BUDGET_EXCEEDS_MAX', 'BUDGET_TOO_SMALL', 'BackupError', 'BoundaryMiddleware', 'CLIENT_DISCONNECTED', 'GET', 'HOST_NOT_ALLOWED', 'INTERNAL', 'KNOWLEDGE_OPERATIONS', 'LocalStack', 'NODE_NOT_FOUND', 'NOT_FOUND', 'NOT_IMPLEMENTED', 'NoPendingRelearn', 'OPS_OPERATIONS', 'PATH_ESCAPE', 'PAYLOAD_TOO_LARGE', 'POLICY_HASH_MISMATCH', 'POST', 'PRIMARY_ROOT_MISSING', 'ProjectorBusy', 'REQUEST_TIMEOUT', 'RESET', 'STALE_PROJECTION', 'ShrinkGuardError', 'UNAUTHORIZED', 'UNKNOWN_DOMAIN', 'UNKNOWN_RELEARN', 'UnknownImprovement', 'UnknownNode', 'UnknownOperation', 'UnknownRelearn', 'VALIDATION_ERROR', 'VersionConflict', 'affected', 'application/json', 'apply_improvement', 'audit', 'audit_event_id', 'backup', 'body', 'boundary', 'build_stack', 'client', 'code', 'content-type', 'create_app', 'denial_count', 'dispatch', 'dispatch_text', 'error', 'error_envelope', 'evaluate', 'explain', 'failure', 'forbid', 'get_node', 'get_subtree', 'god_nodes', 'headers', 'health', 'host', 'host_not_allowed', 'http', 'http.disconnect', 'http.request', 'idempotency-key', 'internal error', 'invalid value', 'json', 'latin-1', 'loc', 'local', 'localhost', 'log_event', 'message', 'method', 'more_body', 'msg', 'offer', 'operation', 'operator', 'path', 'propose_improvement', 'query', 'reason', 'rebuild', 'record_outcome', 'relearn_apply', 'relearn_preview', 'relearn_scan', 'relearn_state', 'relearn_status', 'remote_addr', 'restore', 'retryable', 'review', 'rollback', 'serve', 'source-watch.json', 'source-watcher', 'status_for_error', 'to_jsonable', 'type', 'unauthorized', 'utf-8', 'v1', 'window_seconds', 'x-actor']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/graphify_adapter.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[0.2, 0.5, 0.55, 1.0, '1.0.0', '; ', 'ADAPTER_VERSION', 'AMBIGUOUS', 'CONFIDENCE_SCORE', 'EXTRACTED', 'ExtractionFragment', 'GRAPHIFY_PARTITIONER', 'GraphifyAdapter', 'INFERRED', 'PINNED_HUB_POLICY', 'ambiguous_scale', 'edges', 'graspologic', 'graspologic-leiden', 'hyperedges', 'id', 'json', 'name', 'networkx-louvain', 'nodes', 'resolution', 'seed', 'source', 'source_file', 'target']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/observability.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[300.0, '*.sql', ',', ', ', '?', 'HealthReport', 'MetricsRegistry', 'SELECT 1', 'StructuredLogger', '_', 'actor', 'audit_event_id', 'audit_event_seq', 'audit_events', 'cap_bytes', 'chain', 'chain_checked_events', 'chain_first_bad_seq', 'check_health', 'check_readiness', 'completed_at', 'component', 'counters', 'domain_events', 'duration_ms', 'error', 'estimated_bytes', 'event', 'event_high_watermark', 'event_log_events', 'evidence_items', 'export_query_audit', 'gauges', 'guard_bytes', 'idempotency_key', 'info', 'invocation_id', 'know-your-soul', 'knowledge.get_node', 'knowledge.query', 'labels', 'level', 'migrations', 'migrations_applied', 'migrations_available', 'name', 'no_stale_journals', 'operation', 'outcome_json', 'pending_journals', 'projection_present', 'projection_repair', 'projection_version', 'projection_watermark', 'publish_capacity', 'request_hash', 'source_versions', 'stale_journals', 'started_at', 'status', 'store_select', 'store_watermark', 'ts', 'value', 'warning']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/review.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['0.05', '0.30', '0.50', '0.70', 'ReviewDecision', 'ReviewEngine', 'ReviewPolicy', 'ReviewReport', 'ReviewSignal', 'UnknownNode', 'at', 'blocked_by', 'cooldown', 'current_status', 'decide', 'evidence_id', 'forbid', 'improvement_rollback', 'knowledge.review', 'lifecycle_status', 'node_id', 'occurred_at', 'operator', 'payload', 'payload_json', 'policy_version', 'qualifying', 'reasons', 'relearn-pending', 'retired-node', 'review', 'review-policy-1.0.0', 'source_version_id', 'target_status', 'transitioned', 'updated_at', 'within-tolerance']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/service.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[1.0, 256, 1000, 1024, '0', '0.000000000000', '0.3', '0.7', 'ACCUMULATE', 'HIGH_P', 'KnowledgeService', 'LOW_P', 'MEDIUM_P', 'RECENT_EVIDENCE', 'RESET', 'UNSCORED', 'access_only', 'affected', 'ambiguous', 'anti_pattern', 'audit_event_id', 'bfs', 'candidate', 'candidates', 'confidence', 'context_tags', 'depth', 'domain', 'e', 'edges', 'estimated_tokens', 'evaluate', 'evidence_id', 'failure', 'from_id', 'from_version', 'g', 'graph.json', 'graph_content_hash', 'hops', 'id', 'improvement', 'improvement_apply', 'incoming', 'json', 'kind', 'knowledge.affected', 'knowledge.evaluate', 'knowledge.explain', 'knowledge.get_node', 'knowledge.god_nodes', 'knowledge.log_event', 'knowledge.path', 'knowledge.query', 'knowledge.review', 'knowledge.rollback', 'label', 'level', 'lifecycle_status', 'limit', 'm', 'm_bin_evidence_count', 'max_edges', 'max_nodes', 'missing_root', 'mode', 'n', 'no_match', 'node_id', 'node_versions', 'nodes', 'offer_id', 'operating_procedure', 'operator', 'outgoing', 'overall_uncertainty', 'p', 'path', 'payload', 'payload_json', 'persisted', 'professional_level', 'projection_version', 'promotable', 'provenance', 'python', 'recommendations', 'relation_allowlist', 'relearn', 'relearn_pending', 'restored', 'results', 'routing', 'scores', 'selected_m_bin', 'skipped', 'source_version_id', 'stale', 'state', 'status', 'to_id', 'token_budget', 'truncated', 'u_e', 'u_m', 'u_p', 'uncertainty', 'unchanged', 'updated_at', 'utf-8', 'validated_practice', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/backup.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[300.0, 120, 512, '*', '*.tmp-*', '-shm', '-wal', '.tmp-', 'BackupError', 'BackupReceipt', 'CURRENT', 'PRAGMA quick_check', 'ProjectionDiagnosis', 'ProjectionState', 'ProtectedArtifact', 'RecoveryReport', 'absent', 'artifacts', 'backup', 'backup_store', 'chain_head_hash', 'cleaned', 'corrupt', 'current', 'current_pointer', 'diagnose_projection', 'event_count', 'generation', 'generation_file', 'generations', 'inspect_backup', 'intact', 'manifest.json', 'missing', 'no active generation', 'ok', 'path', 'projection_version', 'rb', 'recover_projection', 'restore_store', 'restored', 'sha256', 'size_bytes', 'soul.db', 'sqlite', 'stale', 'torn', 'utf-8']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/importer.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[1048576, '*.md', '-', '..', '/', '0-unscored', ':', '://', 'ImportManifestError', 'ImportReceipt', 'KNOWLEDGE_ROOT_ID', 'KROOT', 'Knowledge Root', 'SeedImporter', '\\', '\\w', 'contains', 'doc-', 'files', 'heading_level', 'id', 'import_manifest.json', 'injective_file_id', 'label', 'markdown-heading-1', 'references', 'relation', 'root', 'seed-import', 'seed-importer', 'sha256', 'soul://corpus', 'soul://roots', 'source', 'source_file', 'source_version_id', 'target', 'utf-8', 'utf8-nfc-crlf-lf-1', 'w']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/domain.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[',', '1E-12', ':', 'DECIMAL_PRECISION', 'Disiplin', 'Event', 'EventKind', 'Evidence', 'Gagasan', 'Keputusan', 'Level Profesional', 'LifecycleStatus', 'Node', 'NodeKind', 'P1', 'P2', 'P3', 'P4', 'P5', 'P6', 'P7', 'PRIMARY_DOMAINS', 'Pembelajaran', 'Pemikiran/Penalaran', 'PrimaryDomain', 'Relation', 'RelationKind', 'SCORE_QUANTUM', 'ScoreVector', 'Tindakan', 'active', 'admin', 'after', 'applied_in', 'before', 'branch', 'canonical_json', 'causes', 'child', 'confidence', 'contradicts', 'depends_on', 'deprecate', 'derived_from', 'draft', 'duplicates', 'e', 'evidence.append', 'f', 'forbid', 'leaf', 'learned_from', 'm', 'maintain', 'merge_or_deduplicate', 'needs_improvement', 'node.retire', 'node.upsert', 'observe', 'observed_at', 'operator', 'p', 'parent_of', 'primary', 'professional_level', 'quantize_score', 'ready_to_promote', 'relation.add', 'rollback', 'root', 'scores', 'storage_payload', 'superseded', 'supersedes', 'supports', 'uncertainty', 'utilization_u']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/source_registry.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['*', ', ', 'ACCUMULATE', 'CURRENT', 'Compatibility', 'DELETED', 'ManifestDiff', 'NONE', 'OPERATOR_IMPORT', 'ParserVersions', 'RELEARN_PENDING', 'RESET', 'RelearnOffer', 'SOUL_CORPUS', 'SOUL_MD', 'SUPERSEDED', 'SourceFileEntry', 'SourceKind', 'SourceRegistry', 'SourceState', 'SourceVersion', 'byte_length', 'char_length', 'content_sha256', 'engine_version', 'evidence_carried', 'evidence_quarantined', 'evidence_revalidated', 'file_count', 'fingerprint', 'forbid', 'json', 'line_count', 'manifest_hash', 'manifest_json', 'nodes_contested', 'nodes_created', 'nodes_new', 'nodes_reused', 'nodes_superseded', 'observed_at', 'parser_version', 'payload_json', 'relearn_state', 'source_id', 'source_state', 'source_uri', 'source_version_id', 'superseded_by', 'unmapped_evidence', 'utf-8', 'value']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/retrieval.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[512, '/', '0.05', 'AffectedHit', 'AffectedReport', 'BudgetedTraversal', 'Cc', 'Cf', 'DOMAIN_ALIASES', 'FIELD_WEIGHTS', 'GraphLink', 'LexicalIndex', 'PathOutcome', 'PrimaryRouter', 'RankedHit', 'RelationalGraph', 'RouteOutcome', 'SEARCHABLE_FIELDS', 'STOPWORDS', 'TraversalReport', '[\\w]+', '_', 'a', 'about', 'access', 'action', 'actions', 'ada', 'adalah', 'address', 'after', 'again', 'against', 'agar', 'akan', 'aliases', 'all', 'also', 'am', 'ambiguous', 'an', 'analyses', 'analysis', 'and', 'any', 'are', 'as', 'at', 'atau', 'bagaimana', 'bahwa', 'basis', 'be', 'because', 'been', 'before', 'being', 'below', 'belum', 'between', 'bfs', 'bias', 'biases', 'bisa', 'both', 'business', 'but', 'by', 'can', 'chaos', 'class', 'context_tags', 'corpus', 'could', 'criteria', 'criterion', 'dalam', 'dan', 'dari', 'decision', 'decisions', 'dengan', 'depth', 'dfs', 'di', 'did', 'direct', 'discipline', 'disiplin', 'do', 'does', 'doing', 'domain', 'done', 'down', 'during', 'each', 'either', 'else', 'estimated_tokens', 'ever', 'every', 'few', 'fields', 'focus', 'for', 'found', 'from', 'further', 'gagasan', 'gas', 'give', 'had', 'has', 'have', 'having', 'he', 'her', 'here', 'hers', 'him', 'his', 'how', 'i', 'ialah', 'id', 'idea', 'ideas', 'ies', 'if', 'in', 'index', 'indices', 'ini', 'into', 'is', 'it', 'its', 'itu', 'jika', 'juga', 'just', 'kalau', 'kamu', 'karena', 'ke', 'keputusan', 'kind', 'kita', 'label', 'learning', 'lens', 'less', 'lessons', 'let', 'level profesional', 'like', 'limit must be >= 1', 'links', 'list', 'maka', 'many', 'matrices', 'matrix', 'max_edges', 'max_nodes', 'may', 'me', 'means', 'might', 'mine', 'missing_root', 'more', 'most', 'much', 'must', 'my', 'never', 'no', 'no_match', 'no_path', 'node_id', 'nor', 'normalize_term', 'not', 'now', 'of', 'off', 'oleh', 'on', 'once', 'only', 'or', 'os', 'other', 'ought', 'our', 'ours', 'out', 'over', 'own', 'pada', 'parent_of', 'pelajaran', 'pembelajaran', 'pemikiran', 'penalaran', 'per', 'plus', 'primary', 'process', 'profesional', 'professional level', 'professionalism', 'progress', 'put', 'query_terms', 'ranked', 'reasoning', 'relation', 'resolve_domain_input', 's', 'saja', 'same', 'sanitize_text', 'saya', 'sebagai', 'secara', 'sehingga', 'series', 'shall', 'she', 'should', 'show', 'so', 'some', 'source', 'ss', 'sses', 'status', 'stress', 'such', 'sudah', 'summary', 'supaya', 't', 'target', 'tell', 'tentang', 'than', 'that', 'the', 'their', 'theirs', 'them', 'then', 'there', 'these', 'they', 'thinking', 'this', 'those', 'through', 'tidak', 'tindakan', 'to', 'tokenize', 'too', 'under', 'unless', 'until', 'untuk', 'up', 'upon', 'us', 'use', 'used', 'utf-8', 'various', 'versus', 'very', 'was', 'we', 'were', 'what', 'when', 'where', 'whether', 'which', 'while', 'who', 'whom', 'whose', 'why', 'will', 'with', 'within', 'without', 'would', 'y', 'yang', 'you', 'your', 'yours']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/projection.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[1.0, 256, 420, 1024, ' — ', '## Communities', '## God Nodes', '(?<=[.!?])\\s+', '*.json', '+', ', ', '0123456789abcdef', '://', '; ', 'AMBIGUOUS', 'ARTIFACT_MAX_BYTES', 'ARTIFACT_NAMES', 'CURRENT', 'Cc', 'Cf', 'EXTRACTED', 'FragmentCache', 'GRAPH_REPORT.md', 'GraphProjector', 'INFERRED', 'NFC', 'ProjectionError', 'ProjectionReceipt', 'ProjectorBusy', 'ShrinkGuardError', 'UNREVIEWED', '[path]', '\\*\\*|__|`', '\\s+', '^\\s*```', '_origin', 'adapter_version', 'analysis.json', 'artifacts', 'audit', 'cache_namespace', 'category', 'communities', 'community_sig', 'confidence', 'confidence: ', 'confidence_score', 'content_hash', 'content_sha256', 'context_tags', 'counts', 'directed', 'document', 'domain', 'edge_count', 'edges', 'enriched_summary', 'field', 'file_type', 'fragment_fingerprint', 'generations', 'generator', 'generator_version', 'god_nodes', 'graph', 'graph.html', 'graph.json', 'graph_content_hash', 'hub_policy', 'hyperedges', 'id', 'kind', 'know-your-soul', 'label', 'labels.json', 'lifecycle_status', 'links', 'manifest.json', 'manifest_version', 'multigraph', 'name', 'node_count', 'node_id', 'nodes', 'note', 'parent_of', 'partitioner', 'payload_json', 'professional_level', 'projection_version', 'projector', 'projector.lock', 'provenance', 'quarantined', 'relation', 'repaired', 'replace', 'schema_version', 'scores', 'semantic', 'signatures.json', 'soul-corpus', 'soul://store', 'source', 'source_file', 'source_uri', 'source_version_id', 'summary', 'target', 'utf-8', 'value', 'version', 'w', 'wb', 'weight', '\u200b']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/scoring.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[86400, 1000000, '.1f', '1.0', '1.0.0', 'EvidenceScope', 'MICROSECONDS_PER_DAY', 'SCORING_CONFIG_PATH', 'ScoreAssessment', 'ScoreEngine', 'ScoringConfig', 'ScoringConfigError', 'UnknownNodeError', 'ZERO_TOTAL_WEIGHT', 'ZeroWeightStatus', 'bins', 'cap', 'composite', 'compute', 'compute_baseline_ms', 'compute_ms', 'compute_weight', 'confidence_e', 'confidence_m', 'confidence_p', 'context_tags', 'contract_version', 'contradiction', 'contribution', 'correctness', 'disjoint_context', 'e', 'e_cost', 'e_exponent', 'e_j', 'eligible', 'evidence', 'evidence_count', 'evidence_id', 'evidence_item', 'excluded', 'exclusion_counts', 'f', 'g', 'group_caps', 'half_life_days', 'independence_groups', 'independence_key', 'latency', 'latency_baseline_ms', 'latency_ms', 'latency_weight', 'level', 'm', 'm_bin', 'm_bin_evidence_count', 'm_exponent', 'max_u_p', 'meta', 'missing_provenance', 'node_id', 'observed_at', 'other_exclusions', 'outcome', 'output', 'output_chars', 'output_weight', 'overall_uncertainty', 'p', 'p_exponent', 'p_j', 'p_weights', 'professional_level', 'promotable', 'promotion', 'quality_at_use', 'quality_gate', 'reason', 'reliability', 'reproducibility', 'scope_fit', 'score_items', 'scoring_config.toml', 'selected_m_bin', 'serialize_score', 'source_uri', 'success_coverage', 'successful_use', 'task_coverage', 'term', 'thresholds', 'total_weight', 'u_e', 'u_m', 'u_p', 'uncertainty_caps', 'utf-8', 'utilization', 'utilization_u', 'value', 'weight', 'zero', 'zero_reliability', 'zero_total_weight']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/scheduler.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['0.70', 'DueReviewScheduler', 'ReviewCandidate', 'SchedulePolicy', 'at', 'dormant', 'forbid', 'high-uncertainty', 'never-reviewed', 'node_id', 'payload', 'payload_json', 'review', 'review-overdue']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/store.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[0.95, 160, 512, 1024, 15000, '*.sql', ':memory:', 'AuditOutcomeMismatch', 'BEGIN IMMEDIATE', 'COMMIT', 'EventRow', 'EventStore', 'IdempotencyConflict', 'InvalidRelation', 'ROLLBACK', 'StoreError', 'VersionConflict', '_', 'actor', 'audit_event_id', 'audit_event_seq', 'bytes', 'chain_event_count', 'chain_head_hash', 'created_at', 'domain', 'event_hash', 'event_id', 'event_seq', 'event_type', 'failure', 'heartbeat_at', 'idempotency_key', 'key', 'kind', 'knowledge_affecting', 'knowledge_seq', 'lifecycle_status', 'max_id', 'maximum', 'migrations', 'n', 'name', 'node', 'node_id', 'node_version', 'occurred_at', 'operation', 'outcome_json', 'payload_json', 'prev_event_hash', 'provenance', 'python', 'recorded_at', 'relation', 'request_hash', 'source_node_id', 'source_version_id', 'started_at', 'status', 'success', 'target_node_id', 'total', 'updated_at', 'utf-8', 'valid_from', 'valid_to', 'value', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/cli.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[30.0, 300.0, ',', '-', '--actor', '--api-key', '--api-key-env', '--host-allowlist', '--http', '--idempotency-key', '--max-body-bytes', '--ops-root', '--output-root', '--socket', '--store', '--watch', '--watch-cooldown', '--watch-interval', '--watch-state', '?', 'CLI_USAGE', 'KNOW_YOUR_SOUL_STORE', 'NAME', 'PATH', 'SOUL_STORE', '_', 'api_key', 'audit_event_id', 'build_parser', 'code', 'command', 'error', 'health', 'host_allowlist', 'know-your-soul', 'know-your-soul.sock', 'main', 'max_body_bytes', 'message', 'ok', 'operator', 'payload', 'retryable', 'serve', 'watch_root', 'watch_state_path', '{}']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/contracts.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[128, 160, 200, 256, 512, 1024, 4096, 8192, 'ACCESS_ONLY', 'ACCESS_POLICY_PATH', 'ACCESS_POLICY_SHA256', 'AMBIGUOUS_DOMAIN', 'APPROVAL_REQUIRED', 'AccessDecision', 'AccessPolicy', 'AffectedNode', 'AffectedResponse', 'AmbiguousDomain', 'BUDGET_EXCEEDS_MAX', 'BUDGET_TOO_SMALL', 'BudgetExceedsMax', 'BudgetTooSmall', 'DueReviewView', 'EvaluateRequest', 'EvaluateResponse', 'ExplainResponse', 'GodNode', 'GodNodesResponse', 'ImprovementNotFound', 'ImprovementResponse', 'InvalidProposal', 'KNOWLEDGE_ERROR', 'KnowledgeError', 'LIFECYCLE_ERROR', 'LifecycleError', 'MINIMUM_TOKEN_BUDGET', 'NODE_NOT_FOUND', 'NOT_IMPLEMENTED', 'NO_CALL', 'NodeNotFound', 'NodeResponse', 'NodeView', 'POLICY_HASH_MISMATCH', 'PRIMARY_ROOT_MISSING', 'PROPOSAL_INVALID', 'PathResponse', 'PolicyArtifactError', 'PrimaryRootMissing', 'PromotionVerdict', 'ProposalResponse', 'QUERY', 'QueryRequest', 'QueryResponse', 'RecommendationBlock', 'RecommendationItem', 'RegressionGateError', 'ResultNode', 'ReviewDecisionView', 'ReviewRequest', 'ReviewResponse', 'RollbackRequest', 'RollbackResponse', 'STALE_PROJECTION', 'SubtreeEdge', 'SubtreeResponse', 'TraversalMode', 'UNKNOWN_DOMAIN', 'UNKNOWN_RELEARN', 'UnknownDomain', 'UnknownRelearnError', 'access_only', 'access_policy.json', 'affected', 'after', 'attempt_promotion', 'audit_event_id', 'bfs', 'call', 'candidates', 'confidence', 'cross_edges', 'depth', 'dfs', 'edges', 'estimated_tokens', 'f', 'forbid', 'found', 'from_id', 'guards_hit', 'hops', 'improvement', 'incoming', 'json', 'limit', 'max_estimated_tokens', 'may_call_access_only', 'never_call', 'no_path', 'node', 'node_id', 'node_versions', 'nodes', 'outgoing', 'projection_version', 'provenance', 'recommendations', 'relation_counts', 'relearn', 'results', 'routing', 'score_text', 'stale', 'status', 'surface_decisions', 'to_id', 'truncated', 'unknown_surface', 'utf-8']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/runtime_guard.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[0.05, '(^|_)ACCESS_?TOKEN$', '(^|_)API_?KEY$', '(^|_)API_?TOKEN$', '(^|_)AUTH_?TOKEN$', '(^|_)SECRET$', '(^|_)SECRET_?KEY$', '(^|_)TOKEN$', ', ', '-', '.', '/', '0', '192.0.2.1', ':', '<source>', '>=3.14,<3.15', 'ANTHROPIC_API_KEY', 'ANTHROPIC_AUTH_TOKEN', 'AWS_ACCESS_KEY_ID', 'AWS_SESSION_TOKEN', 'AZURE_OPENAI_API_KEY', 'COHERE_API_KEY', 'COMSPEC', 'CapabilityViolation', 'ForbiddenImportError', 'GEMINI_API_KEY', 'GOOGLE_API_KEY', 'GRAPHIFY_PIN', 'GROQ_API_KEY', 'HF_HOME', 'HF_HUB_CACHE', 'HF_MODULES_CACHE', 'HF_TOKEN', 'HOME', 'ImportGuard', 'LANG', 'LANGSMITH_API_KEY', 'LANGUAGE', 'LC_ALL', 'LC_CTYPE', 'LOGNAME', 'MISTRAL_API_KEY', 'Name', 'OLLAMA_HOST', 'OLLAMA_MODELS', 'OPENAI_API_KEY', 'OPENAI_BASE_URL', 'OPENAI_ORG_ID', 'OutboundSocketDenied', 'PATH', 'PATHEXT', 'PINECONE_API_KEY', 'PYTHONHASHSEED', 'PYTHONIOENCODING', 'PYTHONUNBUFFERED', 'PythonVersionError', 'QDRANT_API_KEY', 'REPLICATE_API_TOKEN', 'REQUIRED_PYTHON', 'RuntimeGuardError', 'SAFE_ENV_KEYS', 'SHELL', 'SSL_CERT_DIR', 'SSL_CERT_FILE', 'SYSTEMROOT', 'SocketGuard', 'TEMP', 'TERM', 'TIKTOKEN_CACHE_DIR', 'TMP', 'TMPDIR', 'TOGETHER_API_KEY', 'TORCH_HOME', 'TRANSFORMERS_CACHE', 'TZ', 'USER', 'VERTEXAI_API_KEY', 'VIRTUAL_ENV', 'VOYAGE_API_KEY', 'WANDB_API_KEY', 'WEAVIATE_API_KEY', 'WINDIR', 'XDG_', '[-_.]+', '^AZURE_OPENAI', '^COHERE_', '^GEMINI_', '^GROQ_', '^HF_', '^HUGGING', '^LANGSMITH_', '^MISTRAL_', '^OLLAMA', '^OPENAI_', '^PINECONE_', '^QDRANT_', '^REPLICATE_', '^TIKTOKEN_', '^TOGETHER_', '^TORCH_', '^TRANSFORMERS_', '^VOYAGE_', '^WANDB_', '^WEAVIATE_', '_handlers', '_request_handlers', 'actively_blocked', 'address', 'anthropic', 'azure.ai', 'boto3', 'botocore', 'capability_snapshot', 'chromadb', 'cohere', 'completion', 'completion/complete', 'completions', 'connect', 'connect_ex', 'console_scripts', 'create_connection', 'deterministic_env', 'elicitation', 'elicitation/create', 'eval', 'exec', 'faiss', 'faiss-cpu', 'faiss-gpu', 'falkordb', 'faster-whisper', 'faster_whisper', 'google-genai', 'google-generativeai', 'google.generativeai', 'graphify', 'graphify-mcp', 'graphify.exporters', 'graphify.ingest', 'graphify.llm', 'graphify.mcp_ingest', 'graphify.prs', 'graphify.serve', 'graphify.transcribe', 'graphify_pin', 'graspologic', 'graspologic-native', 'graspologic_native', 'groq', 'huggingface_hub', 'import_guard', 'install_import_guard', 'install_socket_guard', 'interpreter', 'is_forbidden_module', 'jieba', 'jieba-py', 'lancedb', 'langchain', 'langchain-core', 'litellm', 'llama-cpp-python', 'llama_cpp', 'logging', 'logging/setLevel', 'markdownify', 'matplotlib', 'mcp_capabilities', 'mistralai', 'model_asset_env', 'neo4j', 'not_installed', 'notifications', 'ok', 'ollama', 'onnxruntime', 'openai', 'openpyxl', 'os', 'os.execl', 'os.execle', 'os.execlp', 'os.execlpe', 'os.execv', 'os.execve', 'os.execvp', 'os.execvpe', 'os.popen', 'os.posix_spawn', 'os.posix_spawnp', 'os.spawnl', 'os.spawnle', 'os.spawnlp', 'os.spawnlpe', 'os.spawnv', 'os.spawnve', 'os.spawnvp', 'os.spawnvpe', 'os.system', 'pillow', 'pinecone', 'pinecone-client', 'ping', 'prompts', 'prompts/get', 'prompts/list', 'provider_credentials', 'psycopg', 'psycopg-binary', 'psycopg2', 'pypdf', 'python', 'python-docx', 'python_range', 'qdrant-client', 'qdrant_client', 'request_handlers', 'resources', 'robotframework', 'sampling', 'scrubbed_env', 'sendmsg', 'sendto', 'server', 'server_registry', 'status', 'subprocess', 'subprocess.Popen', 'subprocess.call', 'subprocess.getoutput', 'subprocess.run', 'tensorflow', 'tiktoken', 'together', 'tools', 'torch', 'torchaudio', 'torchvision', 'transformers', 'verify_runtime', 'vertexai', 'vllm', 'voyageai', 'watchdog', 'weaviate', 'weaviate-client', 'yt-dlp', 'yt_dlp']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/update_pipeline.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[0.05, 5.0, 30.0, 300.0, 'SourceWatchLoop', 'UpdatePipelineError', 'UpdateReceipt', 'WatchPollReceipt', 'offer_id', 'soul-source-watch', 'source watch stopped', 'update_from_changes']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/mcp_server.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
[256, 512, 1000, 1024, 4096, 8080, 65536, '--api-key', '--api-key-env', '--db', '--graph-root', '--host', '--max-token-budget', '--port', '--transport', '.', '0.0.0', '127.0.0.1', 'ACCUMULATE', 'EXPECTED_TOOLS', 'INTERNAL_ERROR', 'INVALID_ARGUMENTS', 'NAME', 'RESET', 'ToolError', 'UNKNOWN_TOOL', '__main__', 'access_only', 'add_context_tag', 'add_minus', 'add_plus', 'add_relation', 'additionalProperties', 'application/json', 'approval', 'approved', 'approved_by', 'array', 'at', 'audit_event_id', 'base_version', 'bfs', 'boolean', 'build_server', 'build_service', 'code', 'context_tags', 'decided_at', 'decision', 'depth', 'dfs', 'diff', 'domain', 'edge_count', 'edges', 'enum', 'error', 'evidence', 'evidence_carried', 'evidence_quarantined', 'expected_version', 'failure', 'from_id', 'graph.json', 'graph_content_hash', 'http', 'id', 'idempotency_key', 'include_descendants', 'integer', 'invalid value', 'items', 'json', 'key', 'kind', 'know-your-soul', 'know-your-soul-mcp', 'knowledge.affected', 'knowledge.evaluate', 'knowledge.explain', 'knowledge.get_node', 'knowledge.god_nodes', 'knowledge.log_event', 'knowledge.path', 'knowledge.query', 'knowledge.review', 'knowledge.rollback', 'knowledge_affected', 'knowledge_evaluate', 'knowledge_explain', 'knowledge_get_node', 'knowledge_god_nodes', 'knowledge_log_event', 'knowledge_path', 'knowledge_query', 'knowledge_review', 'knowledge_rollback', 'label', 'limit', 'links', 'loc', 'main', 'maxLength', 'max_edges', 'max_nodes', 'maximum', 'mcp-client', 'mcp.unknown_tool', 'message', 'minItems', 'minLength', 'minimum', 'mode', 'msg', 'must not be empty', 'no active projection', 'node', 'node_count', 'node_id', 'nodes', 'nodes_reused', 'note', 'null', 'object', 'op', 'pattern', 'pending_offer', 'previews', 'projection-manifest', 'projection-nodes', 'projection-stats', 'projection_version', 'promotion_blocked', 'properties', 'proposal_id', 'purpose', 'python', 'rationale', 'rejected', 'relation_allowlist', 'relearn-status', 'relearn_id', 'relearn_state', 'remove_context_tag', 'remove_minus', 'remove_payload_key', 'remove_plus', 'required', 'returned', 'scores_after', 'set_payload_key', 'set_scope', 'set_status', 'set_summary', 'stdio', 'string', 'summary', 'text', 'to_id', 'to_version', 'token_budget', 'tool', 'total', 'truncated', 'type', 'utf-8', 'value', 'warning']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /root/superpower-knowledge-soul/src/know_your_soul/improvement.py
|
|
2
|
+
# hypothesis_version: 6.170.9
|
|
3
|
+
|
|
4
|
+
['ApprovalRecord', 'ApprovalRequired', 'DiffOp', 'DiffOperation', 'ImprovementProposal', 'ImprovementReceipt', 'MergeReceipt', 'ProposalRecord', 'RegressionGate', 'UnknownImprovement', 'UnknownNode', 'add_context_tag', 'add_minus', 'add_plus', 'add_relation', 'applied', 'apply', 'apply_improvement', 'approval_id', 'approved', 'base_version', 'classify_impact', 'content_fingerprint', 'context_tags', 'created_at', 'diff', 'domain', 'domain-changed', 'evidence_ids', 'forbid', 'from_version', 'get_proposal', 'high', 'impact', 'improvement_apply', 'improvement_merge', 'improvement_proposal', 'improvement_retain', 'improvement_rollback', 'json', 'kind', 'kind-changed', 'knowledge.merge', 'knowledge.rollback', 'lifecycle_status', 'low', 'merge', 'merge_id', 'merge_nodes', 'merged', 'minus', 'node_id', 'operation', 'operator', 'parent_id', 'payload', 'payload_json', 'plus', 'professional_level', 'prop_', 'proposal_id', 'propose', 'provenance', 'python', 'rationale', 'rejected', 'relations', 'remove_context_tag', 'remove_minus', 'remove_payload_key', 'remove_plus', 'retain', 'retain_improvement', 'retained', 'rollback', 'rollback_improvement', 'rolled_back', 'scope', 'scores', 'set_payload_key', 'set_scope', 'set_status', 'set_summary', 'source_version_id', 'summary', 'target_node_id', 'to_version', 'updated_at', 'utf-8', 'version']
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: know-your-soul
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Standalone deterministic knowledge and learning graph for Hermes Agent; no model, provider, or vector calls.
|
|
5
|
+
Requires-Python: <3.15,>=3.14
|
|
6
|
+
Requires-Dist: graphifyy[mcp]==0.9.95
|
|
7
|
+
Requires-Dist: mcp==2.3.0
|
|
8
|
+
Requires-Dist: networkx==3.7
|
|
9
|
+
Requires-Dist: numpy==2.5.4
|
|
10
|
+
Requires-Dist: pydantic==2.14.1
|
|
11
|
+
Requires-Dist: starlette==1.10.0
|
|
12
|
+
Requires-Dist: uvicorn==0.54.0
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Know Your Soul
|
|
2
|
+
|
|
3
|
+
A standalone, deterministic knowledge graph, audit, scoring, and
|
|
4
|
+
controlled-improvement service for the SOUL corpus. Hermes accesses it
|
|
5
|
+
directly — there is **no internal AI model, model API, embedding, vector call,
|
|
6
|
+
provider dependency, or outbound provider traffic** anywhere in the system.
|
|
7
|
+
|
|
8
|
+
Spec: `docs/superpowers/specs/2026-10-24-superpower-knowledge-soul-design.md`
|
|
9
|
+
Plan: `docs/superpowers/plans/2026-10-24-superpower-knowledge-soul.md`
|
|
10
|
+
|
|
11
|
+
## Architecture
|
|
12
|
+
|
|
13
|
+
Python 3.14 modular monolith:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
┌────────────┐ ┌────────────┐ ┌────────────┐
|
|
17
|
+
│ CLI │ │ local API │ │ MCP server │ three access paths
|
|
18
|
+
│ (know-your-│ │ (Starlette │ │ (stdio / │ over ONE service
|
|
19
|
+
│ soul) │ │ /uvicorn) │ │ HTTP) │
|
|
20
|
+
└─────┬──────┘ └─────┬──────┘ └─────┬──────┘
|
|
21
|
+
└───────────────┼───────────────┘
|
|
22
|
+
KnowledgeService ← fourteen audited operations
|
|
23
|
+
│
|
|
24
|
+
┌──────────────────────────────┼──────────────────────────────┐
|
|
25
|
+
│ │ │
|
|
26
|
+
EventStore (SQLite WAL) GraphProjector ScoreEngine /
|
|
27
|
+
immutable events + atomic read-model Review / Relearn
|
|
28
|
+
revisions = source of truth generations (Graphify) state machines
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
* **Source of truth:** append-only SQLite WAL event store; every tool action
|
|
32
|
+
(reads included) returns an audit event ID; every mutation is versioned and
|
|
33
|
+
idempotent.
|
|
34
|
+
* **Read models:** content-addressed Graphify generations, validated and
|
|
35
|
+
activated atomically through one `CURRENT` manifest.
|
|
36
|
+
* **Determinism:** frozen mathematical contracts (`docs/mathematics/`,
|
|
37
|
+
`docs/contracts/`); scoring uses exact Decimal arithmetic; no formula or
|
|
38
|
+
threshold may change without a new contract version.
|
|
39
|
+
* **Boundary:** provider/vector/model packages and entry points are forbidden
|
|
40
|
+
and fail closed (`src/know_your_soul/runtime_guard.py`); outbound sockets
|
|
41
|
+
are denied; MCP is tools+resources only, no sampling.
|
|
42
|
+
|
|
43
|
+
## The fourteen operations
|
|
44
|
+
|
|
45
|
+
Exposed identically on all three access paths. The ten v1 operations (spec
|
|
46
|
+
section 8) are frozen; contract v2 (operator ruling 2026-10-26, addendum
|
|
47
|
+
`docs/contracts/retrieval-verbs-v2.md`) adds the four G1 retrieval verbs:
|
|
48
|
+
|
|
49
|
+
| # | Operation | Purpose |
|
|
50
|
+
|---|-----------|---------|
|
|
51
|
+
| 1 | `query` | Token-bounded primary-root retrieval with provenance, versions, confidence, and the three-list recommendation block |
|
|
52
|
+
| 2 | `get_node` | Single node with evidence and projection metadata |
|
|
53
|
+
| 3 | `get_subtree` | Bounded subtree traversal (depth `[1,6]`, relation allowlist, node/edge caps) |
|
|
54
|
+
| 4 | `log_event` | Append an immutable domain event |
|
|
55
|
+
| 5 | `record_outcome` | Attach an outcome to evidence |
|
|
56
|
+
| 6 | `evaluate` | Calibrated P/M/E scoring, uncertainty, level 1-5, promotion eligibility |
|
|
57
|
+
| 7 | `review` | Review state machine with minimum evidence, cooldown, hysteresis |
|
|
58
|
+
| 8 | `propose_improvement` | Structured diff proposal (never autonomous rewriting) |
|
|
59
|
+
| 9 | `apply_improvement` | Operator-gated apply with expected-version check and regression gate |
|
|
60
|
+
| 10 | `rollback` | Byte-exact reversal of an applied improvement or relearn |
|
|
61
|
+
| 11 | `path` | Deterministic shortest directed path between two nodes (`no_path` is a typed result) |
|
|
62
|
+
| 12 | `explain` | Relational neighborhood explanation: typed in/out links plus per-relation counts |
|
|
63
|
+
| 13 | `affected` | Reverse dependency walk: what depends on a node (bounded depth, typed guards) |
|
|
64
|
+
| 14 | `god_nodes` | Top hub nodes by measured graph degree (deterministic, bounded) |
|
|
65
|
+
|
|
66
|
+
Recommendation responses contain exactly `best_actions`, `recommendations`,
|
|
67
|
+
`unnecessary_actions` — never raw SOUL text. Conditional access is
|
|
68
|
+
hash-pinned: L1 tasks never call the system; `access_only` returns a zero
|
|
69
|
+
knowledge payload within 160 estimated tokens.
|
|
70
|
+
|
|
71
|
+
## Three access paths
|
|
72
|
+
|
|
73
|
+
1. **CLI** — `know-your-soul <operation>` for all fourteen operations plus the
|
|
74
|
+
operator ops: projection rebuild, backup, restore, health, and the
|
|
75
|
+
operator-gated relearn lifecycle (`relearn-scan`, `relearn-status`,
|
|
76
|
+
`relearn-preview`, `relearn-apply`).
|
|
77
|
+
2. **Persistent local API** — versioned `/v1` JSON (knowledge ops plus
|
|
78
|
+
`ops/rebuild`, `ops/backup`, `ops/restore`, `ops/health` and
|
|
79
|
+
`ops/relearn_scan` / `ops/relearn_status` / `ops/relearn_preview` /
|
|
80
|
+
`ops/relearn_apply`), Unix socket by default,
|
|
81
|
+
optional loopback HTTP; API key required beyond loopback.
|
|
82
|
+
3. **MCP server** — stdio (and optional Streamable HTTP), one startup
|
|
83
|
+
allowlisted graph root, strict schemas/ranges, tools+resources-only
|
|
84
|
+
capability surface, no sampling/prompts/logging/completions. See
|
|
85
|
+
`docs/integration/hermes.md`.
|
|
86
|
+
|
|
87
|
+
## Install and run
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
uv sync --frozen # pinned, locked environment (Python 3.14)
|
|
91
|
+
uv run pytest -q # full test suite
|
|
92
|
+
uv run pyright # type checking
|
|
93
|
+
uv run ruff check # lint
|
|
94
|
+
uv run python bench/run.py check # harness self-checks (cases, corpus, estimator parity)
|
|
95
|
+
uv run python bench/run.py run # paired benchmark (exit 0, 24/24 accepted)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Benchmark and verification
|
|
99
|
+
|
|
100
|
+
* `bench/` — frozen SOUL corpus snapshot (sha256 manifest, read-only source),
|
|
101
|
+
24 frozen questions spanning the seven primary domains, N repeats, p50/p95
|
|
102
|
+
latency, token-estimator parity against the frozen token-budget contract,
|
|
103
|
+
a deterministic quality rubric, paired raw-SOUL vs system comparison, and a
|
|
104
|
+
machine-readable JSON ledger. Token savings never excuse a quality
|
|
105
|
+
regression. See `bench/README.md`.
|
|
106
|
+
* `docs/verification.md` — the evidence tables for the release gate.
|
|
107
|
+
* `docs/audit-release.md` — the independent audit and release decision record.
|