Preserve final scoped task archive checks
Why: Keep complete archive verification after the active card is moved. Evidence: Original SELF synchronization and scoped diff receipts confirm no product or unrelated card changes. Impact: Task records only. Refs: Dev #526; RDM #354
This commit is contained in:
@@ -1048,3 +1048,5 @@ Refs: 本任务卡与 .task/artifacts/project-member-access-implementation-plan.
|
||||
下一任务建议:经单独授权,将已核验组合部署到 8788,先用 rdm.project.adopt 预览现有孤立项目,再按核对结果显式 apply,复测 weichen/test 项目可见与新会话、私人资料及跨项目隔离。前提是备份、实例/数据身份与项目映射核对;未知归属或名称碰撞须保留现场并交用户裁定。该建议尚未启动,不将源码合入视为运行实例修复。
|
||||
|
||||
本次没有部署、修改 8788 数据或回收任何工作区/分支。仅本任务卡回填归档;其他进行中的任务卡保持原状。原始过程记录按时间保留,早期“待 tag/待 CI”等状态均为历史节点。
|
||||
|
||||
归档增量的 task-sync 与范围验证通过 RECEIPT 模式生成,原始 SELF 文件位于 .task/artifacts/project-member-access-receipts/project-member-dev-archive-{sync,check}.json。归档后旧脚本无法定位 active card,故同步表没有再次追加;完整工具收据仍保留。本次闭合只改本任务卡及记录,不清理工作区;闭合 PR 另经独立 Review 和当前 HEAD CI。
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import subprocess,sys
|
||||
from pathlib import Path
|
||||
base=sys.argv[1]
|
||||
allowed_prefixes=('.task/artifacts/project-member-access-receipts/',)
|
||||
allowed={'.task/feature-project-member-access.md','.task/archive/feature-project-member-access.md'}
|
||||
files=subprocess.check_output(['git','diff','--name-only',base,'HEAD'],text=True).splitlines()
|
||||
assert files and all(p in allowed or p.startswith(allowed_prefixes) for p in files),files
|
||||
card=Path('.task/archive/feature-project-member-access.md')
|
||||
assert card.is_file() and not Path('.task/feature-project-member-access.md').exists()
|
||||
s=card.read_text()
|
||||
assert '状态:已完成' in s and 'https://git-home.u1680832.nyat.app:30319/weichen/' in s.splitlines()[2]
|
||||
assert '8788' in s
|
||||
subprocess.run(['git','diff','--check',base,'HEAD'],check=True)
|
||||
print('Scoped archive check PASS: only this task card and its original receipts changed; product and unrelated cards unchanged.')
|
||||
for p in files: print(p)
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user