sidefx 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.
Files changed (47) hide show
  1. sidefx-0.1.0/.claude-plugin/marketplace.json +25 -0
  2. sidefx-0.1.0/.claude-plugin/plugin.json +21 -0
  3. sidefx-0.1.0/.github/workflows/ci.yml +29 -0
  4. sidefx-0.1.0/.gitignore +18 -0
  5. sidefx-0.1.0/AGENTS.md +38 -0
  6. sidefx-0.1.0/LICENSE +21 -0
  7. sidefx-0.1.0/PKG-INFO +563 -0
  8. sidefx-0.1.0/PLAN.md +58 -0
  9. sidefx-0.1.0/README.md +515 -0
  10. sidefx-0.1.0/bin/sidefx +47 -0
  11. sidefx-0.1.0/evals/chaos_suite.py +40 -0
  12. sidefx-0.1.0/hooks/hooks.json +15 -0
  13. sidefx-0.1.0/pyproject.toml +70 -0
  14. sidefx-0.1.0/skills/sidefx/SKILL.md +46 -0
  15. sidefx-0.1.0/src/sidefx/__init__.py +60 -0
  16. sidefx-0.1.0/src/sidefx/__main__.py +6 -0
  17. sidefx-0.1.0/src/sidefx/chaos.py +2805 -0
  18. sidefx-0.1.0/src/sidefx/cli.py +478 -0
  19. sidefx-0.1.0/src/sidefx/config.py +619 -0
  20. sidefx-0.1.0/src/sidefx/doctor.py +463 -0
  21. sidefx-0.1.0/src/sidefx/guidance.py +190 -0
  22. sidefx-0.1.0/src/sidefx/hook.py +311 -0
  23. sidefx-0.1.0/src/sidefx/journal.py +1483 -0
  24. sidefx-0.1.0/src/sidefx/mcp_proxy.py +2570 -0
  25. sidefx-0.1.0/src/sidefx/preflight.py +1014 -0
  26. sidefx-0.1.0/src/sidefx/py.typed +0 -0
  27. sidefx-0.1.0/src/sidefx/receipt.py +593 -0
  28. sidefx-0.1.0/src/sidefx/reconcilers/__init__.py +504 -0
  29. sidefx-0.1.0/src/sidefx/reconcilers/base.py +153 -0
  30. sidefx-0.1.0/src/sidefx/reconcilers/git_push.py +818 -0
  31. sidefx-0.1.0/src/sidefx/reconcilers/github.py +774 -0
  32. sidefx-0.1.0/src/sidefx/resolve.py +264 -0
  33. sidefx-0.1.0/src/sidefx/session.py +348 -0
  34. sidefx-0.1.0/src/sidefx/wrapper.py +2061 -0
  35. sidefx-0.1.0/tests/test_adoption_polish.py +1727 -0
  36. sidefx-0.1.0/tests/test_chaos_eval.py +592 -0
  37. sidefx-0.1.0/tests/test_cli.py +319 -0
  38. sidefx-0.1.0/tests/test_concurrency.py +231 -0
  39. sidefx-0.1.0/tests/test_config.py +258 -0
  40. sidefx-0.1.0/tests/test_journal.py +945 -0
  41. sidefx-0.1.0/tests/test_mcp_proxy.py +1890 -0
  42. sidefx-0.1.0/tests/test_preflight.py +570 -0
  43. sidefx-0.1.0/tests/test_receipt.py +349 -0
  44. sidefx-0.1.0/tests/test_reconcilers.py +1038 -0
  45. sidefx-0.1.0/tests/test_resolve.py +470 -0
  46. sidefx-0.1.0/tests/test_wrapper.py +1030 -0
  47. sidefx-0.1.0/uv.lock +108 -0
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "sidefx",
3
+ "owner": {
4
+ "name": "Solomon Wakhungu",
5
+ "url": "https://github.com/1solomonwakhungu"
6
+ },
7
+ "metadata": {
8
+ "description": "Outbound effects journal, transparent stdio MCP proxy, CLI mutation wrapper, crash reconciler, and ground-truth session receipts for AI agents.",
9
+ "version": "0.1.0"
10
+ },
11
+ "plugins": [
12
+ {
13
+ "name": "sidefx",
14
+ "source": "./",
15
+ "description": "Write-ahead effects journal, MCP proxy, CLI mutation wrapper, crash reconciler, and Stop-hook session receipts for Claude Code.",
16
+ "version": "0.1.0",
17
+ "author": {
18
+ "name": "Solomon Wakhungu"
19
+ },
20
+ "homepage": "https://github.com/1solomonwakhungu/sidefx",
21
+ "repository": "https://github.com/1solomonwakhungu/sidefx",
22
+ "license": "MIT"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "sidefx",
3
+ "version": "0.1.0",
4
+ "description": "Outbound effects journal, transparent stdio MCP proxy, CLI mutation wrapper, crash reconciler, and ground-truth session receipts for AI agents.",
5
+ "author": {
6
+ "name": "Solomon Wakhungu",
7
+ "url": "https://github.com/1solomonwakhungu"
8
+ },
9
+ "homepage": "https://github.com/1solomonwakhungu/sidefx",
10
+ "repository": "https://github.com/1solomonwakhungu/sidefx",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "mcp",
14
+ "idempotency",
15
+ "journal",
16
+ "agents",
17
+ "safety",
18
+ "receipts"
19
+ ],
20
+ "skills": "./skills/"
21
+ }
@@ -0,0 +1,29 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ python-version: ["3.11", "3.13"]
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v5
18
+ with:
19
+ python-version: ${{ matrix.python-version }}
20
+ - name: Run checks
21
+ run: |
22
+ if [ ! -f pyproject.toml ]; then
23
+ echo "Bootstrap commit (no pyproject.toml yet); skipping."
24
+ exit 0
25
+ fi
26
+ uv sync --dev
27
+ uv run ruff check .
28
+ uv run ruff format --check .
29
+ uv run pytest -v
@@ -0,0 +1,18 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ .venv/
5
+ venv/
6
+ dist/
7
+ build/
8
+ *.egg-info/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .coverage
12
+ htmlcov/
13
+ .DS_Store
14
+ .compact-ledger/
15
+ .sidefx/
16
+ *.db
17
+ *.db-wal
18
+ *.db-shm
sidefx-0.1.0/AGENTS.md ADDED
@@ -0,0 +1,38 @@
1
+ # AGENTS.md — sidefx
2
+
3
+ ## Mission
4
+ Build **sidefx**, an outbound effects journal, transparent stdio MCP proxy, CLI mutation wrapper, crash/timeout reconciler, and ground-truth session side-effects receipt tool for AI agents.
5
+
6
+ ## Tech Stack & Constraints
7
+ - **Language:** Python `>=3.11` managed with `uv`.
8
+ - **Runtime dependencies:** **Zero** third-party runtime dependencies (Python standard library only: `sqlite3`, `json`, `urllib`, `subprocess`, `hashlib`, `uuid`, `argparse`, `threading`) so startup is fast and installs cleanly across Python 3.11–3.15.
9
+ - **Dev dependencies:** `pytest`, `ruff`.
10
+ - **Package layout:** `src/sidefx/` with console entry point `sidefx = "sidefx.cli:main"`.
11
+ - **Safety first:** Write-ahead durable SQLite journaling (WAL mode + `synchronous=FULL`) BEFORE any mutating side effect is dispatched. Never blindly re-execute a `pending` action whose outcome is unknown.
12
+
13
+ ## Quality Bar
14
+ - `uv run pytest` passes 100% with zero skipped tests.
15
+ - `uv run ruff check .` and `uv run ruff format --check .` pass cleanly.
16
+ - Chaos fault-injection tests prove **zero duplicate remote writes** across pre-commit crashes, post-commit response-loss crashes, and concurrent worker retries.
17
+ - Clean, human-scannable receipts built strictly from durable journal rows.
18
+
19
+ ## Mandatory Worker PR, Review & Merge Workflow
20
+ Every implementation worker thread owns its PR end-to-end (the orchestrator does NOT review or merge PRs):
21
+ 1. Work in your assigned git worktree branched from `origin/main`.
22
+ 2. Implement your milestone cleanly with thorough unit + integration tests.
23
+ 3. Run `uv run pytest && uv run ruff check . && uv run ruff format --check .`.
24
+ 4. Commit with clear commit messages, push to `origin`, open a PR targeting `main` via `gh pr create`, and call `link_pull_request` with the full PR URL.
25
+ 5. **Mandatory Fable 5.2 Review:**
26
+ - Call `orchestrator_capabilities` once in your thread before your first `delegate_task`.
27
+ - Start a review delegate using `delegate_task` with:
28
+ - `role: "review"`
29
+ - `mode: "wait"` (or `"async"` and wait for wakeup)
30
+ - `target: { "providerInstanceId": "claudeAgent_claude_proxy", "model": "claude-fable-5-2", "options": { "effort": "high" } }`
31
+ - Pass the PR URL/number, `git diff origin/main...HEAD` (or instructions to inspect it), and test output. Ask Fable 5.2 for an adversarial review covering concurrency/race conditions, crash windows, SQLite durability, JSON-RPC framing edge cases, security, and test coverage.
32
+ - Fix all valid findings, re-run tests & ruff, and push updates. If changes were non-trivial, run a fresh `delegate_task` re-check with Fable 5.2 (`claudeAgent_claude_proxy` / `claude-fable-5-2`) until approved with no blocking issues.
33
+ 6. **CI & Self-Merge:**
34
+ - Check PR checks (`gh pr view <num> --json statusCheckRollup`). If GitHub Actions CI is still running, call `watch_pull_request` and end your turn to wake on completion (do NOT use `sleep` or `gh --watch`).
35
+ - If `origin/main` moved while you worked and there are conflicts, `git fetch origin && git rebase origin/main`, resolve conflicts, re-run tests, and push.
36
+ - Once Fable 5.2 approves and CI is green, merge your PR yourself:
37
+ `gh pr merge <num> --squash --delete-branch`
38
+ - Report the merged PR URL, Fable 5.2 review summary, and final test results in your final message.
sidefx-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Solomon Wakhungu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.