Skip to content

Forge: match rendered session query results - #19

Merged
GolaraJ merged 1 commit into
mainfrom
fix/forge-session-query-materialization
Aug 18, 2026
Merged

Forge: match rendered session query results#19
GolaraJ merged 1 commit into
mainfrom
fix/forge-session-query-materialization

Conversation

@GolaraJ

@GolaraJ GolaraJ commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • accept the actual runtime detailedContent shape: exact controller SQL followed by the rendered query result
  • retain exact SQL-prefix matching rather than substring matching
  • add a regression test modeled on failed task 3a1ceae3-1f8f-4bdb-be26-4f875e8a41b1

Root cause

The bridge ran and the local event log existed, but the matcher expected detailedContent to contain only SQL. The runtime stores SQL + blank line + rendered result, so the valid completion was rejected as not found.

Validation

  • 42 Skill Forge tests pass
  • Python scripts compile
  • git diff --check passes

Accept the runtime detailedContent shape that appends the rendered result after the exact controller SQL.

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

Copilot-Session: b8cf0691-0fe3-4d67-92ce-ce2a529c400c

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes materialize-session-query.py’s event-log matcher to accept the runtime detailedContent format where the stored payload is SQL + blank line + rendered query result, preventing valid session_store_sql completions from being rejected.

Changes:

  • Update SQL matching logic to accept detailedContent that begins with the exact SQL followed by \n\n and additional rendered output.
  • Add a regression test that writes an event with detailedContent = SQL + "\n\n" + content and verifies the match returns the expected content.
Show a summary per file
File Description
plugins/repo-dreamer/skills/repository-skill-forge/scripts/materialize-session-query.py Extends detailedContent SQL matching to handle SQL-prefixed payloads that include rendered results.
plugins/repo-dreamer/skills/repository-skill-forge/tests/test_materialize_session_query.py Adds a regression test covering the SQL + blank line + rendered result detailedContent shape.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

@GolaraJ
GolaraJ merged commit b8794b9 into main Aug 18, 2026
1 check passed
@GolaraJ
GolaraJ deleted the fix/forge-session-query-materialization branch August 18, 2026 04:33
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.

2 participants