Skip to content

Epic 5.10: ResultFormatter + Telemetry — grounding/ package#48

Merged
Deepfreezechill merged 2 commits into
mainfrom
epic/5.10-results-telemetry
Apr 6, 2026
Merged

Epic 5.10: ResultFormatter + Telemetry — grounding/ package#48
Deepfreezechill merged 2 commits into
mainfrom
epic/5.10-results-telemetry

Conversation

@Deepfreezechill

Copy link
Copy Markdown
Owner

Epic 5.10: ResultFormatter + Telemetry

Extract final 8 methods from grounding_agent.py into grounding/results.py.

Metrics: grounding_agent.py 451->237 lines (-47%), results.py 285 lines new, 39 new tests (1722 total passed)

Review: 8eyes-impl PASS, 8eyes-sec PASS, GPT-5.4 REQUEST_CHANGES->fixed (MRO test), Opus 4.6 APPROVE

Brian Krafft and others added 2 commits April 6, 2026 10:55
Extract 8 methods (lines 188-451) from grounding_agent.py into
openspace/agents/grounding/results.py:

Pure functions (no agent param):
- build_iteration_feedback
- remove_previous_guidance
- format_tool_executions
- check_task_completion
- extract_last_assistant_message

Agent-dependent functions:
- generate_final_summary (uses agent._llm_client)
- build_final_result (routes through agent for MRO)
- record_agent_execution (uses agent._recording_manager)

grounding_agent.py reduced from 451 to 237 lines. Pure functions
bound as staticmethod; async functions use thin delegates. Removed
now-unused imports (copy, json, GroundingAgentPrompts).

38 new tests in test_grounding_results.py covering all functions
plus delegation seam verification. Full suite: 1721 passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… test, clean _FakeAgent

- Remove str(e) from error return in generate_final_summary (security)
- Add MRO adversarial regression test with subclass override sentinel
- Simplify _FakeAgent staticmethod bindings to bare function assignment
- Update exception test to verify str(e) does NOT leak

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-06T18:04:57.346Z
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.

@Deepfreezechill Deepfreezechill merged commit ddcbc8c 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