feat(registrar): verify full empty-projection rebuild
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a023c0-a0a3-7c03-b395-5a0d2757214d
This commit is contained in:
parent
5228f2e286
commit
707fb85652
3 changed files with 232 additions and 4 deletions
|
|
@ -63,12 +63,18 @@ 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(
|
||||
registrar_mode = p_registrar.add_mutually_exclusive_group()
|
||||
registrar_mode.add_argument(
|
||||
"--repair-workplan",
|
||||
default=None,
|
||||
metavar="ID",
|
||||
help="Rebuild and verify one already-identified workplan projection",
|
||||
)
|
||||
registrar_mode.add_argument(
|
||||
"--bootstrap-empty-projection",
|
||||
action="store_true",
|
||||
help="Rebuild all authoritative UUIDs after proving the repo projection is empty",
|
||||
)
|
||||
|
||||
p_cmd = sub.add_parser(
|
||||
"update-task-status",
|
||||
|
|
@ -419,6 +425,7 @@ def main(argv: list[str] | None = None) -> int:
|
|||
confirm_primary=args.confirm_primary,
|
||||
push=args.push,
|
||||
repair_workplan=args.repair_workplan,
|
||||
bootstrap_empty_projection=args.bootstrap_empty_projection,
|
||||
)
|
||||
print(json.dumps(result.to_dict(), indent=2))
|
||||
return 0 if result.status in {"applied", "noop"} else 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue