Skip to content

Epic 5.7: SkillContext + MessageSafety — grounding/ package#45

Merged
Deepfreezechill merged 2 commits into
mainfrom
epic/5.7-context-messages
Apr 6, 2026
Merged

Epic 5.7: SkillContext + MessageSafety — grounding/ package#45
Deepfreezechill merged 2 commits into
mainfrom
epic/5.7-context-messages

Conversation

@Deepfreezechill

Copy link
Copy Markdown
Owner

Epic 5.7 — SkillContext + MessageSafety (P5b Start)

What

First extraction of grounding_agent.py (1,181 lines) into grounding/ package:

  • grounding/context.py (68 lines): set_skill_context, clear_skill_context, has_skill_context, set_skill_registry
  • grounding/messages.py (125 lines): cap_message_content, truncate_messages + _MAX_SINGLE_CONTENT_CHARS

Key Fix

Opus 4.6 + GPT-5.4 both caught subclass safety regression: _truncate_messages path
wasn't forwarding _MAX_SINGLE_CONTENT_CHARS through to cap_message_content.
Fixed by adding cap parameter to truncate_messages() and threading through delegate.

Review

  • /8eyes impl: PASS (all 6 delegates verified)
  • /8eyes sec: PASS (pre-existing INFO logging noted, deferred to P6)
  • /collab Opus 4.6: REQUEST CHANGES -> subclass cap fix -> resolved
  • /collab GPT-5.4: REQUEST CHANGES -> same subclass cap fix -> resolved
  • 34 new tests, 1,610 total passed, 127 skipped

Brian Krafft and others added 2 commits April 6, 2026 10:06
- Create openspace/agents/grounding/ package
- Extract set_skill_context, clear_skill_context, has_skill_context,
  set_skill_registry into grounding/context.py (68 lines)
- Extract cap_message_content, truncate_messages into
  grounding/messages.py (120 lines)
- grounding_agent.py methods become thin delegates
- 33 new tests (14 context + 19 messages)
- 1,609 passed, 127 skipped

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add cap parameter to truncate_messages() so subclass overrides of
  _MAX_SINGLE_CONTENT_CHARS flow through both call paths
- grounding_agent.py delegate forwards self._MAX_SINGLE_CONTENT_CHARS
- Add test_custom_cap_forwarded proving cap propagation
- Found by Opus 4.6 + GPT-5.4 /collab review (both flagged same issue)
- 1,610 passed, 127 skipped

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-06T17:12:18.915Z
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 cf28723 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