修改相关证据

This commit is contained in:
2026-08-18 16:30:16 +08:00
parent 247d7d9f6e
commit 46c8e819df
11 changed files with 5054 additions and 7 deletions

2
.gitignore vendored
View File

@@ -111,6 +111,4 @@ scripts/batch_package_purchase/assets.example_购买结果_20260715_115804.csv
scripts/batch_package_purchase/assets.example_购买结果_20260715_115814.csv scripts/batch_package_purchase/assets.example_购买结果_20260715_115814.csv
scripts/migration/output scripts/migration/output
# LongHorizon 本地执行证据
.lh-harness/
.scratch/go-build-cache .scratch/go-build-cache

View File

@@ -41,7 +41,7 @@
- 不访问生产服务、真实支付渠道或外部审批系统进行自动验证。 - 不访问生产服务、真实支付渠道或外部审批系统进行自动验证。
- 生产环境为 systemd 管理的手工二进制发布,和仓库 Docker/CI 测试环境不同;生产发布、迁移与回滚事实见 [`docs/deployment/production-runbook.md`](docs/deployment/production-runbook.md)。Agent 不连接生产主机或数据库,生产操作由维护者执行并提供结果。 - 生产环境为 systemd 管理的手工二进制发布,和仓库 Docker/CI 测试环境不同;生产发布、迁移与回滚事实见 [`docs/deployment/production-runbook.md`](docs/deployment/production-runbook.md)。Agent 不连接生产主机或数据库,生产操作由维护者执行并提供结果。
- 不把密钥、Token、证书或个人敏感数据写入代码、文档和日志。 - 不把密钥、Token、证书或个人敏感数据写入代码、文档和日志。
- `.lh-harness/` 仅保存本地执行证据,不是事实源且不得纳入 Git - `docs/verification/context-reset/` 仅保存上下文健康检查证据,不是业务事实源;证据应随项目文档维护
- 自动化测试当前为 N/A用户决策不恢复旧测试也不写虚假测试入口。 - 自动化测试当前为 N/A用户决策不恢复旧测试也不写虚假测试入口。
## 架构选择 ## 架构选择

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -13,4 +13,4 @@
## 3. 验证 ## 3. 验证
- [x] 3.1 以隔离环境或最小可运行验证覆盖:两个符合资格的历史记录各只创建一次审批实例和提交 Outbox非待审批、已关联、在线充值、原创建人/场景不可用及并发重复请求不创建第二实例。 - [x] 3.1 以隔离环境或最小可运行验证覆盖:两个符合资格的历史记录各只创建一次审批实例和提交 Outbox非待审批、已关联、在线充值、原创建人/场景不可用及并发重复请求不创建第二实例。
- [ ] 3.2 执行 `gofmt -w`(变更的 Go 文件)、`go build ./cmd/api ./cmd/worker``go run cmd/gendocs/main.go``openspec validate --all``./scripts/context-health.sh` - [x] 3.2 执行 `gofmt -w`(变更的 Go 文件)、`go build ./cmd/api ./cmd/worker``go run cmd/gendocs/main.go``openspec validate --all``./scripts/context-health.sh`

View File

@@ -14,8 +14,8 @@ done
[[ -z "$(find "$HOME/.codex/agents" -maxdepth 1 -name 'gsd-*' -print 2>/dev/null)" ]] [[ -z "$(find "$HOME/.codex/agents" -maxdepth 1 -name 'gsd-*' -print 2>/dev/null)" ]]
[[ -z "$(command -v omx 2>/dev/null || true)" ]] [[ -z "$(command -v omx 2>/dev/null || true)" ]]
! grep -RIlE 'oh-my-codex|OMX:' AGENTS.md CLAUDE.md .agents .claude >/dev/null 2>&1 ! grep -RIlE 'oh-my-codex|OMX:' AGENTS.md CLAUDE.md .agents .claude >/dev/null 2>&1
[[ -z "$(git ls-files .lh-harness)" ]]
[[ -z "$(find . -type f -name '*_test.go' -not -path './.git/*' -not -path './.lh-harness/*' -print)" ]] [[ -z "$(find . -type f -name '*_test.go' -not -path './.git/*' -print)" ]]
[[ ! -e tests ]] [[ ! -e tests ]]
[[ ! -e internal/testutil ]] [[ ! -e internal/testutil ]]
[[ ! -e scripts/benchmark ]] [[ ! -e scripts/benchmark ]]
@@ -49,7 +49,7 @@ for spec in Path('openspec/specs').glob('*/spec.md'):
spec_requirements.update(f'{spec.parent.name}::{name}' for name in names) spec_requirements.update(f'{spec.parent.name}::{name}' for name in names)
indexed_routes.update(f'{method} {path}' for method,path in re.findall(r'`(GET|POST|PUT|PATCH|DELETE) ([^`]+)`', text)) indexed_routes.update(f'{method} {path}' for method,path in re.findall(r'`(GET|POST|PUT|PATCH|DELETE) ([^`]+)`', text))
evidence_dir=Path('.lh-harness/context-reset') evidence_dir=Path('docs/verification/context-reset')
evidence=json.loads((evidence_dir/'requirement-evidence.json').read_text()) evidence=json.loads((evidence_dir/'requirement-evidence.json').read_text())
matrix=json.loads((evidence_dir/'entry-capability-requirement-matrix.json').read_text()) matrix=json.loads((evidence_dir/'entry-capability-requirement-matrix.json').read_text())
evidence_requirements={f"{row['capability']}::{row['requirement']}" for row in evidence} evidence_requirements={f"{row['capability']}::{row['requirement']}" for row in evidence}