Skip to content

fix(brain): resolve create parent sections#44

Merged
alexk-dev merged 1 commit intomainfrom
feat/brain-section-path-resolution
Apr 14, 2026
Merged

fix(brain): resolve create parent sections#44
alexk-dev merged 1 commit intomainfrom
feat/brain-section-path-resolution

Conversation

@golemcore1
Copy link
Copy Markdown
Collaborator

@golemcore1 golemcore1 commented Apr 14, 2026

Summary

  • Resolve create_page parent_path through Brain before creating the page.
  • Try the exact parent path first, then a slugified title/path fallback so inputs like golem notes can resolve to golem-notes.
  • Reject parent paths that resolve to Brain pages instead of sections with a clear error.
  • Return cleaner Brain API errors by extracting error/message fields instead of exposing raw JSON response bodies.
  • Update the Brain tool schema description and add unit tests for exact lookup, slug fallback, page-as-parent rejection, missing sections, and API error formatting.
  • Bump the golemcore/brain plugin metadata to 1.0.2 and add the registry/golemcore/brain/versions/1.0.2.yaml release descriptor so the fix can be published correctly.

@golemcore1 golemcore1 force-pushed the feat/brain-section-path-resolution branch from f6529b2 to fbc6168 Compare April 14, 2026 19:19
@alexk-dev alexk-dev changed the title feat(brain): resolve create parent sections fix(brain): resolve create parent sections Apr 14, 2026
@alexk-dev alexk-dev changed the title fix(brain): resolve create parent sections fix: resolve create parent sections Apr 14, 2026
@alexk-dev alexk-dev changed the title fix: resolve create parent sections fix(brain): resolve create parent sections Apr 14, 2026
@golemcore1 golemcore1 force-pushed the feat/brain-section-path-resolution branch from fbc6168 to d205c10 Compare April 14, 2026 19:27
@golemcore1 golemcore1 force-pushed the feat/brain-section-path-resolution branch from d205c10 to 4a088a6 Compare April 14, 2026 19:35
@alexk-dev alexk-dev merged commit d3b0666 into main Apr 14, 2026
5 checks passed
@alexk-dev alexk-dev deleted the feat/brain-section-path-resolution branch April 14, 2026 19:46
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