memory-share-kit 1.2.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.
Files changed (121) hide show
  1. memory_share_kit-1.2.0/.ai_directive +13 -0
  2. memory_share_kit-1.2.0/.env.example +8 -0
  3. memory_share_kit-1.2.0/.github/workflows/publish-pypi.yml +29 -0
  4. memory_share_kit-1.2.0/.github/workflows/verify-engine.yml +32 -0
  5. memory_share_kit-1.2.0/.gitignore +38 -0
  6. memory_share_kit-1.2.0/.kit/context +5 -0
  7. memory_share_kit-1.2.0/AGENTS.md +900 -0
  8. memory_share_kit-1.2.0/AGENT_PLAYBOOK.md +104 -0
  9. memory_share_kit-1.2.0/ARCHITECTURE.md +69 -0
  10. memory_share_kit-1.2.0/CONTRIBUTING.md +14 -0
  11. memory_share_kit-1.2.0/MANIFESTO.md +26 -0
  12. memory_share_kit-1.2.0/PKG-INFO +88 -0
  13. memory_share_kit-1.2.0/README.md +69 -0
  14. memory_share_kit-1.2.0/REFERENCE.md +115 -0
  15. memory_share_kit-1.2.0/archive/v1/docs/ARCHITECTURE_FREEZE.md +57 -0
  16. memory_share_kit-1.2.0/archive/v1/docs/SHARE_NOTES.md +44 -0
  17. memory_share_kit-1.2.0/archive/v1/mcp/SETUP_GUIDE.md +241 -0
  18. memory_share_kit-1.2.0/archive/v1/mcp/SKILL.md +125 -0
  19. memory_share_kit-1.2.0/archive/v1/mcp/__init__.py +0 -0
  20. memory_share_kit-1.2.0/archive/v1/mcp/antigravity-brain/SKILL.md +148 -0
  21. memory_share_kit-1.2.0/archive/v1/mcp/antigravity-brain.skill +0 -0
  22. memory_share_kit-1.2.0/archive/v1/mcp/antigravity_mcp.py +678 -0
  23. memory_share_kit-1.2.0/archive/v1/ops/brain_maintenance.py +472 -0
  24. memory_share_kit-1.2.0/archive/v1/ops/brain_sync_watcher.py +247 -0
  25. memory_share_kit-1.2.0/archive/v1/ops/layer3_backfill.py +232 -0
  26. memory_share_kit-1.2.0/archive/v1/ops/layer3_metadata.py +181 -0
  27. memory_share_kit-1.2.0/archive/v1/ops/query_layer3.py +168 -0
  28. memory_share_kit-1.2.0/archive/v1/ops/search.ps1 +21 -0
  29. memory_share_kit-1.2.0/archive/v1/reports/antigravity_v3_kernel.md +67 -0
  30. memory_share_kit-1.2.0/archive/v1/reports/background_consolidation_policy.md +65 -0
  31. memory_share_kit-1.2.0/archive/v1/reports/brain_state_current.md +152 -0
  32. memory_share_kit-1.2.0/archive/v1/reports/brain_v2_update_roadmap.md +141 -0
  33. memory_share_kit-1.2.0/archive/v1/reports/cowork_integration_session.md +84 -0
  34. memory_share_kit-1.2.0/archive/v1/reports/journaling_driver_spec.md +218 -0
  35. memory_share_kit-1.2.0/archive/v1/reports/layer3_metadata_schema.md +53 -0
  36. memory_share_kit-1.2.0/archive/v1/reports/master_task_list.md +42 -0
  37. memory_share_kit-1.2.0/archive/v1/reports/semantic_memory_topology.md +73 -0
  38. memory_share_kit-1.2.0/archive/v1/reports/transaction_locking.md +87 -0
  39. memory_share_kit-1.2.0/archive/v1/scripts/setup_workspace.py +187 -0
  40. memory_share_kit-1.2.0/archive/v1/scripts/test_sambrain_v2.py +72 -0
  41. memory_share_kit-1.2.0/examples/chunked_cog_scan.py +39 -0
  42. memory_share_kit-1.2.0/examples/minimal_example.py +48 -0
  43. memory_share_kit-1.2.0/install.bat +37 -0
  44. memory_share_kit-1.2.0/install.sh +39 -0
  45. memory_share_kit-1.2.0/kit/__init__.py +1 -0
  46. memory_share_kit-1.2.0/kit/api.py +251 -0
  47. memory_share_kit-1.2.0/kit/cli/doctor.py +168 -0
  48. memory_share_kit-1.2.0/kit/cli/main.py +508 -0
  49. memory_share_kit-1.2.0/kit/core/__init__.py +1 -0
  50. memory_share_kit-1.2.0/kit/core/kit_cognitive_core.py +921 -0
  51. memory_share_kit-1.2.0/kit/core/kit_governance.py +171 -0
  52. memory_share_kit-1.2.0/kit/core/kit_reflect.py +266 -0
  53. memory_share_kit-1.2.0/kit/core/schema_factory.py +246 -0
  54. memory_share_kit-1.2.0/kit-agent.py +10 -0
  55. memory_share_kit-1.2.0/kit-vantage.bat +13 -0
  56. memory_share_kit-1.2.0/kit.py +4 -0
  57. memory_share_kit-1.2.0/kit_agent/__init__.py +0 -0
  58. memory_share_kit-1.2.0/kit_agent/cli/__init__.py +0 -0
  59. memory_share_kit-1.2.0/kit_agent/cli/main.py +152 -0
  60. memory_share_kit-1.2.0/kit_agent/core/__init__.py +0 -0
  61. memory_share_kit-1.2.0/kit_agent/core/cache.py +42 -0
  62. memory_share_kit-1.2.0/kit_agent/core/metrics.py +160 -0
  63. memory_share_kit-1.2.0/kit_agent/core/output_contract.py +66 -0
  64. memory_share_kit-1.2.0/kit_agent/core/protocol.py +343 -0
  65. memory_share_kit-1.2.0/kit_agent/core/router.py +58 -0
  66. memory_share_kit-1.2.0/kit_agent/providers/__init__.py +0 -0
  67. memory_share_kit-1.2.0/kit_agent/providers/base.py +15 -0
  68. memory_share_kit-1.2.0/kit_agent/providers/gemini.py +73 -0
  69. memory_share_kit-1.2.0/kit_agent/providers/local.py +145 -0
  70. memory_share_kit-1.2.0/kit_agent/providers/mock.py +43 -0
  71. memory_share_kit-1.2.0/kit_agent/providers/semantic_mock.py +117 -0
  72. memory_share_kit-1.2.0/kit_agent/utils/__init__.py +0 -0
  73. memory_share_kit-1.2.0/kit_agent/utils/process.py +23 -0
  74. memory_share_kit-1.2.0/plugins/__init__.py +1 -0
  75. memory_share_kit-1.2.0/plugins/ast_scanner/__init__.py +1 -0
  76. memory_share_kit-1.2.0/plugins/ast_scanner/ast_parser.py +89 -0
  77. memory_share_kit-1.2.0/pyproject.toml +69 -0
  78. memory_share_kit-1.2.0/requirements.txt +11 -0
  79. memory_share_kit-1.2.0/runtime/__init__.py +1 -0
  80. memory_share_kit-1.2.0/runtime/cognitive_driver.py +135 -0
  81. memory_share_kit-1.2.0/runtime/journal_engine.py +147 -0
  82. memory_share_kit-1.2.0/runtime/kernel.py +121 -0
  83. memory_share_kit-1.2.0/runtime/lock_manager.py +113 -0
  84. memory_share_kit-1.2.0/runtime/paging_engine.py +44 -0
  85. memory_share_kit-1.2.0/runtime/test_lock.py +49 -0
  86. memory_share_kit-1.2.0/scripts/epoch_archive.py +41 -0
  87. memory_share_kit-1.2.0/scripts/ingest_repo.py +112 -0
  88. memory_share_kit-1.2.0/scripts/precommit.sh +40 -0
  89. memory_share_kit-1.2.0/scripts/run_stress_test.py +87 -0
  90. memory_share_kit-1.2.0/scripts/setup_hooks.py +47 -0
  91. memory_share_kit-1.2.0/scripts/smoke_test_full_local_gemini.py +51 -0
  92. memory_share_kit-1.2.0/scripts/smoke_test_gemini.py +45 -0
  93. memory_share_kit-1.2.0/scripts/test_dual_model_consistency.py +42 -0
  94. memory_share_kit-1.2.0/scripts/test_golden_path.py +51 -0
  95. memory_share_kit-1.2.0/test_cognitive.py +59 -0
  96. memory_share_kit-1.2.0/test_context_anchoring.py +106 -0
  97. memory_share_kit-1.2.0/test_plugin_root/.kit/context +4 -0
  98. memory_share_kit-1.2.0/test_plugin_root/AGENTS.md +11 -0
  99. memory_share_kit-1.2.0/test_plugin_root/kit-test.bat +2 -0
  100. memory_share_kit-1.2.0/test_plugins_safety.py +82 -0
  101. memory_share_kit-1.2.0/test_repo_root/.kit/context +5 -0
  102. memory_share_kit-1.2.0/test_repo_root/AGENTS.md +4 -0
  103. memory_share_kit-1.2.0/tests/benchmark/bench_infra.py +58 -0
  104. memory_share_kit-1.2.0/tests/benchmark/infra_test_suite.py +96 -0
  105. memory_share_kit-1.2.0/tests/benchmark/test_temporal.py +71 -0
  106. memory_share_kit-1.2.0/tests/test_agent_cli.py +18 -0
  107. memory_share_kit-1.2.0/tests/test_amsb_core.py +153 -0
  108. memory_share_kit-1.2.0/tests/test_behavioral_execution.py +142 -0
  109. memory_share_kit-1.2.0/tests/test_calibration.py +78 -0
  110. memory_share_kit-1.2.0/tests/test_chaos_stress.py +133 -0
  111. memory_share_kit-1.2.0/tests/test_cli.py +92 -0
  112. memory_share_kit-1.2.0/tests/test_dual_model_consistency.py +143 -0
  113. memory_share_kit-1.2.0/tests/test_execution_models.py +123 -0
  114. memory_share_kit-1.2.0/tests/test_fts.py +42 -0
  115. memory_share_kit-1.2.0/tests/test_golden_path.py +62 -0
  116. memory_share_kit-1.2.0/tests/test_ledger.py +43 -0
  117. memory_share_kit-1.2.0/tests/test_local_provider.py +91 -0
  118. memory_share_kit-1.2.0/tests/test_protocol_local_mode.py +345 -0
  119. memory_share_kit-1.2.0/tests/test_ranking.py +150 -0
  120. memory_share_kit-1.2.0/tests/test_reflect.py +77 -0
  121. memory_share_kit-1.2.0/tests/test_router_resilience.py +22 -0
@@ -0,0 +1,13 @@
1
+ # 🛡️ .kit (memory_share) AI DIRECTIVE (v2.0.0)
2
+ You are an Elite AI Agent acting as an Architect Guardian for the .kit engine.
3
+
4
+ ## I. CORE MANDATES
5
+ 1. **PULL-BASED ONLY**: No background sync, No MCP servers, No autonomous watchers. Interactions must be explicit CLI calls (`kit`).
6
+ 2. **DETERMINISM**: Every suggestion must honor the Graph-based SAM logic. No probabilistic "guesses" if data exists in memory.
7
+ 3. **ENGINE-FIRST**: Prioritize core stability over UI/IDE features. Keep dependencies at ZERO.
8
+ 4. **NO-GIL PREP**: Code must be thread-safe by default, adhering to the Python 3.14 "code-py-314" doctrine.
9
+
10
+ ## II. INTERACTION PROTOCOL
11
+ - Before solving: `kit recall` to fetch Ground Truth.
12
+ - After solving: `kit learn` to encode the experience.
13
+ - When explaining: Use `ARCHITECTURE.md` as the single source of Truth.
@@ -0,0 +1,8 @@
1
+ # Antigravity — environment configuration
2
+ # Copy this file to .env and fill in your values.
3
+ # Never commit .env to version control.
4
+
5
+ # Absolute path to the root of your Antigravity workspace.
6
+ # All scripts resolve brain/layer1_stream, brain/layer3_index, etc. relative to this.
7
+ # Default: two directories above brain/ops/ (i.e. the repo root when run from brain/ops/).
8
+ ANTIGRAVITY_WORKSPACE_ROOT=/path/to/your/workspace
@@ -0,0 +1,29 @@
1
+ name: Publish PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up Python 3.14
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: '3.14'
21
+
22
+ - name: Build distribution artifacts
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ python -m pip install build
26
+ python -m build
27
+
28
+ - name: Publish to PyPI
29
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,32 @@
1
+ name: Royal Guard - Engine Verification
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ verify:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - name: Set up Python 3.14
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: '3.14'
19
+
20
+ - name: Install dependencies
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ pip install .
24
+
25
+ - name: Core Stability Check
26
+ run: |
27
+ python examples/minimal_example.py
28
+
29
+ - name: API Import Honor Check
30
+ run: |
31
+ python -c "from kit.api import *; print('API imports successful')"
32
+ python -c "import runtime; print('Runtime accessible')"
@@ -0,0 +1,38 @@
1
+ # Python
2
+ __pycache__/
3
+ *.pyc
4
+ *.pyo
5
+ *.pyd
6
+ .pytest_cache/
7
+ .mypy_cache/
8
+ .ruff_cache/
9
+
10
+ # Databases & Logs
11
+ *.db
12
+ *.db-journal
13
+ *.sqlite
14
+ *.log
15
+ atlas_v1.db
16
+
17
+ # IDEs & System
18
+ .antigravity/
19
+ .memory_share_kit/
20
+ .env
21
+ .DS_Store
22
+
23
+ # Temporary
24
+ .tmp*/
25
+ _tmp*/
26
+
27
+ # .kit Memory Store
28
+ .kit/brain.db-*
29
+ .kit/brain.db.bak
30
+ .kit/*.wal
31
+ .kit/*.shm
32
+ .kit/agent_metrics.json
33
+
34
+ # Generated reports and scratch artifacts
35
+ tests/behavioral_report.md
36
+ tests/stress_test_report.md
37
+ *.diff
38
+ test_out*.txt
@@ -0,0 +1,5 @@
1
+ # .kit Project Context
2
+ # Generated: 2026-03-19 15:14:01 | Root: memory_share
3
+ # Cognition-Version: 1
4
+
5
+ - ASCII-safe dashboard output is required on Windows consoles.