Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ jobs:
{ echo "❌ .gitignore 未排除源 MD"; exit 1; }
echo "✅ 敏感本地文档受保护"

- name: 验证 .gitignore 排除精髓库(V1.10 §34)
- name: 验证 .gitignore 排除精髓库
run: |
if [ -d "_精髓库" ] || [ -d "**/_精髓库" ]; then
echo "❌ 私有知识库不应出现在仓库"
Expand All @@ -357,7 +357,7 @@ jobs:
{ echo "❌ .gitignore 未排除私有知识库"; exit 1; }
echo "✅ 私有知识库受保护"

# ===== 8. L2 self-test(mock LLM,主宪章 §33,V1.10)=====
# ===== 8. L2 self-test=====
selftest-mock:
name: L2 self-test · mock LLM e2e
runs-on: ubuntu-latest
Expand All @@ -375,7 +375,7 @@ jobs:
# 兜底:确保关键运行时模块在
pip install pydantic pydantic-settings typer rich loguru pyyaml openpyxl factory-boy faker prefect defusedxml prompt-toolkit

- name: L1 frontmatter lint(主宪章 §33 第 1 层)
- name: L1 frontmatter lint
run: |
python -m runtime.healthcheck.agent_smoke

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/selftest-weekly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 周自检 · L4 真 LLM e2e(主宪章 §33)
name: 周自检 · L4 真 LLM e2e

on:
schedule:
Expand All @@ -12,7 +12,7 @@ permissions:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

# 仅 main 分支 push 触发,fork PR 不跑(防 secrets 泄露,主宪章 §30)
# 仅 main 分支 push 触发,fork PR 不跑
jobs:
selftest-weekly:
name: L4 · 真 LLM e2e
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: trailing-whitespace
exclude: \.md$
- id: end-of-file-fixer
# upstream skill 目录不动(主宪章 §14 §27 darwin-skill / karpathy-guidelines 禁本地 fork)
# upstream skill 目录不动
exclude: ^skills/(darwin-skill|karpathy-guidelines)/
- id: check-yaml
- id: check-json
Expand Down Expand Up @@ -56,10 +56,10 @@ repos:
pass_filenames: false
always_run: true

# 防上游引用误入(主宪章 §29 + V1.10 铁律):上游参考是私有跨项目知识,绝不入 Test-Agent repo
# 防上游引用误入:上游参考是私有跨项目知识,绝不入 Test-Agent repo
- id: forbid-essence-library
name: 禁止提交 upstream 参考路径(私有跨项目知识)
entry: bash -c 'M=$(git diff --cached --name-only | grep -E "(^|/)_?精髓库(/|$)" || true); if [ -n "$M" ]; then echo "❌ 禁止提交私有上游参考内容(主宪章 §29 + V1.10 铁律)"; echo "命中文件:"; echo "$M"; echo "处置:git rm --cached <file> && 移出 repo"; exit 1; fi'
entry: bash -c 'M=$(git diff --cached --name-only | grep -E "(^|/)_?精髓库(/|$)" || true); if [ -n "$M" ]; then echo "❌ 禁止提交私有上游参考内容"; echo "命中文件:"; echo "$M"; echo "处置:git rm --cached <file> && 移出 repo"; exit 1; fi'
language: system
pass_filenames: false
always_run: true
Expand All @@ -72,7 +72,7 @@ repos:
pass_filenames: false
always_run: true

# L1 自检:agent/skill frontmatter lint(主宪章 §33,V1.10)
# L1 自检:agent/skill frontmatter lint
- id: agent-frontmatter-lint
name: Agent/Skill frontmatter L1 自检
entry: bash -c 'cd "$(git rev-parse --show-toplevel)" && python -m runtime.healthcheck.agent_smoke || exit 1'
Expand Down Expand Up @@ -102,7 +102,7 @@ repos:
# MD040(fenced-code-language) / MD014(dollar-prefix) / MD009(trailing) / MD012(multi-blank) / MD010(hard-tab)
# / MD025(single-h1) / MD026(trailing-punct):中文项目常见 nit,与现有 disable 风格一致
args: ['--disable', 'MD013', 'MD033', 'MD041', 'MD036', 'MD022', 'MD031', 'MD032', 'MD024', 'MD034', 'MD040', 'MD014', 'MD025', 'MD026', 'MD050', 'MD049', 'MD007', 'MD035', 'MD038', 'MD039', '--']
# upstream skill dirs 不改本地:darwin-skill / karpathy-guidelines(主宪章 §14 §27)
# upstream skill dirs 不改本地:darwin-skill / karpathy-guidelines
exclude: ^(skills/(darwin-skill|karpathy-guidelines)/.*)$

# 配置:项目根 .markdownlint.json 自定义规则
Expand Down
38 changes: 19 additions & 19 deletions 00-项目导航.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

---

## 零、V1.1.0 运行时层(`runtime/`)
## 零、运行时层(`runtime/`)

> 已有 16 专家 / 32 Skill(含 darwin-skill 自进化) / 79 脚本**保持不动**(宪章铁律),runtime 仅作可执行调度层。
> 已有 16 专家 / 32 Skill(含 darwin-skill 自进化) / 79 脚本**保持不动**(宪章规则),runtime 仅作可执行调度层。

| 模块 | 路径 | 用途 |
|------|------|------|
Expand All @@ -16,10 +16,10 @@
| 编排 | `runtime/orchestrator/` | Prefect 2.x flow + Direct 降级执行器(双轨) |
| API | `runtime/api/` | FastAPI 入口,多格式输入(PDF/Word/MD/exe/APK/IPA/Docker/URL/口头) |
| CLI | `runtime/cli/` | `tagent run|plan|catalog|doctor|search|install|verify|export|selftest|init|demo` |
| 导出 | `runtime/exporters/` | 用例多格式导出:xmind/markmap/opml(V1.9,用户自选) |
| 自检 | `runtime/healthcheck/` | 4 层 selftest:L1 lint/L2 mock/L3 真 LLM/L4 周自检(V1.10) |
| 配置 init | `runtime/init/` | `tagent init` 5 分钟自动组装 .env + tagent.yml + STARTUP.md(V1.12,8 类型 × 6 平台 × 5 LLM × 6 BugTracker × 6 通知 = 8640 组合) |
| 真 agent | `runtime/orchestrator/agents/` | 5 核心 expert LLM 真跑:requirements/automation/test-executor/bug-manager/test-lead(V1.14) |
| 导出 | `runtime/exporters/` | 用例多格式导出:xmind/markmap/opml |
| 自检 | `runtime/healthcheck/` | 4 层 selftest:L1 lint/L2 mock/L3 真 LLM/L4 周自检 |
| 配置 init | `runtime/init/` | `tagent init` 5 分钟自动组装 .env + tagent.yml + STARTUP.md |
| 真 agent | `runtime/orchestrator/agents/` | 5 核心 expert LLM 真跑:requirements/automation/test-executor/bug-manager/test-lead |
| 飞轮 | `runtime/storage/` | Postgres+pgvector + MinIO + Alembic |
| 观测 | `runtime/observability/` | OpenTelemetry + Loguru |
| 配置 | `runtime/config/settings.py` | pydantic-settings(`TAGENT_*` env) |
Expand Down Expand Up @@ -52,7 +52,7 @@
| `/smoke-test` | `ai/skills/smoke-test.md` | P0 冒烟(≥95% 门禁) |
| `/test-coordinator` | `ai/skills/test-coordinator.md` | 完整流程编排(自动平台路由) |
| `/regression-test` | `ai/skills/regression-test.md` | P0+P1 回归 + Flaky + JMeter 基线对比 |
| `/testcase-design` | `ai/skills/testcase-design.md` | 默认 4 Sheet Excel,V1.9 加 xmind/markmap/opml 多格式自选 |
| `/testcase-design` | `ai/skills/testcase-design.md` | 默认 4 Sheet Excel
| `/python-script-gen` | `ai/skills/python-script-gen.md` | pytest UI/API 脚本 |
| `/jmeter-script-gen` | `ai/skills/jmeter-script-gen.md` | JMeter JMX(双模式 ci_quick/full) |
| `/data-preparation` | `ai/skills/data-preparation.md` | 测试数据 + JMeter CSV |
Expand Down Expand Up @@ -271,7 +271,7 @@

---

## V1.2.0 · MCP 6 件套(2026-05-11)
## · MCP 6 件套(2026-05-11)

| MCP server | 路径 | 工具 |
|------------|------|------|
Expand All @@ -283,11 +283,11 @@
| compliance-checker | `runtime/mcp/compliance_checker/` | list_profiles/get_profile/check_compliance |

合规规则插槽:`profiles/compliance/`(10 框架空载 YAML)
Web UI MVP:`runtime/web/`(Vite+React+shadcn,4 页 + §21 L2 测试套件)
Web UI MVP:`runtime/web/`(Vite+React+shadcn,4 页 + L2 测试套件)

---

## V1.3.0 · Hermes-inspired 5 模块(2026-05-11)
## · Hermes-inspired 5 模块(2026-05-11)

| 模块 | 路径 | 用途 |
|------|------|------|
Expand All @@ -297,11 +297,11 @@ Web UI MVP:`runtime/web/`(Vite+React+shadcn,4 页 + §21 L2 测试套件)
| 后端 | `runtime/backends/` | local/docker/ssh/singularity/modal/daytona/vercel_sandbox |
| Gateway | `runtime/gateway/` | telegram/discord/slack/wechat/feishu/dingtalk/email/webhook |

运行时 prompt 全扫 / 决策不可逆 / 隔离 client / Backend+Platform 抽象。
运行时 prompt 全扫 / 不可逆操作 / 隔离 client / Backend+Platform 抽象。

---

## V1.4.0 · 教学层(2026-05-12)
## · 教学层(2026-05-12)

用户部署后可**边用边学**:exec(老手)/learn(新手)/silent(CI) 三模式 + zh/en/zh-en 三语言。

Expand All @@ -316,7 +316,7 @@ Web UI MVP:`runtime/web/`(Vite+React+shadcn,4 页 + §21 L2 测试套件)

---

## V1.5.0 · GBrain-inspired 强化(2026-05-12)
## · GBrain-inspired 强化(2026-05-12)

| 能力 | 路径 |
|------|------|
Expand All @@ -328,7 +328,7 @@ Web UI MVP:`runtime/web/`(Vite+React+shadcn,4 页 + §21 L2 测试套件)

---

## V1.6.0 · 渗透&安全 + 车载&自动驾驶(2026-05-12)
## · 渗透&安全 + 车载&自动驾驶(2026-05-12)

### 2 新专家(平台扩展 6+7)

Expand Down Expand Up @@ -356,11 +356,11 @@ Web UI MVP:`runtime/web/`(Vite+React+shadcn,4 页 + §21 L2 测试套件)

总数:14 专家 → **16** | 14 skill → **32**

installing/upstream-licensing 收录铁律
installing/upstream-licensing 收录规则

---

## V1.7.0 · Karpathy + ECC + Essence 自动汲取(2026-05-12)
## · Karpathy + ECC + Essence 自动汲取(2026-05-12)

### 新 skill(7 个)

Expand All @@ -382,11 +382,11 @@ installing/upstream-licensing 收录铁律。

总数:14 → 16 专家 | 14 → **32** skill

marketplace/agent-introspection/essence-watcher 铁律
marketplace/agent-introspection/essence-watcher 规则

---

## V1.8.0 · byox + Marketplace(2026-05-12)
## · byox + Marketplace(2026-05-12)

### 教学层 KB 扩 13 类

Expand All @@ -404,4 +404,4 @@ marketplace/agent-introspection/essence-watcher 铁律。
| `runtime/marketplace/` | catalog + verifier + installer |
| CLI `tagent search/list/install/uninstall/verify` | 5 子命令 |

byox/build-your-own 收录铁律
byox/build-your-own 收录规则
Loading
Loading