Repository navigation
fix: transactional SQLite/WAL state and CI evidence #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: CI | ||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| state-durability: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
| - name: Install dependencies | ||
| run: pip install -r requirements-dev.txt | ||
| - name: Run state durability tests | ||
| run: | | ||
| cd "${GITHUB_WORKSPACE%/*}" | ||
| python -m pytest uaw/tests/test_state_durability.py -q |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| __pycache__/ | ||
| *.py[cod] | ||
| .pytest_cache/ | ||
| .venv/ | ||
| *.sqlite3 | ||
| *.sqlite3-wal | ||
| *.sqlite3-shm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # UAW integration status | ||
|
|
||
|
|
||
| Method: static inspection of all 80 Python files in `dominicusin/uaw` (working clone) plus grep for network clients, explicit mock markers and auth references. | ||
|
|
||
| | Group | Files | Status | Evidence | | ||
| |---|---|---|---| | ||
| | Adapter HTTP core | `adapters/base.py` | REAL transport helper | `aiohttp.ClientSession` at :245, `self._session.request` at :259; used by 8 adapter modules | | ||
| | Adapters: calendly, canva, figma, gamma, teams, vercel, wix | `adapters/*.py` | REAL-capable (credential-dependent) | import base, call request helpers; auth/token references present; no live call executed in this audit | | ||
| | Excalidraw adapter | `adapters/excalidraw_adapter.py` | MIXED | explicit `return a mock response` :424, `return mock data` :470, `Return mock JSON data` :485; other actions use base HTTP | | ||
| | GitHub integration | `integrations/github_integration.py` | EXTERNAL DEPENDENCY (unverified) | `_execute_tool` dynamically imports `github_app` module (:431-456); fails with IntegrationError if unavailable. No direct HTTP in repo | | ||
| | Linear integration | `integrations/linear_integration.py` | MOCK | `_execute_tool` :486-493 returns fixed `{"success": True, "data": {"message": ...}}` | | ||
| | Notion integration | `integrations/notion_integration.py` | MOCK | `_execute_tool` :509-512 marked "For now, return a mock response" | | ||
| | Box / Document Library integrations | `integrations/box_integration.py`, `document_library_integration.py` | MOCK | "For now, return a mock response" :432 / :328 | | ||
| | Asana / Calendar / Slack / Netlify integrations | `integrations/*.py` | UNVERIFIED STUB | no network client, no explicit mock marker, no auth references in file | | ||
| | Webhook server | `automation/webhook_server.py` | MOCK MODE | logs "Webhook server ready (mock mode)" :462 | | ||
|
|
||
| State layer (separate finding): `core/state_manager.py:77,93` and `core/uaw_core.py:186,210` read/write state via `json.dump` — no transaction, lock, or recovery. Idempotency mentioned only in `config/automation_config.py` and docs, not enforced in execution path. | ||
|
|
||
| Conclusion: UAW has real HTTP plumbing in adapters, but the GitHub/Linear/Notion control-plane integrations that the migration plan assumed are not live (GitHub requires an absent external module; Linear/Notion are mocks). Do not claim three live integrations. Next work: UAW-001/002 — capability registry with explicit real/mock/unsupported status, then transactional state and idempotency before any autonomy escalation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve
UAW_LOG_DIRwhen constructing the logger.If a caller imports
AuditLoggerand then setsUAW_LOG_DIR, the constructor still uses the value captured at import. Logs go to the previous directory. Resolve the default inside__init__so the override applies at construction.Ruff (0.17.4)
[warning] 136-136: Do not perform function call
os.getenvin argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable(B008)
[warning] 136-136: Do not perform function call
Path.homein argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable(B008)
Do not require a home directory at import time.
If
HOMEis unset and the process UID has no home-directory entry,Path.home()raises during import, even whenUAW_LOG_DIRis set or the caller intends to passlog_dir. Resolve the fallback lazily. The defaults inUAWCoreneed the same treatment.Ruff (0.17.4)
[warning] 136-136: Do not perform function call
os.getenvin argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable(B008)
[warning] 136-136: Do not perform function call
Path.homein argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable(B008)