Private
Public Access
0
0
Commit Graph

6 Commits

Author SHA1 Message Date
ed 4b07e9341c test(app_controller): offloading - verify Result unwrap in success and error paths
Adds 2 tests to tests/test_app_controller_offloading.py covering the
fix from commit 26e57577:

1. test_offload_entry_payload_tool_call_unwraps_result
   - Confirms _on_comms_entry with kind=tool_call produces a [REF:script_NNNN.ps1]
     reference in payload['script'] and the offloaded file exists with the
     original script content. This is the canonical happy path that exercises
     the unwrap ref_result.ok + ref_result.data branch.

2. test_offload_entry_payload_preserves_script_on_log_tool_call_error
   - Mocks session_logger.log_tool_call to return Result(errors=[...]) and
     asserts that payload['script'] is preserved unchanged AND a debug log
     is emitted via caplog. This is the failure-path that exercises the
     ref_result.errors branch with logging.debug per Heuristic #19.

Both tests use the existing tmp_session_dir and app_controller fixtures
from test_app_controller_offloading.py. The Result / ErrorInfo / ErrorKind
imports are added to the test file's import block.

Refs: 26e57577 (Task 1.3 fix)
Refs: spec.md FR5
2026-06-18 19:33:10 -04:00
ed b5e512f483 feat(sdm): inject structural dependency mapping tags across codebase
Adds [C: caller] tags to functions/methods and [M: mutation] / [U: usage] tags to class variables based on cross-module call analysis.
2026-05-13 22:35:52 -04:00
ed b2fdca0c3d remove(ai_client): delete unused stub and proxy files
Deleted:
- src/ai_client_stub.py
- src/ai_client_proxy.py

Fixed test imports to use ai_client instead of ai_client_stub.
2026-05-13 16:03:54 -04:00
ed 12f16e9a11 fix(ai_client_proxy): add _pending_lock threading.Lock
And fix test_discussion_takes_gui.py patches to use ai_client_stub
2026-05-13 11:24:58 -04:00
ed 8c06c1767b refactor(sdm): Global pass with refined 'External Only' SDM tags. Pruned redundant internal references and fixed indentation logic in injector. Verified full project compilation. 2026-05-09 15:00:35 -04:00
ed 7063bead12 feat(logs): Implement file-based offloading for scripts and tool outputs 2026-03-08 20:51:27 -04:00