玉澜
03b3cf68e4
feat(coverage-gate): log files exempted for having no executable statements
...
Silently dropping non-executable changed files made the exemption
invisible in CI logs; each exempted path is now reported to stderr in
sorted order.
2026-07-28 21:13:40 +08:00
玉澜
bbdf843ef3
fix(fetch-mcp-metadata): count registry stubs as unmatched in coverage
...
matched_tools claimed every surface tool matched even when entries were
registry stubs with no live MCP metadata, and unmatched_tools was
hardcoded to 0. Coverage now excludes stubs from matched_tools, reports
them as unmatched, and a registry JSON parse failure warns instead of
silently producing a stub-only snapshot. The schema catalog policy
invariant is relaxed to match the honest accounting.
2026-07-28 21:13:40 +08:00
玉澜
5c30d01522
fix(coverage-gate): exempt files without executable statements
...
A changed production Go file with no function bodies (pragma carriers such
as internal/cli/gen.go, doc-only files) can never appear in a coverage
profile, so the missing-profile check failed every PR touching one. Parse
changed files and exempt those without executable statements; unreadable
or unparsable files stay conservative.
2026-07-28 18:05:19 +08:00
玉澜
96d0d430e6
Merge upstream main into feat/command-surface-naming
2026-07-28 16:12:38 +08:00
玉澜
c76c30a0b7
Merge upstream main into feat/command-surface-naming
2026-07-23 14:12:18 +08:00
上官玄
6d7cc41284
fix(auth): harden legacy token compatibility
2026-07-23 12:21:58 +08:00
修雨
6e070a7e24
ci: tighten PR coverage gate
2026-07-20 17:14:35 +08:00
修雨
25c70aeb24
ci: align admission gates and changelog fast path
2026-07-19 23:59:48 +08:00
修雨
6cfa9e3afb
ci: fast-path changelog-only pull requests
2026-07-19 23:11:04 +08:00
玉澜
51dc237d8a
feat: declarative LeafSpec command framework + schema generation/consumption separation
...
== LeafSpec command framework (internal/helpers/leaf.go) ==
Declarative command construction: LeafSpec/LeafFlag/NewLeafCommand with
Call (pluggable dispatch), LeafInt, PostMount, Trim, Validate. Collapses
per-command hand-written required validation, alias/env fallback, value
transform, and toolArgs assembly into one declarative path.
== devapp migration (28/31 commands) ==
All MCP-direct devapp leaf commands migrated to LeafSpec. Factories
(devAppCall/devAppCallCursor/devAppMeta) fold 33 repeated closures.
fakeDevAppRunner asserts toolArgs for every migrated command. 4 complex
commands (delete/robot submit/result/config) kept hand-written.
== Schema generation/consumption separation ==
- gen.go: isolated //go:generate pragmas from business code.
- command_meta.go: ResolveMeta(cliPath) -> CommandMeta{Identity,Safety,Selection}.
- command_safety.go: SafetyForCLIPath + RenderSafetyAnnotation; safety metadata
flows from embedded catalog into --help output.
- calendar.go HelpFunc fix: delegates to root HelpFunc at help-time.
- schema_catalog_structure.go: closed catalog structure validation gate.
== Registry + catalog per-product sharding ==
schema_command_registry and schema_catalog split into per-product shards,
eliminating concurrent-PR merge conflicts on these files.
== MCP metadata refresh tool ==
cmd/fetch_mcp_metadata: iterates 26 MCP server endpoints, merges with previous
data for cross-server interface_ref. make fetch-mcp-metadata target.
== AGENTS.md ==
Documents the generation/consumption split.
Verified: make policy exit 0, drift zero, all tests pass.
2026-07-19 09:38:43 +08:00
修雨
f9b37486fd
Merge remote-tracking branch 'origin/main' into codex/pr620-fix
2026-07-16 12:10:39 +08:00
修雨
975f378559
Merge pull request #632 from shangguanxuan633-lab/codex/jq18-schema-policy-portability
...
ci(schema): support jq 1.8 policy evaluation
2026-07-16 11:27:23 +08:00
修雨
8f4ab176a8
ci: add code admission gate ( #53 )
...
* ci: add code admission gate
* ci: fix fork release baseline
(cherry picked from commit 7ff2f3a5f0435209908822e141a6355fc6fa4aa6)
2026-07-16 10:26:18 +08:00
修雨
474ce88d47
fix(ci): harden CLI smoke and Schema compatibility gates ( #629 )
...
* fix(ci): harden PR gate enforcement
* fix(schema): allow compatible positional evolution
2026-07-16 09:59:21 +08:00
修雨
42627e769e
fix(ci): keep platform coverage profiles bounded
2026-07-15 23:21:49 +08:00
修雨
6c192c2bf4
Merge remote-tracking branch 'origin/main' into codex/fix-pr-592-merge-gates
...
# Conflicts:
# internal/cli/schema_agent_metadata/index.json
# internal/cli/schema_agent_metadata_audit.json
# internal/cli/schema_catalog.json
2026-07-15 23:10:37 +08:00
修雨
be5ce782b6
fix(shortcut): close review and CI gaps
2026-07-15 23:05:04 +08:00
shangguanxuan.sgx
adc87a92e4
ci(schema): support jq 1.8 policy evaluation
2026-07-15 18:55:19 +08:00
zhengyubai
3ba0b90f9e
refactor(policy): reuse built binaries
2026-07-15 16:58:43 +09:00
SCzheng and 修雨
809d026b7e
ci: add CLI compatibility and PR quality gates ( #602 )
...
* ci(interface): 添加接口完整性和CLI烟雾测试检查
- 在Makefile中新增interface-integrity、update-interface-baseline、cli-smoke和mock-mcp-smoke目标
- 实现接口基线脚本以比较CLI公共命令树与基线文件
- 新增脚本确保二进制文件可渲染所有顶层命令的帮助信息
- 添加mock-mcp-smoke测试验证HTTP和stdio MCP请求/响应传输
- 在GitHub Actions CI工作流中加入interface-integrity、cli-smoke和mock-mcp-smoke检查
- 新增AI行为检查工作流,限制AI生成PR的改动范围和禁改保护文件
- 文档中补充PR质量门禁要求及接口变更流程说明
* feat(policy): 增加多项兼容性和完整性检查
- Makefile中新增reset-interface-baseline、schema-compatibility、update-schema-baseline、skill-command-integrity等目标
- CI流程新增schema-compatibility和skill-command-integrity步骤
- 文档中详细说明接口兼容性基线更新和重置流程及schema基线注意事项
- 实现interface-baseline工具支持兼容性重置和合并,多项接口兼容性检查逻辑完善
- 新增schema-compat工具用于标准化schema列表及兼容性检查与合并
- 新增skill-command-integrity检查确保技能中引用命令存在
- 为interface-baseline和schema-compat添加单元测试覆盖基本兼容性规则
* test(skill-command-check): 增加命令解析和解析结果测试用例
- 补充对 parseReference 函数的边界情况和跳过条件的测试
- 新增 resolveCommandReference 函数测试,覆盖有效、无效及跳过场景
- 增加 isPlaceholder 函数的测试,验证占位符识别准确性
refactor(skill-command-check): 优化命令路径解析和验证逻辑
- 使用 resolveCommandReference 统一处理命令解析结果,清晰区分有效、无效和跳过情况
- 新增 commandResolution 类型及常量,提升代码可读性和扩展性
- 调整 parseReference 增加对 shell 组合符 “ & ” 的跳过处理
docs(mono): 更新最佳实践和产品文档命令示例
- 优化《best_practices/07-minutes.md》中行动项与摘要拉取示例命令,提升准确性
- 修改产品文档中 ALIDOC 表格数据和多维表格记录相关命令,命令路径更规范统一
- 同步多端技能文档,确保命令示例一致且正确
* ci: check interface against PR merge-base
* feat(policy): enforce CLI contract compatibility
* ci: enforce PR coverage thresholds
* ci: add fail-closed CI gate
* ci: adapt schema compatibility gate to runtime catalog
* fix(ci): close schema compatibility gate gaps
* test(auth): skip POSIX mode assertion on Windows
* test(auth): scope POSIX file-backend checks
* fix(ci): enforce native platform coverage
* test(ci): make skill paths portable
---------
Co-authored-by: 修雨 <huyizhou.hyz@alibaba-inc.com >
2026-07-15 14:53:34 +08:00
玉澜 and Cursor
5856a897d1
feat(schema): split human hints into metadata and selection
...
Own safety/gates/parameters in metadata/ and Agent prose in selection/,
drop the monolithic Manual file, and keep confirmation aligned with
per-tool runtime_gate.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 13:40:09 +08:00
玉澜 and Cursor
987273f32b
feat(schema): align confirmation with runtime via index+products hints
...
Make agent hints authoritative for confirmation by loading
internal/cli/schema_hints/index.json + products/*, and gate catalog
user_required to the reviewed runtime_gates set.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-14 10:33:49 +08:00
玉澜
2879683cad
fix(schema): enforce final delivery and runtime contracts
2026-07-14 08:11:27 +08:00
玉澜
6d97bf7204
Merge upstream/main into feat/schema-on-main
...
Complete the registry-first Schema delivery invariants, bind the event command surface, and preserve the event subprocess contract from main.
2026-07-14 01:25:05 +08:00
玉澜
1f2b992e9c
fix(schema): align capability contracts and delivery
2026-07-13 22:51:38 +08:00
玉澜
fc415919d1
fix(ci): remove ripgrep dependency from schema policy
2026-07-13 21:15:56 +08:00
玉澜
125f0c8fe0
Merge remote-tracking branch 'upstream/main' into feat/schema-on-main
...
# Conflicts:
# test/scripts/package_script_test.go
2026-07-13 21:09:27 +08:00
玉澜
f6c2ce655d
refactor(schema): unify registry-first delivery
2026-07-13 19:49:40 +08:00
玉澜
d41ea586bf
fix(schema): enforce catalog and interface completeness
2026-07-13 14:01:26 +08:00
玉澜
45e0423d46
fix(schema): enforce command and safety completeness
2026-07-13 11:50:20 +08:00
玉澜
cb4d1c215c
feat(schema): generate catalog from live Cobra tree without fallback
...
Stop registering runtime catalog fallback commands and make command-surface generation use the real Cobra tree directly. Regenerate schema surface, agent metadata and catalog from executable commands (20 products / 537 tools), add runtime-surface completeness hints, and update catalog gates/tests to use dynamic counts instead of old 504/21/461 constants.
This makes schema describe the actual executable CLI surface; drift/catalog gates and go test ./internal/cli ./internal/app ./internal/generator/... pass.
2026-07-11 16:07:23 +08:00
玉澜
3f3ece933b
feat(schema): complete reviewed agent metadata
2026-07-11 12:23:55 +08:00
玉澜
753866867f
feat(schema): complete catalog contract and smoke gates
2026-07-11 11:21:44 +08:00
玉澜
a62bcdf460
fix(schema): audit fallback parameter bindings
2026-07-11 10:42:02 +08:00
玉澜
561525a18b
feat(schema): generate stable agent command catalog
2026-07-11 10:28:10 +08:00
修雨
fc9acb9007
fix: align smart category args and runtime network errors ( #591 )
...
* fix: align smart category args and remove eval fixtures
* fix: classify runtime network failures
* fix: validate smart category inputs
2026-07-10 21:40:36 +08:00
fantiu
b994aea18a
fix: correct structure about security.
2026-03-28 21:42:06 +08:00
柏荣
a1dffe454d
逻辑优化
2026-03-28 17:51:22 +08:00
tianlei.qjb
5f938d3675
init
2026-03-27 17:55:57 +08:00