fix(templates): use plain KEY=VALUE in BOARD_TOOLS.md.j2#289
Open
radicalgeek wants to merge 2 commits intoabhi1693:masterfrom
Open
fix(templates): use plain KEY=VALUE in BOARD_TOOLS.md.j2#289radicalgeek wants to merge 2 commits intoabhi1693:masterfrom
radicalgeek wants to merge 2 commits intoabhi1693:masterfrom
Conversation
The _parse_tools_md() parser uses a regex that expects lines matching ^[A-Z0-9_]+=value$ but the template was rendering markdown list items: - `AUTH_TOKEN=value` This mismatch caused sync_gateway_templates() to be unable to read AUTH_TOKEN back from any provisioned workspace, which caused all agents to be skipped on every subsequent template sync (unless rotate_tokens=true). Fix: render plain KEY=VALUE lines so _parse_tools_md() can parse them. Also moved role_tag assignment before first use (was at bottom of vars block). Bug discovered 2026-03-03 during fleet provisioning investigation. Affected all 32 board agents across 9 boards on the dev-team gateway.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the TOOLS.md gateway template output so the backend’s _parse_tools_md() parser can reliably re-read agent runtime settings (notably AUTH_TOKEN) during sync_gateway_templates().
Changes:
- Switch
BOARD_TOOLS.md.j2from markdown list items with backticks to plainKEY=VALUElines. - Move
role_tagassignment above its first use in the template. - Add clearer markdown structure around the identity block and notes.
You can also share your feedback on Copilot code review. Take the survey.
abhi1693
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The parse_tools_md() parser uses a regex that expects lines matching ^[A-Z0-9]+=value$ but the template was rendering markdown list items:
AUTH_TOKEN=valueThis mismatch caused sync_gateway_templates() to be unable to read AUTH_TOKEN back from any provisioned workspace, which caused all agents to be skipped on every subsequent template sync (unless rotate_tokens=true).
Fix: render plain KEY=VALUE lines so _parse_tools_md() can parse them.
Also moved role_tag assignment before first use (was at bottom of vars block).
Bug discovered 2026-03-03 during fleet provisioning investigation. Affected all 32 board agents across 9 boards on the dev-team gateway.
Task / context
Scope
Out of scope
Evidence / validation
make check(or explain what you ran instead)Screenshots (UI changes)
Docs impact
Risk / rollout notes
Checklist
origin/master(no unrelated commits)docs/reference/api.md)