fix(core): encode GitLab version-endpoint auth in dag-init probe - #314
Merged
Conversation
feat(core): release v1.0.23 — built-in /dag-init and /dag-auto ultra-flow commands
…t probe GitLab's /api/v4/version requires authentication by API design, so a healthy self-hosted instance answers a bare curl with 401. The probe text listed the authenticated call as an alternative, so agents following it verbatim burned a failed round before discovering this (hit live against git.ycgame.com). Encode both facts: a 401 is positive evidence that the endpoint exists and answers, and glab api version is the re-verification step after auth passes.
This was referenced Aug 17, 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.
Closes #312
问题
/dag-init自建 GitLab 探测段把裸 curl 放第一位、认证调用写成"或者"——而 GitLab 的/api/v4/version按 API 设计要求认证,健康实例对裸请求返回 401 是标准行为。照文本执行的 agent 必吃一次失败才反应过来(git.ycgame.com 实弹已复现:curl 401 → glab 认证通道兜底)。修复(提示词卫生)
改写
dag-init.txt探测段,编码两个认知点:glab api version复核验证
bun typecheck✅bun test test/plugin/command.test.ts21/21 ✅(新增两条锚点断言:401 is POSITIVE、re-verify with glab api version)后续 agent 按文本一次通过自建实例探测,不再消耗失败回合。