Skip to content

Fix local gbrain trust policy config keys - #1992

Closed
JonasFocus wants to merge 1 commit into
garrytan:mainfrom
JonasFocus:fix/1988-gstack-config-local-policy
Closed

JonasFocus wants to merge 1 commit into
garrytan:mainfrom
JonasFocus:fix/1988-gstack-config-local-policy

Conversation

@JonasFocus

Copy link
Copy Markdown

Summary

  • Allow gstack-config endpoint suffixes to use alphanumeric endpoint IDs, so brain_trust_policy@local is valid for stdio/local gbrain engines.
  • Update related config tests for @local and punctuation rejection.

Testing

  • bash -n bin/gstack-config
  • bun test browse/test/gstack-config.test.ts
  • bun test test/user-slug-fallback.test.ts
  • Manual check: GSTACK_STATE_DIR=<tmp> bash bin/gstack-config set brain_trust_policy@local personal && ... get brain_trust_policy@local returns personal.

Fixes #1988

@trunk-io

trunk-io Bot commented Jun 13, 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

@time-attack

Copy link
Copy Markdown
Contributor

@16francej Please close this PR. The local GBrain trust-policy key fix already shipped in #2222 and includes the original issue attribution. There is no remaining change to take from this branch.

@capy-ai

capy-ai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Thank you for this fix! The bug it addresses (#1988) has since been fixed on main and the issue is closed, so I'm closing this PR as done. Re-verified against current main (v1.91.12.0). If you think part of your change is still missing, reply and we'll reopen. Really appreciate the contribution.

@capy-ai capy-ai Bot closed this Oct 1, 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.

bug: gstack-config key validator rejects brain_trust_policy@local for stdio engines

2 participants