Skip to content

test: pin the image-probe wiring; hold logger and paths to the domain rule - #30

Merged
bits-bytes-nn merged 2 commits into
mainfrom
refactor/hex-cleanup
Nov 1, 2026
Merged

bits-bytes-nn merged 2 commits into
mainfrom
refactor/hex-cleanup

Conversation

@bits-bytes-nn

Copy link
Copy Markdown
Owner

Hexagonal restructure, stacked on #29 (merge that first). Pure refactor: the golden snapshot test (delivered HTML, envelope, S3 keys, ledger) passes unchanged at this stage, together with ruff, mypy app scripts and pytest with the coverage ratchet.

The conftest stub of the probe on app.main patched a name nothing reads,
and no fixture post carries an image, so dropping every image passed the
suite. Replace it with a test that the handler hands the summarizer the
real probe. The architecture test now scans app/logger.py and
app/paths.py, which the domain imports, and main.py takes its paths from
app.paths instead of counting parent directories.

@bits-bytes-nn
bits-bytes-nn force-pushed the refactor/hex-split-main branch from 9bc1401 to 9ecc780 Compare November 1, 2026 01:30
@bits-bytes-nn
bits-bytes-nn force-pushed the refactor/hex-split-main branch from 9ecc780 to a0dcbb9 Compare November 1, 2026 01:32
@bits-bytes-nn
bits-bytes-nn force-pushed the refactor/hex-split-main branch from a0dcbb9 to 7f97cb1 Compare November 1, 2026 01:33
@bits-bytes-nn
bits-bytes-nn force-pushed the refactor/hex-split-main branch from 7f97cb1 to cb9fad9 Compare November 1, 2026 01:35
@bits-bytes-nn
bits-bytes-nn force-pushed the refactor/hex-split-main branch from cb9fad9 to bdb2b8b Compare November 1, 2026 01:37
@bits-bytes-nn
bits-bytes-nn force-pushed the refactor/hex-split-main branch from bdb2b8b to 76b8979 Compare November 1, 2026 01:39
@bits-bytes-nn
bits-bytes-nn changed the base branch from refactor/hex-split-main to main November 1, 2026 01:41
Nothing at import time stops a domain module from importing boto3 or an
adapter from importing a service, so the layering would erode one stray
import at a time. tests/test_architecture.py reads every module under
app/domain, app/application and app/adapters with ast and fails on an
import that points outward. The one exception is botocore.exceptions in
llm_batching.py: the retry classifier has to recognise the SDK errors that
langchain_aws re-raises unchanged.

design.md now describes the domain/application/adapters tree, the ports and
the composition root, and every module path that moved; the READMEs point
at the new locations; the CHANGELOG records the restructuring.
… rule

The conftest stub of the probe on app.main patched a name nothing reads,
and no fixture post carries an image, so dropping every image passed the
suite. Replace it with a test that the handler hands the summarizer the
real probe. The architecture test now scans app/logger.py and
app/paths.py, which the domain imports, and main.py takes its paths from
app.paths instead of counting parent directories.
@bits-bytes-nn
bits-bytes-nn merged commit 8dd207f into main Nov 1, 2026
3 of 6 checks passed
@bits-bytes-nn
bits-bytes-nn deleted the refactor/hex-cleanup branch November 1, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant