Skip to content

Fix single-page gbrain lookups for compiled_truth and lowercase slugs - #4316

Closed
atharva081106 wants to merge 1 commit into
garrytan:mainfrom
atharva081106:fix/brain-cache-page-lookup
Closed

atharva081106 wants to merge 1 commit into
garrytan:mainfrom
atharva081106:fix/brain-cache-page-lookup

Conversation

@atharva081106

Copy link
Copy Markdown
Contributor

Fixes #4265. Normalizes single-page gbrain slugs to lowercase, reads compiled_truth/content/timeline (ignoring read-mode strings in body) with a raw markdown fallback, reports page_not_found separately from unreachable errors, and adds roundtrip regression tests.

@trunk-io

trunk-io Bot commented Nov 12, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Thanks @atharva081106. This fixes #4265, which was already on our list. We're picking it up: we'll check it against gbrain's current page output, bring it onto current main ourselves and credit you when it lands.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you for this. We're picking up the idea. A maintainer agent working through a batch of fixes (our tracking thread GSTA-804) will first reproduce the problem on current main. If it reproduces, the agent rebuilds the fix on main with you credited as co-author, because we don't merge outside branches directly, and we'll close this PR with a link when it lands. If it no longer reproduces, we'll close this and say what changed.

@capy-ai

capy-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you! A narrower version of this fix landed in #4685, which is now merged, with you credited as co-author: it reads compiled_truth/content under the lowercase slug. The not-found message and the old-gbrain markdown fallback were left out to keep the change small. Closing this PR.

@capy-ai capy-ai Bot closed this Nov 22, 2026
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.

gstack-brain-cache: single-page entity lookups always miss (reads page.body from gbrain get --json; mixed-case slug)

1 participant