feat(web): review owner record handoffs

This commit is contained in:
Your Name
2026-05-21 19:42:39 +08:00
parent f6967b065f
commit f09dd099e7
8 changed files with 454 additions and 1 deletions

View File

@@ -338,6 +338,7 @@ def validate(root: Path) -> None:
"s2_87_iwooos_owner_response_formal_record_candidate_preflight_board",
"s2_88_iwooos_owner_response_formal_record_candidate_outcome_board",
"s2_89_iwooos_owner_response_formal_record_owner_handoff_board",
"s2_90_iwooos_owner_response_formal_record_owner_handoff_review_board",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -542,6 +543,11 @@ def validate(root: Path) -> None:
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_owner_response_formal_record_owner_handoff_board",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_owner_response_formal_record_owner_handoff_review_board",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
@@ -6899,6 +6905,49 @@ def validate(root: Path) -> None:
iwooos_projection_page,
text,
)
assert_text_contains(
"iwooos_page.owner_response_formal_record_owner_handoff_review_items",
iwooos_projection_page,
"ownerResponseFormalRecordOwnerHandoffReviewItems",
)
assert_text_contains(
"iwooos_page.owner_response_formal_record_owner_handoff_review_testid",
iwooos_projection_page,
'data-testid="iwooos-owner-response-formal-record-owner-handoff-review-board"',
)
assert_text_contains(
"iwooos_page.owner_response_formal_record_owner_handoff_review_component",
iwooos_projection_page,
"OwnerResponseFormalRecordOwnerHandoffReviewBoard",
)
for text in [
"owner_response_formal_record_owner_handoff_review_check_count=7",
"owner_response_formal_record_owner_handoff_review_passed_count=0",
"owner_response_formal_record_owner_assigned_count=0",
"owner_response_formal_record_created_count=0",
"owner_response_formal_record_approved_count=0",
"owner_response_formal_record_runtime_gate_count=0",
"owner_response_formal_record_owner_handoff_review_only=true",
"owner_response_formal_record_owner_assignment_authorized=false",
"owner_response_formal_record_write_authorized=false",
"owner_response_formal_record_approval_authorized=false",
"owner_response_formal_record_execution_authorized=false",
"runtime_execution_authorized=false",
"active_runtime_gate_count=0",
"action_buttons_allowed=false",
"not_authorization=true",
"secret_value_collection_allowed=false",
"repo_creation_authorized=false",
"refs_sync_authorized=false",
"workflow_modification_authorized=false",
"github_primary_switch_authorized=false",
"gitea_disablement_authorized=false",
]:
assert_text_contains(
"iwooos_page.owner_response_formal_record_owner_handoff_review_boundary",
iwooos_projection_page,
text,
)
for key in [
"title",
"subtitle",
@@ -7431,6 +7480,56 @@ def validate(root: Path) -> None:
list(web_messages_en["iwooos"]["ownerResponseFormalRecordOwnerHandoffBoard"]["items"].keys()),
key,
)
for key in [
"title",
"subtitle",
"checkLabel",
"reviewLabel",
"guardLabel",
"boundaryTitle",
"summary",
"items",
]:
assert_contains(
"web_messages.zh-TW.iwooos.ownerResponseFormalRecordOwnerHandoffReviewBoard",
list(web_messages_zh["iwooos"]["ownerResponseFormalRecordOwnerHandoffReviewBoard"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.ownerResponseFormalRecordOwnerHandoffReviewBoard",
list(web_messages_en["iwooos"]["ownerResponseFormalRecordOwnerHandoffReviewBoard"].keys()),
key,
)
for key in ["checks", "passed", "assigned", "runtime"]:
assert_contains(
"web_messages.zh-TW.iwooos.ownerResponseFormalRecordOwnerHandoffReviewBoard.summary",
list(web_messages_zh["iwooos"]["ownerResponseFormalRecordOwnerHandoffReviewBoard"]["summary"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.ownerResponseFormalRecordOwnerHandoffReviewBoard.summary",
list(web_messages_en["iwooos"]["ownerResponseFormalRecordOwnerHandoffReviewBoard"]["summary"].keys()),
key,
)
for key in [
"packetCompleteness",
"recordOwnerIdentityScope",
"authorityBoundaryMatch",
"evidenceVersionConfirm",
"reviewerNoteConfirm",
"mutationRequestReject",
"runtimeCutoverSeparation",
]:
assert_contains(
"web_messages.zh-TW.iwooos.ownerResponseFormalRecordOwnerHandoffReviewBoard.items",
list(web_messages_zh["iwooos"]["ownerResponseFormalRecordOwnerHandoffReviewBoard"]["items"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.ownerResponseFormalRecordOwnerHandoffReviewBoard.items",
list(web_messages_en["iwooos"]["ownerResponseFormalRecordOwnerHandoffReviewBoard"]["items"].keys()),
key,
)
owner_summary = owner_rollup["summary"]
assert_equal("owner_rollup.total_received_response_count", owner_summary["total_received_response_count"], 0)