Skip to content

Epic 5.11: P5b Capstone — grounding/ package integration#49

Merged
Deepfreezechill merged 3 commits into
mainfrom
epic/5.11-p5b-capstone
Apr 6, 2026
Merged

Epic 5.11: P5b Capstone — grounding/ package integration#49
Deepfreezechill merged 3 commits into
mainfrom
epic/5.11-p5b-capstone

Conversation

@Deepfreezechill

Copy link
Copy Markdown
Owner

Epic 5.11: P5b Capstone — Facade/Cleanup + Full Review

What

P5b capstone: finalize the grounding/ package extraction that decomposed
grounding_agent.py from 1,181 lines to a 197-line thin facade + 8 focused submodules.

Changes

  • grounding/init.py: Full docstring + __all__ exports for all 8 submodules
  • 32 new integration tests: package completeness, circular import detection,
    backward-compatible import paths, facade delegation, size regression guards

Metrics

Metric Value
Facade 197 lines (was 1,181 — 83% reduction)
Package modules 8 (1,063 lines total)
New tests 32 (1,754 total passed)
Skipped 127
Failures 0

P5b Complete Extraction Map

Module Lines Epic
context.py 49 5.7
messages.py 97 5.7
execution.py 273 5.8
prompts.py 61 5.8
tools.py 81 5.9
visual.py 170 5.9
workspace.py 95 5.9
results.py 237 5.10

- Upgrade grounding/__init__.py with full docstring and __all__ exports
- Add 32 P5b integration tests: package completeness, no circular imports,
  backward-compatible import paths, facade delegation, size guards
- 1,754 tests passed, 127 skipped, 0 failures

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

🔒 Phase Gate Enforcement — 🚫 FAIL

Check Result Detail
Issue linkage No linked issues found. PR must contain "Closes #N", "Fixes #N", or "Resolves #N".

Verdict: FAIL
Timestamp: 2026-04-06T22:10:37.237Z
Run: View workflow run


How to fix: Ensure all prerequisite phases are complete, or add emergency:bypass label with a ## Bypass Reason section in the PR body.

Brian Krafft and others added 2 commits April 6, 2026 14:57
- Fix circular import tests: pop entire grounding subtree, not just target module
- Add 9 async delegation tests proving facade->submodule wiring (process, tools,
  visual, workspace, results, recording)
- Add _make_agent drift guard (auto-detects attrs missing from __init__)
- Add identity assertion for backward-compat import paths (is, not just isclass)
- Strengthen truncate_messages test with token-exceeding inputs
- Add BaseAgent._step/_status to test fixtures
- 43 integration tests, 1765 total passed, 0 failures

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Strip _-prefixed symbols from grounding/__init__.py __all__ to follow
PEP 8 convention. Private helpers remain importable for the facade but
are excluded from wildcard imports.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Deepfreezechill Deepfreezechill merged commit 8653cb9 into main Apr 6, 2026
0 of 5 checks passed
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