Skip to content

zrwangems/dsh-zrwang-plugin / ars/skills/academic-paper

academic-paper

Flagged

学术论文写作:按 IMRaD 或领域结构成稿,含大纲、论证地图、双语摘要、图表与题注、引用格式转换、返修与逐条回复、AI 使用声明。Triggers: write a paper, academic paper, paper outline, revise paper, reviewer comments, rebuttal, citation check, abstract | 写论文, 论文大纲, 修改论文, 审稿意见, 返修, 审稿回复, 引文核对, 写摘要。

FileKindSize
SKILL.mdskill md65.4 KB
_shared/ARCHITECTURE.mdmarkdown51.7 KB
_shared/MODE_REGISTRY.mdmarkdown6.7 KB
_shared/agents/compliance_agent.mdmarkdown9.4 KB
_shared/artifact_reproducibility_pattern.mdmarkdown9.8 KB
_shared/benchmark_report.schema.jsonconfig2.7 KB
_shared/benchmark_report_pattern.mdmarkdown8.8 KB
_shared/bibliographic_integrity_signals.mdmarkdown8.1 KB
_shared/collaboration_depth_rubric.mdmarkdown11.5 KB
_shared/compliance_checkpoint_protocol.mdmarkdown8.9 KB
_shared/compliance_report.schema.jsonconfig8.1 KB
_shared/contracts/README.mdmarkdown54.7 KB
_shared/contracts/activity/adjudication_activity_input.schema.jsonconfig18.5 KB
_shared/contracts/activity/adjudication_activity_store.schema.jsonconfig18.7 KB
_shared/contracts/audit/audit_jsonl.schema.jsonconfig5.4 KB
_shared/contracts/audit/audit_sidecar.schema.jsonconfig8.4 KB
_shared/contracts/audit/audit_verdict.schema.jsonconfig5.4 KB
_shared/contracts/audit/cross_document_consistency_advisory.schema.jsonconfig20.4 KB
_shared/contracts/audit/cross_document_consistency_advisory_draft.schema.jsonconfig23.4 KB
_shared/contracts/audit/cross_document_source_manifest.schema.jsonconfig6.3 KB
_shared/contracts/audit/tortured_phrase_advisory.schema.jsonconfig30.9 KB
_shared/contracts/audit/tortured_phrase_snapshot.schema.jsonconfig4.9 KB
_shared/contracts/audit/tortured_phrase_snapshot_manifest.schema.jsonconfig7.3 KB
_shared/contracts/capability/stage_capability_matrix.jsonconfig23.5 KB
_shared/contracts/claim_standing/candidate_ledger.schema.jsonconfig23.1 KB
_shared/contracts/claim_standing/query_plan.schema.jsonconfig12.7 KB
_shared/contracts/claim_standing/query_plan_v1_1.schema.jsonconfig20.3 KB
_shared/contracts/claim_standing/retrieval_input.schema.jsonconfig14.4 KB
_shared/contracts/claim_standing/stance_record.schema.jsonconfig11.7 KB
_shared/contracts/claim_standing/transmission_ledger.schema.jsonconfig7.6 KB
_shared/contracts/cross_model/codex_citation_receipt.schema.jsonconfig4.7 KB
_shared/contracts/cross_model/codex_citation_request.schema.jsonconfig986 B
_shared/contracts/cross_model/promotion_bakeoff_sealed_commitment.schema.jsonconfig1.5 KB
_shared/contracts/cross_model/promotion_bakeoff_sealed_reveal.schema.jsonconfig1.5 KB
_shared/contracts/degradation_registry.jsonconfig42.5 KB
_shared/contracts/evaluator/full.jsonconfig6.3 KB
_shared/contracts/evidence/claim_registry.schema.jsonconfig2.3 KB
_shared/contracts/evidence/claim_registry_coverage_report.schema.jsonconfig4.8 KB
_shared/contracts/evidence/evidence_row.schema.jsonconfig14.3 KB
_shared/contracts/evidence/evidence_row_v1_1.schema.jsonconfig11.4 KB
_shared/contracts/evidence/evidence_row_v1_2.schema.jsonconfig21.8 KB
_shared/contracts/evidence/evidence_row_v1_3.schema.jsonconfig10.7 KB
_shared/contracts/human_subjects/authority_profile_registry.schema.jsonconfig16.7 KB
_shared/contracts/human_subjects/committee_correspondence.schema.jsonconfig9.9 KB
_shared/contracts/human_subjects/content_coverage_advisory.schema.jsonconfig19.9 KB
_shared/contracts/human_subjects/irb_context_record.schema.jsonconfig12.1 KB
_shared/contracts/human_subjects/resolved_authority_context.schema.jsonconfig11.8 KB
_shared/contracts/human_subjects/review_pathway_rule_trace.schema.jsonconfig9.5 KB
_shared/contracts/human_subjects/review_pathway_trace_request.schema.jsonconfig4.8 KB
_shared/contracts/human_subjects/submission_packet_inventory.schema.jsonconfig8.5 KB
_shared/contracts/human_subjects/submission_packet_manifest.schema.jsonconfig32.2 KB
_shared/contracts/passport/audit_artifact_entry.schema.jsonconfig10.8 KB
_shared/contracts/passport/bibliographic_integrity_signal.schema.jsonconfig48.9 KB
_shared/contracts/passport/citation_provenance.schema.jsonconfig4.8 KB
_shared/contracts/passport/citation_verification_summary.schema.jsonconfig8.2 KB
_shared/contracts/passport/claim_audit_result.schema.jsonconfig7.8 KB
_shared/contracts/passport/claim_drift.schema.jsonconfig3.8 KB
_shared/contracts/passport/claim_intent_manifest.schema.jsonconfig6.6 KB
_shared/contracts/passport/constraint_violation.schema.jsonconfig3.6 KB
_shared/contracts/passport/excluded_source_entry.schema.jsonconfig1.7 KB
_shared/contracts/passport/experiment_alignment_result.schema.jsonconfig4.8 KB
_shared/contracts/passport/experiment_provenance_entry.schema.jsonconfig10.0 KB
_shared/contracts/passport/human_read_log.schema.jsonconfig3.8 KB
_shared/contracts/passport/inquiry_ledger_ref.schema.jsonconfig881 B
_shared/contracts/passport/literature_corpus_entry.schema.jsonconfig30.3 KB
_shared/contracts/passport/preregistration_artifact.schema.jsonconfig4.3 KB
_shared/contracts/passport/rejection_log.schema.jsonconfig3.3 KB
_shared/contracts/passport/reset_ledger_entry.schema.jsonconfig7.1 KB
_shared/contracts/passport/run_ledger.schema.jsonconfig8.0 KB
_shared/contracts/passport/standing_constraint_entry.schema.jsonconfig2.6 KB
_shared/contracts/passport/temporal_audit_results.schema.jsonconfig8.8 KB
_shared/contracts/passport/terminal_policies.schema.jsonconfig8.1 KB
_shared/contracts/passport/timeline.schema.jsonconfig4.7 KB
_shared/contracts/passport/uncited_assertion.schema.jsonconfig3.3 KB
_shared/contracts/passport/uncited_audit_failure.schema.jsonconfig4.4 KB
_shared/contracts/passport/user_attested_read_resolution.schema.jsonconfig3.2 KB
_shared/contracts/passport/version_records.schema.jsonconfig4.9 KB
_shared/contracts/patch/block_manifest.schema.jsonconfig2.1 KB
_shared/contracts/patch/legacy/v1_0/revision_patch.schema.jsonconfig5.3 KB
_shared/contracts/patch/revision_patch.schema.jsonconfig8.9 KB
_shared/contracts/pdf/pdf_content_classifier_diagnostic.schema.jsonconfig1.2 KB
_shared/contracts/pdf/pdf_content_classifier_worker.schema.jsonconfig2.2 KB
_shared/contracts/pdf/pdf_read_preflight.schema.jsonconfig6.8 KB
_shared/contracts/re_review/input_manifest.schema.jsonconfig7.6 KB
_shared/contracts/re_review/legacy/v1_0/input_manifest.schema.jsonconfig6.2 KB
_shared/contracts/re_review/legacy/v1_0/precommitment.schema.jsonconfig8.9 KB
_shared/contracts/re_review/legacy/v1_0/traceability.schema.jsonconfig34.2 KB
_shared/contracts/re_review/legacy/v1_0/verdict_record.schema.jsonconfig10.5 KB
_shared/contracts/re_review/precommitment.schema.jsonconfig8.6 KB
_shared/contracts/re_review/traceability.schema.jsonconfig37.7 KB
_shared/contracts/re_review/verdict_record.schema.jsonconfig10.5 KB
_shared/contracts/research_workflow/inquiry_branch_ledger.schema.jsonconfig17.0 KB
_shared/contracts/research_workflow/research_workflow_profile.schema.jsonconfig7.2 KB
_shared/contracts/research_workflow/research_workflow_profile_selection_receipt.schema.jsonconfig3.9 KB
_shared/contracts/review_target/constructive_review_findings.schema.jsonconfig7.0 KB
_shared/contracts/review_target/criteria_registry.schema.jsonconfig4.0 KB
_shared/contracts/review_target/review_criteria_binding_manifest.schema.jsonconfig7.9 KB
_shared/contracts/review_target/review_criteria_source_receipt.schema.jsonconfig5.6 KB
_shared/contracts/review_target/review_target_context.schema.jsonconfig4.5 KB
_shared/contracts/review_target/review_target_declaration.schema.jsonconfig4.6 KB
_shared/contracts/reviewer/full.jsonconfig3.7 KB
_shared/contracts/reviewer/methodology_focus.jsonconfig2.2 KB
_shared/contracts/reviewer/review_panel_provenance.schema.jsonconfig7.8 KB
_shared/contracts/reviewer/review_panel_provenance_carrier.schema.jsonconfig4.1 KB
_shared/contracts/reviewer/review_panel_provenance_input.schema.jsonconfig3.5 KB
_shared/contracts/revision/author_adjudication.schema.jsonconfig7.8 KB
_shared/contracts/revision/author_adjudication_input.schema.jsonconfig1.2 KB
_shared/contracts/revision/claim_strength_drift_disposition.schema.jsonconfig3.6 KB
_shared/contracts/revision/claim_strength_drift_disposition_input.schema.jsonconfig3.1 KB
_shared/contracts/revision/claim_strength_drift_findings.schema.jsonconfig4.2 KB
_shared/contracts/revision/claim_surface_manifest.schema.jsonconfig3.3 KB
_shared/contracts/revision/integrity_correction_authorization.schema.jsonconfig4.3 KB
_shared/contracts/revision/integrity_correction_authorization_input.schema.jsonconfig1.5 KB
_shared/contracts/revision/integrity_correction_list.schema.jsonconfig1.8 KB
_shared/contracts/revision/integrity_pass_receipt.schema.jsonconfig809 B
_shared/contracts/revision/revision_evidence_bundle.schema.jsonconfig4.9 KB
_shared/contracts/revision/revision_roadmap.schema.jsonconfig11.2 KB
_shared/contracts/submission/format_profile.example.yamlconfig971 B
_shared/contracts/submission/format_profile.schema.jsonconfig4.6 KB
_shared/contracts/submission/submission_verification_report.schema.jsonconfig10.3 KB
_shared/contracts/submission/venue_profile.schema.jsonconfig4.1 KB
_shared/contracts/writer/full.jsonconfig3.6 KB
_shared/cross_model_verification.mdmarkdown83.3 KB
_shared/description-original.mdmarkdown1.2 KB
_shared/dsh-runtime.mdmarkdown1.5 KB
_shared/evals_lift_report.schema.jsonconfig5.0 KB
_shared/ground_truth_isolation_pattern.mdmarkdown16.0 KB
_shared/handoff_schemas.mdmarkdown96.9 KB
_shared/human_subjects_authority_registry.jsonconfig49.5 KB
_shared/mode_spectrum.mdmarkdown5.2 KB
_shared/model_tiering.mdmarkdown12.6 KB
_shared/output_language_pair.mdmarkdown7.7 KB
_shared/policy_data/nature_policy.mdmarkdown3.9 KB
_shared/prisma_trAIce_protocol.mdmarkdown10.2 KB
_shared/raise_framework.mdmarkdown7.5 KB
_shared/references/authority_content_coverage_advisory_protocol.mdmarkdown14.0 KB
_shared/references/claim_standing_candidate_ledger_protocol.mdmarkdown19.2 KB
_shared/references/claim_strength_ladder.mdmarkdown5.5 KB
_shared/references/cross_document_consistency_advisory_protocol.mdmarkdown13.5 KB
_shared/references/evidence_row_protocol.mdmarkdown14.4 KB
_shared/references/firm_rules.mdmarkdown11.0 KB
_shared/references/human_subjects_authority_protocol.mdmarkdown13.1 KB
_shared/references/intent_clarification_protocol.mdmarkdown11.9 KB
_shared/references/irb_terminology_glossary.mdmarkdown12.4 KB
_shared/references/per_source_method_weaknesses.mdmarkdown4.2 KB
_shared/references/protected_hedging_phrases.mdmarkdown8.9 KB
_shared/references/psychometric_terminology_glossary.mdmarkdown8.7 KB
_shared/references/review_criteria_consumer_protocol.mdmarkdown10.3 KB
_shared/references/review_form_note.mdmarkdown11.3 KB
_shared/references/review_pathway_rule_trace_protocol.mdmarkdown8.3 KB
_shared/references/routing_core.mdmarkdown5.7 KB
_shared/references/submission_packet_manifest_protocol.mdmarkdown13.6 KB
_shared/references/word_count_conventions.mdmarkdown9.0 KB
_shared/research_workflow_profiles/field_general.jsonconfig1.2 KB
_shared/review_criteria_registry.jsonconfig11.5 KB
_shared/review_criteria_sources/msr-2027-technical-papers.2026-08-24.jsonconfig2.0 KB
_shared/review_criteria_sources/sigsoft-empirical-standards.2026-08-24.jsonconfig1.4 KB
_shared/sprint_contract.schema.jsonconfig19.0 KB
_shared/style_calibration_protocol.mdmarkdown6.9 KB
_shared/templates/codex_audit_multifile_template.mdmarkdown16.7 KB
agents/abstract_bilingual_agent.mdmarkdown12.5 KB
agents/argument_builder_agent.mdmarkdown11.5 KB
agents/citation_compliance_agent.mdmarkdown27.0 KB
agents/draft_writer_agent.mdmarkdown57.1 KB
agents/formatter_agent.mdmarkdown64.5 KB
agents/intake_agent.mdmarkdown26.1 KB
agents/literature_strategist_agent.mdmarkdown47.2 KB
agents/peer_reviewer_agent.mdmarkdown30.5 KB
agents/revision_coach_agent.mdmarkdown20.6 KB
agents/socratic_mentor_agent.mdmarkdown28.5 KB
agents/structure_architect_agent.mdmarkdown19.5 KB
agents/visualization_agent.mdmarkdown17.8 KB
examples/chinese_paper_example.mdmarkdown21.1 KB
examples/clinical_citation_verification_checklist.mdmarkdown4.4 KB
examples/clinical_epistemic_status_example.mdmarkdown6.6 KB
examples/commitment_ledger_example.mdmarkdown8.1 KB
examples/imrad_hei_example.mdmarkdown23.3 KB
examples/literature_review_example.mdmarkdown30.8 KB
examples/plan_mode_guided_writing.mdmarkdown34.3 KB
examples/revision_mode_example.mdmarkdown20.1 KB
examples/revision_recovery_example.mdmarkdown41.2 KB
examples/version_family_reconciliation_example.mdmarkdown3.8 KB
references/abstract_writing_guide.mdmarkdown13.2 KB
references/academic_writing_style.mdmarkdown8.2 KB
references/anti_leakage_protocol.mdmarkdown5.0 KB
references/apa7_chinese_citation_guide.mdmarkdown14.6 KB
references/apa7_extended_guide.mdmarkdown7.2 KB
references/changelog.mdmarkdown3.4 KB
references/citation_format_switcher.mdmarkdown8.0 KB
references/committee_correspondence_protocol.mdmarkdown7.0 KB
references/credit_authorship_guide.mdmarkdown14.3 KB
references/disclosure_mode_protocol.mdmarkdown54.5 KB
references/domain_evidence_profiles.mdmarkdown4.8 KB
references/failure_paths.mdmarkdown14.9 KB
references/funding_statement_guide.mdmarkdown12.5 KB
references/hei_domain_glossary.mdmarkdown7.4 KB
references/intro_title_rhetoric_guide.mdmarkdown9.3 KB
references/journal_submission_guide.mdmarkdown9.3 KB
references/latex_template_reference.mdmarkdown10.3 KB
references/mode_selection_guide.mdmarkdown18.3 KB

_shared/contracts/audit/tortured_phrase_advisory.schema.json

View on GitHub
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/Imbad0202/academic-research-skills/shared/contracts/audit/tortured_phrase_advisory.schema.json",
  "title": "Own-draft tortured-phrase advisory",
  "description": "Closed, replay-bound own-draft advisory for deterministic local matching against one exact supplied snapshot and detached manifest. HEURISTIC-ADVISORY describes the epistemic meaning of a list match, not whether matching execution is deterministic. A match requires human review and never establishes papermill, AI, or author origin; absence of a match never certifies a draft as clean.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "layer",
    "evaluation_status",
    "surface",
    "input_binding",
    "check_status",
    "finding",
    "reason_code",
    "counts",
    "matches",
    "boundary",
    "report_sha256"
  ],
  "properties": {
    "schema_version": {
      "const": "tortured-phrase-advisory/1.0"
    },
    "layer": {
      "const": "HEURISTIC-ADVISORY"
    },
    "evaluation_status": {
      "const": "UNMEASURED"
    },
    "surface": {
      "const": "own_draft"
    },
    "input_binding": {
      "$ref": "#/$defs/input_binding"
    },
    "check_status": {
      "enum": [
        "checked",
        "not_checked",
        "degraded"
      ]
    },
    "finding": {
      "enum": [
        "detected",
        "not_detected",
        "unresolved"
      ]
    },
    "reason_code": {
      "$ref": "#/$defs/reason_code"
    },
    "counts": {
      "$ref": "#/$defs/counts"
    },
    "matches": {
      "type": "array",
      "maxItems": 4096,
      "items": {
        "$ref": "#/$defs/match"
      }
    },
    "boundary": {
      "$ref": "#/$defs/boundary"
    },
    "report_sha256": {
      "$ref": "#/$defs/sha256"
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "check_status": {
            "const": "checked"
          }
        },
        "required": [
          "check_status"
        ]
      },
      "then": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "properties": {
                  "status": {
                    "const": "loaded"
                  }
                }
              }
            }
          },
          "finding": {
            "enum": [
              "detected",
              "not_detected"
            ]
          },
          "reason_code": {
            "const": "CHECK_COMPLETED"
          },
          "counts": {
            "properties": {
              "unknown_segments": {
                "const": 0
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "check_status": {
            "const": "not_checked"
          }
        },
        "required": [
          "check_status"
        ]
      },
      "then": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "properties": {
                  "status": {
                    "const": "not_checked"
                  }
                }
              }
            }
          },
          "finding": {
            "const": "unresolved"
          },
          "reason_code": {
            "const": "SNAPSHOT_NOT_PROVIDED"
          },
          "counts": {
            "$ref": "#/$defs/empty_counts"
          },
          "matches": {
            "maxItems": 0
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "check_status": {
            "const": "degraded"
          }
        },
        "required": [
          "check_status"
        ]
      },
      "then": {
        "properties": {
          "finding": {
            "const": "unresolved"
          },
          "reason_code": {
            "enum": [
              "SNAPSHOT_NOT_PROVIDED",
              "SNAPSHOT_MANIFEST_INVALID",
              "SNAPSHOT_BYTES_INVALID",
              "SNAPSHOT_PROFILE_UNSUPPORTED",
              "SNAPSHOT_HASH_MISMATCH",
              "SNAPSHOT_RULES_UNSUPPORTED",
              "SNAPSHOT_RESOURCE_LIMIT",
              "DOCUMENT_EMPTY",
              "DOCUMENT_PARSE_DEGRADED",
              "MATCH_RESOURCE_LIMIT"
            ]
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "finding": {
            "const": "detected"
          }
        },
        "required": [
          "finding"
        ]
      },
      "then": {
        "properties": {
          "check_status": {
            "const": "checked"
          },
          "reason_code": {
            "const": "CHECK_COMPLETED"
          },
          "matches": {
            "minItems": 1
          },
          "counts": {
            "properties": {
              "matched_rule_count": {
                "minimum": 1
              },
              "rule_match_count": {
                "minimum": 1
              },
              "unique_instance_count": {
                "minimum": 1
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "finding": {
            "const": "not_detected"
          }
        },
        "required": [
          "finding"
        ]
      },
      "then": {
        "properties": {
          "check_status": {
            "const": "checked"
          },
          "reason_code": {
            "const": "CHECK_COMPLETED"
          },
          "matches": {
            "maxItems": 0
          },
          "counts": {
            "$ref": "#/$defs/zero_match_counts"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "properties": {
                  "status": {
                    "const": "loaded"
                  }
                },
                "required": [
                  "status"
                ]
              }
            },
            "required": [
              "snapshot"
            ]
          }
        },
        "required": [
          "input_binding"
        ]
      },
      "then": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "$ref": "#/$defs/loaded_snapshot_binding"
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "properties": {
                  "status": {
                    "const": "not_checked"
                  }
                },
                "required": [
                  "status"
                ]
              }
            },
            "required": [
              "snapshot"
            ]
          }
        },
        "required": [
          "input_binding"
        ]
      },
      "then": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "$ref": "#/$defs/not_checked_snapshot_binding"
              }
            }
          },
          "check_status": {
            "const": "not_checked"
          },
          "finding": {
            "const": "unresolved"
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "properties": {
                  "status": {
                    "const": "degraded"
                  }
                },
                "required": [
                  "status"
                ]
              }
            },
            "required": [
              "snapshot"
            ]
          }
        },
        "required": [
          "input_binding"
        ]
      },
      "then": {
        "properties": {
          "input_binding": {
            "properties": {
              "snapshot": {
                "$ref": "#/$defs/degraded_snapshot_binding"
              }
            }
          },
          "check_status": {
            "const": "degraded"
          },
          "finding": {
            "const": "unresolved"
          },
          "reason_code": {
            "enum": [
              "SNAPSHOT_NOT_PROVIDED",
              "SNAPSHOT_MANIFEST_INVALID",
              "SNAPSHOT_BYTES_INVALID",
              "SNAPSHOT_PROFILE_UNSUPPORTED",
              "SNAPSHOT_HASH_MISMATCH",
              "SNAPSHOT_RULES_UNSUPPORTED",
              "SNAPSHOT_RESOURCE_LIMIT"
            ]
          },
          "matches": {
            "maxItems": 0
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "reason_code": {
            "const": "DOCUMENT_PARSE_DEGRADED"
          }
        },
        "required": [
          "reason_code"
        ]
      },
      "then": {
        "properties": {
          "check_status": {
            "const": "degraded"
          },
          "input_binding": {
            "properties": {
              "snapshot": {
                "properties": {
                  "status": {
                    "const": "loaded"
                  }
                }
              }
            }
          },
          "counts": {
            "properties": {
              "unknown_segments": {
                "minimum": 1
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "reason_code": {
            "const": "MATCH_RESOURCE_LIMIT"
          }
        },
        "required": [
          "reason_code"
        ]
      },
      "then": {
        "properties": {
          "check_status": {
            "const": "degraded"
          },
          "input_binding": {
            "properties": {
              "snapshot": {
                "properties": {
                  "status": {
                    "const": "loaded"
                  }
                }
              }
            }
          },
          "matches": {
            "maxItems": 0
          },
          "counts": {
            "$ref": "#/$defs/zero_match_counts"
          }
        }
      }
    }
  ],
  "$defs": {
    "identifier": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[a-z0-9][a-z0-9._-]{0,127}$"
    },
    "sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "rfc3339": {
      "type": "string",
      "format": "date-time",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt](?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]{1,6})?(?:[Zz]|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])$"
    },
    "bounded_line": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "pattern": "^[^\\u0000-\\u001F\\u007F]+$"
    },
    "reason_code": {
      "enum": [
        "CHECK_COMPLETED",
        "SNAPSHOT_NOT_PROVIDED",
        "SNAPSHOT_MANIFEST_INVALID",
        "SNAPSHOT_BYTES_INVALID",
        "SNAPSHOT_PROFILE_UNSUPPORTED",
        "SNAPSHOT_HASH_MISMATCH",
        "SNAPSHOT_RULES_UNSUPPORTED",
        "SNAPSHOT_RESOURCE_LIMIT",
        "DOCUMENT_EMPTY",
        "DOCUMENT_PARSE_DEGRADED",
        "MATCH_RESOURCE_LIMIT"
      ]
    },
    "artifact_binding": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "artifact_id",
        "artifact_format",
        "artifact_sha256",
        "artifact_utf8_bytes"
      ],
      "properties": {
        "artifact_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "^[^\\r\\n]+$"
        },
        "artifact_format": {
          "enum": [
            "markdown",
            "latex"
          ]
        },
        "artifact_sha256": {
          "$ref": "#/$defs/sha256"
        },
        "artifact_utf8_bytes": {
          "type": "integer",
          "minimum": 0,
          "maximum": 8388608
        }
      }
    },
    "source": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name",
        "version",
        "as_of",
        "locator"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "pattern": "^[^\\u0000-\\u001F\\u007F]+$"
        },
        "version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100,
          "pattern": "^[^\\u0000-\\u001F\\u007F]+$"
        },
        "as_of": {
          "type": "string",
          "format": "date"
        },
        "locator": {
          "$ref": "#/$defs/bounded_line"
        }
      }
    },
    "rights": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "basis",
        "redistribution_status",
        "reference",
        "user_declaration"
      ],
      "properties": {
        "basis": {
          "enum": [
            "synthetic_fixture",
            "user_declared_authorized",
            "written_permission",
            "unresolved"
          ]
        },
        "redistribution_status": {
          "enum": [
            "permitted",
            "not_permitted",
            "unresolved"
          ]
        },
        "reference": {
          "oneOf": [
            {
              "$ref": "#/$defs/bounded_line"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_declaration": {
          "oneOf": [
            {
              "$ref": "#/$defs/bounded_line"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {"basis": {"const": "synthetic_fixture"}},
            "required": ["basis"]
          },
          "then": {
            "properties": {
              "redistribution_status": {"const": "permitted"},
              "reference": {"type": "null"},
              "user_declaration": {"type": "null"}
            }
          }
        },
        {
          "if": {
            "properties": {"basis": {"const": "user_declared_authorized"}},
            "required": ["basis"]
          },
          "then": {"properties": {"user_declaration": {"type": "string"}}}
        },
        {
          "if": {
            "properties": {"basis": {"const": "written_permission"}},
            "required": ["basis"]
          },
          "then": {"properties": {"reference": {"type": "string"}}}
        },
        {
          "if": {
            "properties": {"basis": {"const": "unresolved"}},
            "required": ["basis"]
          },
          "then": {
            "properties": {"redistribution_status": {"const": "unresolved"}}
          }
        }
      ]
    },
    "nullable_sha256": {
      "oneOf": [
        {
          "$ref": "#/$defs/sha256"
        },
        {
          "type": "null"
        }
      ]
    },
    "snapshot_binding": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "status",
        "reason_code",
        "snapshot_sha256",
        "manifest_sha256",
        "snapshot_id",
        "source",
        "supply_mode",
        "snapshot_schema_version",
        "grammar_profile",
        "normalizer_profile",
        "unicode_data_version",
        "rule_count",
        "unsupported_rule_count",
        "rights"
      ],
      "properties": {
        "status": {
          "enum": [
            "loaded",
            "not_checked",
            "degraded"
          ]
        },
        "reason_code": {
          "enum": [
            "CHECK_COMPLETED",
            "SNAPSHOT_NOT_PROVIDED",
            "SNAPSHOT_MANIFEST_INVALID",
            "SNAPSHOT_BYTES_INVALID",
            "SNAPSHOT_PROFILE_UNSUPPORTED",
            "SNAPSHOT_HASH_MISMATCH",
            "SNAPSHOT_RULES_UNSUPPORTED",
            "SNAPSHOT_RESOURCE_LIMIT"
          ]
        },
        "snapshot_sha256": {
          "$ref": "#/$defs/nullable_sha256"
        },
        "manifest_sha256": {
          "$ref": "#/$defs/nullable_sha256"
        },
        "snapshot_id": {
          "oneOf": [
            {
              "$ref": "#/$defs/identifier"
            },
            {
              "type": "null"
            }
          ]
        },
        "source": {
          "oneOf": [
            {
              "$ref": "#/$defs/source"
            },
            {
              "type": "null"
            }
          ]
        },
        "supply_mode": {
          "enum": [
            "user_supplied",
            "synthetic_fixture",
            null
          ]
        },
        "snapshot_schema_version": {
          "enum": [
            "tortured-phrase-snapshot/1.0",
            null
          ]
        },
        "grammar_profile": {
          "enum": [
            "ars-tortured-phrase-canonical-ast/1.0",
            null
          ]
        },
        "normalizer_profile": {
          "enum": [
            "ars-nfkc-casefold-token/1.0",
            null
          ]
        },
        "unicode_data_version": {
          "type": "string",
          "pattern": "^[0-9]+(?:\\.[0-9]+){1,2}$"
        },
        "rule_count": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 512
        },
        "unsupported_rule_count": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 512
        },
        "rights": {
          "oneOf": [
            {
              "$ref": "#/$defs/rights"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "loaded_snapshot_binding": {
      "allOf": [
        {
          "$ref": "#/$defs/snapshot_binding"
        },
        {
          "properties": {
            "status": {
              "const": "loaded"
            },
            "reason_code": {
              "const": "CHECK_COMPLETED"
            },
            "snapshot_sha256": {
              "$ref": "#/$defs/sha256"
            },
            "manifest_sha256": {
              "$ref": "#/$defs/sha256"
            },
            "snapshot_id": {
              "$ref": "#/$defs/identifier"
            },
            "source": {
              "$ref": "#/$defs/source"
            },
            "supply_mode": {
              "enum": [
                "user_supplied",
                "synthetic_fixture"
              ]
            },
            "snapshot_schema_version": {
              "const": "tortured-phrase-snapshot/1.0"
            },
            "grammar_profile": {
              "const": "ars-tortured-phrase-canonical-ast/1.0"
            },
            "normalizer_profile": {
              "const": "ars-nfkc-casefold-token/1.0"
            },
            "rule_count": {
              "type": "integer",
              "minimum": 1,
              "maximum": 512
            },
            "unsupported_rule_count": {
              "const": 0
            },
            "rights": {
              "$ref": "#/$defs/rights"
            }
          }
        },
        {
          "if": {
            "properties": {"supply_mode": {"const": "synthetic_fixture"}},
            "required": ["supply_mode"]
          },
          "then": {
            "properties": {
              "rights": {
                "properties": {"basis": {"const": "synthetic_fixture"}}
              }
            }
          }
        }
      ]
    },
    "not_checked_snapshot_binding": {
      "allOf": [
        {
          "$ref": "#/$defs/snapshot_binding"
        },
        {
          "properties": {
            "status": {
              "const": "not_checked"
            },
            "reason_code": {
              "const": "SNAPSHOT_NOT_PROVIDED"
            },
            "snapshot_sha256": {
              "type": "null"
            },
            "manifest_sha256": {
              "type": "null"
            },
            "snapshot_id": {
              "type": "null"
            },
            "source": {
              "type": "null"
            },
            "supply_mode": {
              "type": "null"
            },
            "snapshot_schema_version": {
              "type": "null"
            },
            "grammar_profile": {
              "type": "null"
            },
            "normalizer_profile": {
              "type": "null"
            },
            "rule_count": {
              "type": "null"
            },
            "unsupported_rule_count": {
              "type": "null"
            },
            "rights": {
              "type": "null"
            }
          }
        }
      ]
    },
    "degraded_snapshot_binding": {
      "allOf": [
        {
          "$ref": "#/$defs/snapshot_binding"
        },
        {
          "properties": {
            "status": {
              "const": "degraded"
            },
            "reason_code": {
              "enum": [
                "SNAPSHOT_MANIFEST_INVALID",
                "SNAPSHOT_BYTES_INVALID",
                "SNAPSHOT_PROFILE_UNSUPPORTED",
                "SNAPSHOT_HASH_MISMATCH",
                "SNAPSHOT_RULES_UNSUPPORTED",
                "SNAPSHOT_RESOURCE_LIMIT"
              ]
            },
            "snapshot_id": {
              "type": "null"
            },
            "source": {
              "type": "null"
            },
            "supply_mode": {
              "type": "null"
            },
            "snapshot_schema_version": {
              "type": "null"
            },
            "grammar_profile": {
              "type": "null"
            },
            "normalizer_profile": {
              "type": "null"
            },
            "rule_count": {
              "type": "null"
            },
            "unsupported_rule_count": {
              "type": "null"
            },
            "rights": {
              "type": "null"
            }
          }
        }
      ]
    },
    "input_binding": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "artifact",
        "snapshot",
        "checked_at",
        "recorded_at"
      ],
      "properties": {
        "artifact": {
          "$ref": "#/$defs/artifact_binding"
        },
        "snapshot": {
          "$ref": "#/$defs/snapshot_binding"
        },
        "checked_at": {
          "$ref": "#/$defs/rfc3339"
        },
        "recorded_at": {
          "$ref": "#/$defs/rfc3339"
        }
      }
    },
    "context_counts": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "author_prose",
        "quote",
        "cited_title",
        "reference_entry",
        "code_or_verbatim",
        "unknown",
        "cited_abstract"
      ],
      "properties": {
        "author_prose": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "quote": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "cited_title": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "reference_entry": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "code_or_verbatim": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "unknown": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "cited_abstract": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        }
      }
    },
    "counts": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "rules_evaluated",
        "matched_rule_count",
        "rule_match_count",
        "unique_instance_count",
        "segments_total",
        "unknown_segments",
        "matches_by_context"
      ],
      "properties": {
        "rules_evaluated": {
          "type": "integer",
          "minimum": 0,
          "maximum": 512
        },
        "matched_rule_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 512
        },
        "rule_match_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "unique_instance_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4096
        },
        "segments_total": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "unknown_segments": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "matches_by_context": {
          "$ref": "#/$defs/context_counts"
        }
      }
    },
    "zero_context_counts": {
      "allOf": [
        {
          "$ref": "#/$defs/context_counts"
        },
        {
          "properties": {
            "author_prose": {
              "const": 0
            },
            "quote": {
              "const": 0
            },
            "cited_title": {
              "const": 0
            },
            "reference_entry": {
              "const": 0
            },
            "code_or_verbatim": {
              "const": 0
            },
            "unknown": {
              "const": 0
            },
            "cited_abstract": {
              "const": 0
            }
          }
        }
      ]
    },
    "zero_match_counts": {
      "allOf": [
        {
          "$ref": "#/$defs/counts"
        },
        {
          "properties": {
            "matched_rule_count": {
              "const": 0
            },
            "rule_match_count": {
              "const": 0
            },
            "unique_instance_count": {
              "const": 0
            },
            "matches_by_context": {
              "$ref": "#/$defs/zero_context_counts"
            }
          }
        }
      ]
    },
    "empty_counts": {
      "allOf": [
        {
          "$ref": "#/$defs/zero_match_counts"
        },
        {
          "properties": {
            "rules_evaluated": {
              "const": 0
            },
            "segments_total": {
              "const": 0
            },
            "unknown_segments": {
              "const": 0
            }
          }
        }
      ]
    },
    "source_span": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "codepoint_start",
        "codepoint_end",
        "utf8_start",
        "utf8_end"
      ],
      "properties": {
        "codepoint_start": {
          "type": "integer",
          "minimum": 0,
          "maximum": 8388608
        },
        "codepoint_end": {
          "type": "integer",
          "minimum": 1,
          "maximum": 8388608
        },
        "utf8_start": {
          "type": "integer",
          "minimum": 0,
          "maximum": 8388608
        },
        "utf8_end": {
          "type": "integer",
          "minimum": 1,
          "maximum": 8388608
        }
      }
    },
    "match": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "match_id",
        "pattern_id",
        "pattern_sha256",
        "segment_id",
        "context",
        "disposition",
        "source_span",
        "matched_text",
        "matched_text_sha256"
      ],
      "properties": {
        "match_id": {
          "type": "string",
          "pattern": "^tpm-[0-9a-f]{24}$"
        },
        "pattern_id": {
          "$ref": "#/$defs/identifier"
        },
        "pattern_sha256": {
          "$ref": "#/$defs/sha256"
        },
        "segment_id": {
          "type": "string",
          "pattern": "^SEG-[0-9]{6}$"
        },
        "context": {
          "enum": [
            "author_prose",
            "quote",
            "cited_title",
            "reference_entry",
            "code_or_verbatim",
            "unknown",
            "cited_abstract"
          ]
        },
        "disposition": {
          "enum": [
            "review_author_prose_no_automatic_rewrite",
            "preserve_verbatim_review_context",
            "review_cited_source_no_automatic_rewrite",
            "review_unknown_no_automatic_rewrite"
          ]
        },
        "source_span": {
          "$ref": "#/$defs/source_span"
        },
        "matched_text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000,
          "description": "Exact raw source text. The runtime additionally caps this value at 25 whitespace-separated words."
        },
        "matched_text_sha256": {
          "$ref": "#/$defs/sha256"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "context": {
                "const": "author_prose"
              }
            },
            "required": [
              "context"
            ]
          },
          "then": {
            "properties": {
              "disposition": {
                "const": "review_author_prose_no_automatic_rewrite"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "context": {
                "enum": [
                  "quote",
                  "cited_title",
                  "reference_entry",
                  "code_or_verbatim"
                ]
              }
            },
            "required": [
              "context"
            ]
          },
          "then": {
            "properties": {
              "disposition": {
                "const": "preserve_verbatim_review_context"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "context": {
                "const": "cited_abstract"
              }
            },
            "required": [
              "context"
            ]
          },
          "then": {
            "properties": {
              "disposition": {
                "const": "review_cited_source_no_automatic_rewrite"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "context": {
                "const": "unknown"
              }
            },
            "required": [
              "context"
            ]
          },
          "then": {
            "properties": {
              "disposition": {
                "const": "review_unknown_no_automatic_rewrite"
              }
            }
          }
        }
      ]
    },
    "boundary": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "list_match_only",
        "origin_inference",
        "contextual_judgment",
        "automatic_rewrite",
        "absence_is_clean_certificate",
        "native_pps_compatibility",
        "sharing_scope"
      ],
      "properties": {
        "list_match_only": {
          "const": true
        },
        "origin_inference": {
          "const": "not_performed"
        },
        "contextual_judgment": {
          "const": "not_performed"
        },
        "automatic_rewrite": {
          "const": false
        },
        "absence_is_clean_certificate": {
          "const": false
        },
        "native_pps_compatibility": {
          "const": "not_claimed"
        },
        "sharing_scope": {
          "const": "local_only"
        }
      }
    }
  }
}
add-product-e2e-evalpaperclipai/paperclipAdd or extend a Paperclip full-stack runner E2E workflow, fixture, matcher, or report evidence path for local or Daytona execution.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
add-runner-evalpaperclipai/paperclipAdd or extend a Paperclip Runner protocol evaluation definition, roster, assertion, or report fixture with provenance and narrow validation.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
diagnose-why-work-stoppedpaperclipai/paperclipCompatibility entry point for failed, stalled, looping, or over-recovered Paperclip work. Use fix-failed-paperclip-run for the full diagnosis, regression, repair, real verification, and green-PR workflow; honor an explicitly requested diagnosis-only scope.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
fix-failed-paperclip-runpaperclipai/paperclipDiagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks.Stars: 115kUpdated Claude CodeCodexVerifiedInstall