{
  "schema": "mathcast.d15.registry-activity-ui/v1",
  "plan_code": "D15-020",
  "status": "VERIFIED_CONTRACT",
  "runtime_started": false,
  "screens": ["article_registry_raw","writer_activity_current_work"],
  "source_of_truth": ["registry_api","activity_event_log","artifact_manifests","lifecycle_contract"],
  "legacy_reference": {"path":"/article-manager.html","role":"visual_reference_only","authoritative":false},
  "registry_row_required": ["article_id","registry_code","title","dek","project_id","created_at","updated_at","age_bucket","stage","publication_status","current_revision_id","approved_revision_id","published_revision_id","source_count","resource_ids","asset_summary","qa_summary","planned_topic_id","run_id","last_activity_at","attention_reason"],
  "detail_panels": ["stage_chain","revisions","sources_evidence_fact_ledger","safe_html_preview","asset_prompt_rights","qa_findings_usefulness","ads_recommendations","activity_events"],
  "filters": ["now","last_hour","today","custom_interval","topic","resource","run_id","stage","publication_status","qa_result","blocked","has_images","attention_reason"],
  "search_fields": ["article_id","registry_code","title","slug","resource_id","topic_id","activity_message"],
  "default_sort": ["updated_at DESC","priority DESC","article_id ASC"],
  "activity_view": {"required":["run_id","article_or_topic","stage","heartbeat","lease_expiry","capacity_decision","last_checkpoint","pause_reason","planned_topics","resource","current_artifact","next_action","retry_count","stop_reason"],"event_fields":["event_id","created_at","actor","stage","state","message","resource","checkpoint_id","reason_code"],"cursor_pagination":true,"ticker_is_projection":true,"ticker_is_source_of_truth":false,"restore_from_log_after_reload":true,"stale_without_heartbeat":true},
  "actions": {
    "open":"read_only",
    "edit":"new_immutable_revision",
    "retry":"retryable_failure_only",
    "cancel":"CANCEL_REQUESTED_then_terminal_state",
    "run_qa":"create_qa_task",
    "rework":"REWORK_REQUIRED_with_reason",
    "promote_ready":"qa_pass_full_package_operator_confirmation",
    "publish":"guarded_publisher_only_not_mvp_ui"
  },
  "action_requirements": ["session_or_csrf","project_scope","expected_revision_or_hash","idempotency_key","audit_event"],
  "ui_states": ["LOADING","EMPTY","SUCCESS","PARTIAL","STALE","ERROR","BLOCKED","CANCELLED","PERMISSION_DENIED"],
  "security": ["no_raw_html_in_main_dom","sandbox_or_sanitized_preview","no_credentials_or_private_tokens","safe_request_error","project_scoped_data"],
  "accessibility": ["visible_focus","keyboard_operable","descriptive_labels","live_region_for_confirmed_events","mobile_no_overflow","reduced_motion"],
  "fixtures": ["fresh_article","one_hour_article","empty_filter","cursor_pagination","stale_heartbeat","partial_evidence","blocked_resource","retry_conflict","duplicate_edit","cancel_after_checkpoint","unauthorized_project","ready_without_qa","broken_preview","long_title","mobile","reduced_motion","reconnect_no_duplicate_events"],
  "rollback": {"fallback":"API_ONLY_MANUAL_MODE","request_error_does_not_change_status":true,"keep_last_confirmed_activity":true,"retry_same_idempotency_key":true},
  "not_run": ["live_endpoints","mcp_tools","registry_migrations","qwen","publisher"]
}
