feat(registrar): repair deterministic projections

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a023c0-a0a3-7c03-b395-5a0d2757214d
This commit is contained in:
tegwick 2026-08-22 09:53:11 +02:00
parent 9bdc79a0d1
commit e656f7f6ee
3 changed files with 114 additions and 2 deletions

View file

@ -63,6 +63,12 @@ def main(argv: list[str] | None = None) -> int:
help="Confirm that --api-base is the authoritative hub",
)
p_registrar.add_argument("--push", action="store_true", help="Push the registrar commit")
p_registrar.add_argument(
"--repair-workplan",
default=None,
metavar="ID",
help="Rebuild and verify one already-identified workplan projection",
)
p_cmd = sub.add_parser(
"update-task-status",
@ -412,6 +418,7 @@ def main(argv: list[str] | None = None) -> int:
statehub_bin=args.statehub_bin,
confirm_primary=args.confirm_primary,
push=args.push,
repair_workplan=args.repair_workplan,
)
print(json.dumps(result.to_dict(), indent=2))
return 0 if result.status in {"applied", "noop"} else 1