Skip to content

fix: accept builtin:// spec_path returned by list - #509

Merged
LeXwDeX merged 11 commits into
mainfrom
fix/506-accept-builtin-spec
Sep 2, 2026
Merged

LeXwDeX merged 11 commits into
mainfrom
fix/506-accept-builtin-spec

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Closes #506
Closes #507
Closes #508

Why

DAG 文档/提示词与工具实现的全面校验(2026-09-02)发现 6 处差异,其中 2 处是行为缺陷、1 处会诱导调用失败。本交付修复全部实现侧差异并校正文档。

What changed

  • fix: accept builtin:// spec_path returned by list #506 resolveSpecPath 接受 builtin://<name> 输入:剥掉 scheme 后按名走库解析链(project → global → builtin 遮蔽序与 bare name 一致);未知名按库查找报错,不再出现 cwd 拼接的扩展名错误
  • fix: workflow worker_type list excludes build and plan #507 workflow 工具的 worker_type 动态目录放开原生 primary(build/plan——blocks 编译器的默认映射目标);用户自定义 primary 与 hidden agent 仍排除,task 工具目录不变
  • docs: align dag workflow guides with schema and auto-resume behavior #508 四处文档校正:replan/extend 自动 resume 语义(手动 control(resume) 改为仅竞态失败时;措辞与工具输出 "automatic resume raced with another control op" 对齐);Node Fields 穷尽表补 review 行;Tool Reference 补 draft/guide/validate 三个 action;name 定义补前导 ./控制字符排除与 builtin:// 回传说明

Evidence

Checklist

  • Why, What changed, and Evidence are filled in.
  • specgit finish exits 0.

resolveSpecPath now strips the synthetic builtin:// marker and resolves by
name through the library chain (project shadows global shadows builtin),
so the path list advertises round-trips as a spec_path input. Unknown
builtin names fail as a library lookup instead of a cwd-joined extension
error.
Workflow blocks compile coding/prototype to build and plan blocks to
plan, but the generated worker_type catalog filtered every primary agent
out, so the model could never name the defaults explicitly. The workflow
catalog now lists native primaries (build/plan); user-defined primary
modes and hidden agents stay excluded and the task catalog is unchanged.
Four guide/schema mismatches from the 2026-09-02 verification: replan and
extend auto-resume a paused workflow (manual control(resume) after a
successful replan dies on InvalidTransitionError), the exhaustive node
field table missed review, the tool reference missed draft/guide/validate,
and the name rule missed the leading-dot and control-character exclusions
plus the builtin:// marker round-trip.
@LeXwDeX
LeXwDeX marked this pull request as ready for review September 2, 2026 04:15
The SpecGit Acceptance verdict requires required-check runs that started
at or after the draft-to-ready transition. Both CI gates only listened
to the default pull_request types, so a ready transition never produced
fresh runs and the verdict timed out waiting for them.
spec_path now mentions the builtin:// marker round-trip; the review field
states the input_mapping wiring validateReviewLifecycle enforces for diff
reviews; timeout_ms documents that the budget runs from admission (queue
wait counts, an expired queued node fails without spawning).
validateDiffReview enforces seven wiring checks beyond the two node ids
(transitive dependency chain, three input_mapping bindings, PASS-gated
condition, verdict+fingerprint output_schema), and validateReviewLifecycle
only turns them into authoring errors in deep mode — standard mode warns.
The previous description understated both.
Regenerate the parameters snapshot after the description changes (the CI
unit-test matrix never exercised parameters.test.ts, so the stale snapshot
only failed locally). Align blocks.ts with validation.ts (expired-queued-node
clause), add the capped-escalation semantics of the deadline watcher and the
deep-only final-gate requirement to the timeout/review descriptions, and sync
the worker_config guide row.
…fresh

The replay list still named specgit@^0.5.0 and omitted three specializations
the refreshed harness actually carries (45/40-minute timeout split, node 22,
hand-parsed policy.yaml), so the next re-init would replay the wrong version
and drop them.
@LeXwDeX
LeXwDeX merged commit 54a2df1 into main Sep 2, 2026
9 checks passed
@LeXwDeX
LeXwDeX deleted the fix/506-accept-builtin-spec branch September 2, 2026 07:32
LeXwDeX added a commit that referenced this pull request Sep 2, 2026
Series file for the next stable derived from graphagent-v1.0.37: the #505
resource-leak fix wave and the #509 DAG workflow-tool consistency pass,
including the review-round fixes and the reverted bounded-exit-window
attempt. Render verified locally with release-notes.ts (exit 0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant