@pennixrv/trellis 0.7.2-beta.34 → 0.7.2-beta.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.7.2-beta.35",
3
+ "description": "Complete normal reconciliation after recovered delegated blockers",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "Preserve validated blocked reports from recovered preparation and business turns during normal integration. Require the latest preparation to be ready and the current business input to have a complete result; validate every historical input batch without rewriting its report.",
7
+ "migrations": [],
8
+ "notes": "No task-data, binding or candidate-format migration. Upgrade the synchronized CLI/core/adapter cohort through its owner, then use native trellis update. Historical blocked evidence is not source acceptance; unresolved current blockers, missing reports, mismatched input identities and remaining work still prevent integration."
9
+ }
@@ -83,6 +83,8 @@ binding format 3 固定包、父合同、子 PRD、设置、能力、角色、
83
83
 
84
84
  `delegate-reconcile --disposition integrated` 先预览,再用 `--execute --reason ... --approval-ref ... --writer-evidence-ref <当前外部 writer 证据> --acceptance-ref <准确接受文件>` 核销。所有应完成输入都须消费并有对应候选;队列、原生运行和后台 writer 必须关闭。执行核销通过原生 `kill_agent` 关闭运行态,保留未归档的历史和 checkout,不 delete。实施阶段接受前必须完成资源核销,idle 不足。
85
85
 
86
+ 已恢复的历史输入可以保留其真实 blocked,不能为了核销补写 ready 或 result。每个历史批次仍核准确身份和消费,最新准备必须 ready/missing=[],当前业务输入必须交合格 result/remaining=[];未恢复的当前阻断不能作为接受结果。
87
+
86
88
  dirty 或半成品使用 `--disposition retained` 保全实际 HEAD/status,不要求合格 result;retained 不是成果接受。owner 后续接手完成源码时,可在有效授权内以 owner-result-ref 登记 version 1、kind=owner_result 的独立结果,包含准确 attempt、binding、base、head、changed_paths、source_commits、checks 和空 remaining,再显式请求 integrated;它不冒充旧 Agent 的消费/自检证据。
87
89
 
88
90
  记录位于 ignored `.trellis/.runtime/delegation/<child>/`,冻结输入和稳定 Agent locator 也在 runtime;PRD、设计和 owner 接受证据仍在原生任务中。旧 binding/candidate 与 meta 记录保留原合同读取、核验和安全收尾,不用于新创建或猜造投递证明。完成、取消、转移、解绑、移动及重命名前收口资源;未知状态保留现场。第五阶段需要实施返工时,主控先返回有效授权的第四阶段。
@@ -575,15 +575,22 @@ def run(args):
575
575
  native_lifecycle(record, rpc=rpc)
576
576
  if record.get("quarantined") or not record.get("inputs"):
577
577
  fail("quarantined or inputless attempt cannot be accepted as integrated")
578
+ if any(item["stage"] == "prepare" for item in record["inputs"]):
579
+ ready = candidate(record, "ready", current_head=False)
580
+ if not ready or ready.get("missing") != []:
581
+ fail("latest preparation must be ready before acceptance")
578
582
  for item in record["inputs"]:
579
583
  report = candidate(record, "ready" if item["stage"] == "prepare" else "result",
580
584
  current_head=False, input_id=item["id"])
585
+ if not report:
586
+ report = candidate(record, "blocked", current_head=False, input_id=item["id"])
581
587
  if not report:
582
588
  fail("every consumed input batch needs its own candidate before acceptance")
583
589
  if item["stage"] != "prepare":
584
590
  git(Path(record["worktree_path"]), "merge-base", "--is-ancestor",
585
591
  report["head_commit"], "HEAD")
586
- clean_result(record, report, path)
592
+ if report["kind"] == "result":
593
+ clean_result(record, report, path)
587
594
  result = candidate(record, "result") if args.disposition == "integrated" else None
588
595
  if not result and args.disposition != "retained":
589
596
  fail("bounded result and preserved source evidence required before retirement")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pennixrv/trellis",
3
- "version": "0.7.2-beta.34",
3
+ "version": "0.7.2-beta.35",
4
4
  "description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "inquirer": "^9.3.7",
36
36
  "undici": "^6.21.0",
37
37
  "zod": "^4.4.2",
38
- "@pennixrv/trellis-core": "0.7.2-beta.34"
38
+ "@pennixrv/trellis-core": "0.7.2-beta.35"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@eslint/js": "^9.18.0",