Skip to content

Jordanwei1/jiaojie-skill

jiaojie

Flagged

Create or receive human-first AI task handoffs across chats, models, devices, and languages. Use when the user asks to hand off, export context, resume from a handoff, switch sessions while preserving work, says "交接一下", "接收交接", or supplies handoff.md, handoff.zip, handoff-audit.zip, an LCH Bundle/T0 package, OCH Snapshot, or LTM Packet. Default to one readable handoff.md; upgrade to handoff.zip only when required files must travel, and to handoff-audit.zip only for formal audit, cross-organization delivery, or proof. Preserve current intent, stop point, next action, decisions, constraints, rejected and failed paths, answered questions, materials, omissions, and revalidation needs. Do not use for generic summaries, memory lookup, hidden reasoning, completed trivial chats, or after the user declines.

FileKindSize
SKILL.mdskill md8.1 KB
agents/openai.yamlconfig223 B
assets/hero-source.pngbinary1.3 MB
assets/hero.gifbinary1.2 MB
assets/profiles/materiality-v1.jsonconfig853 B
assets/protocol-version.jsonconfig2.6 KB
assets/registry/iana-language-subtag-registry-2026-08-08.txtmarkdown714.6 KB
assets/registry/iana-language-tag-extensions-registry-2014-04-02.txtmarkdown1.0 KB
assets/registry/profile-feature-registry-v0.1.jsonconfig3.3 KB
assets/registry/registry-lock.jsonconfig1.2 KB
assets/registry/schema-catalog-v0.1.jsonconfig4.1 KB
assets/schemas/action-graph.schema.jsonconfig5.6 KB
assets/schemas/common.schema.jsonconfig25.7 KB
assets/schemas/derived-digest-vector.schema.jsonconfig1.5 KB
assets/schemas/detached-envelope.schema.jsonconfig799 B
assets/schemas/event.schema.jsonconfig4.5 KB
assets/schemas/language-unicode-vector.schema.jsonconfig8.6 KB
assets/schemas/legacy-conversion-report.schema.jsonconfig4.4 KB
assets/schemas/manifest.schema.jsonconfig6.6 KB
assets/schemas/materiality-profile.schema.jsonconfig1.6 KB
assets/schemas/profile-feature-registry.schema.jsonconfig7.3 KB
assets/schemas/receipt.schema.jsonconfig15.6 KB
assets/schemas/registry-lock.schema.jsonconfig1.9 KB
assets/schemas/schema-catalog.schema.jsonconfig1.7 KB
assets/schemas/state.schema.jsonconfig11.9 KB
assets/schemas/t0-control.schema.jsonconfig2.7 KB
assets/schemas/vector-catalog.schema.jsonconfig5.3 KB
assets/schemas/verification-result.schema.jsonconfig24.2 KB
assets/templates/approval-statement.template.jsonconfig1.3 KB
assets/templates/approval-verification.template.jsonconfig1.6 KB
assets/templates/bundle-HANDOFF.template.mdmarkdown57 B
assets/templates/conversion-report.template.jsonconfig1.2 KB
assets/templates/handoff.template.mdmarkdown1.7 KB
assets/templates/manifest.template.jsonconfig8.6 KB
assets/templates/receipt.template.jsonconfig3.2 KB
assets/templates/t0-control.template.jsonconfig6.4 KB
assets/templates/t0-package.template.mdmarkdown337 B
assets/templates/warm-state.template.jsonconfig10.2 KB
assets/vectors/derived-digests-v1-001.jsonconfig10.8 KB
assets/vectors/index.jsonconfig2.1 KB
assets/vectors/jcs-sha256-basic-001.jsonconfig495 B
assets/vectors/language-unicode-v1-001.jsonconfig9.9 KB
assets/vectors/review-projection-v1-minimal-001.jsonconfig19.0 KB
examples/README.mdmarkdown1.4 KB
examples/business/business-external-state/case.jsonconfig559 B
examples/business/business-external-state/expected-next-action.mdmarkdown111 B
examples/business/business-external-state/expected-receipt.mdmarkdown342 B
examples/business/business-external-state/gold.jsonconfig498 B
examples/business/business-external-state/handoff.mdmarkdown1.8 KB
examples/business/business-external-state/source.mdmarkdown730 B
examples/coding/coding-cross-language/case.jsonconfig603 B
examples/coding/coding-cross-language/expected-next-action.mdmarkdown108 B
examples/coding/coding-cross-language/expected-receipt.mdmarkdown342 B
examples/coding/coding-cross-language/gold.jsonconfig495 B
examples/coding/coding-cross-language/handoff.mdmarkdown2.0 KB
examples/coding/coding-cross-language/source.mdmarkdown864 B
examples/general-chat/general-chat-mixed-constraints/case.jsonconfig577 B
examples/general-chat/general-chat-mixed-constraints/expected-next-action.mdmarkdown116 B
examples/general-chat/general-chat-mixed-constraints/expected-receipt.mdmarkdown347 B
examples/general-chat/general-chat-mixed-constraints/gold.jsonconfig508 B
examples/general-chat/general-chat-mixed-constraints/handoff.mdmarkdown1.8 KB
examples/general-chat/general-chat-mixed-constraints/source.mdmarkdown745 B
examples/index.jsonconfig4.9 KB
examples/learning/learning-intent-change/case.jsonconfig568 B
examples/learning/learning-intent-change/expected-next-action.mdmarkdown109 B
examples/learning/learning-intent-change/expected-receipt.mdmarkdown342 B
examples/learning/learning-intent-change/gold.jsonconfig496 B
examples/learning/learning-intent-change/handoff.mdmarkdown1.8 KB
examples/learning/learning-intent-change/source.mdmarkdown714 B
examples/product-design/product-design-parallel/case.jsonconfig572 B
examples/product-design/product-design-parallel/expected-next-action.mdmarkdown121 B
examples/product-design/product-design-parallel/expected-receipt.mdmarkdown342 B
examples/product-design/product-design-parallel/gold.jsonconfig508 B
examples/product-design/product-design-parallel/handoff.mdmarkdown1.8 KB
examples/product-design/product-design-parallel/source.mdmarkdown732 B
examples/research/research-partial/case.jsonconfig553 B
examples/research/research-partial/expected-next-action.mdmarkdown114 B
examples/research/research-partial/expected-receipt.mdmarkdown347 B
examples/research/research-partial/gold.jsonconfig506 B
examples/research/research-partial/handoff.mdmarkdown1.8 KB
examples/research/research-partial/source.mdmarkdown718 B
examples/writing/writing-authority/case.jsonconfig578 B
examples/writing/writing-authority/expected-next-action.mdmarkdown94 B
examples/writing/writing-authority/expected-receipt.mdmarkdown342 B
examples/writing/writing-authority/gold.jsonconfig481 B
examples/writing/writing-authority/handoff.mdmarkdown1.8 KB
examples/writing/writing-authority/source.mdmarkdown703 B
references/conformance.mdmarkdown42.5 KB
references/convert-legacy.mdmarkdown14.0 KB
references/domain-business.mdmarkdown3.3 KB
references/domain-coding.mdmarkdown3.4 KB
references/domain-general-chat.mdmarkdown3.2 KB
references/domain-learning.mdmarkdown3.2 KB
references/domain-product-design.mdmarkdown3.3 KB
references/domain-research.mdmarkdown3.3 KB
references/domain-writing.mdmarkdown3.2 KB
references/export-workflow.mdmarkdown14.9 KB
references/multilingual-workflow.mdmarkdown9.6 KB
references/profiles.mdmarkdown21.1 KB
references/protocol-core.mdmarkdown28.7 KB
references/receive-workflow.mdmarkdown23.2 KB
references/result-model.mdmarkdown22.3 KB
references/runtime-capabilities.mdmarkdown6.8 KB
references/security-boundary.mdmarkdown8.8 KB
references/simple-workflow.mdmarkdown7.0 KB
references/terminology.mdmarkdown13.3 KB
references/threat-model.mdmarkdown20.1 KB
references/verify-structure-workflow.mdmarkdown21.9 KB
references/wire-format.mdmarkdown44.0 KB
scripts/_vendor/lch/__init__.pyscript1.4 KB
scripts/_vendor/lch/canonicalize.pyscript7.6 KB
scripts/_vendor/lch/cli.pyscript10.2 KB
scripts/_vendor/lch/converters.pyscript46.0 KB
scripts/_vendor/lch/language.pyscript27.7 KB
scripts/_vendor/lch/package.pyscript56.8 KB
scripts/_vendor/lch/projection.pyscript22.7 KB
scripts/_vendor/lch/registry.pyscript7.9 KB
scripts/_vendor/lch/schema.pyscript19.5 KB
scripts/_vendor/lch/security.pyscript7.2 KB
scripts/_vendor/lch/simple.pyscript36.6 KB
scripts/_vendor/lch/util.pyscript14.7 KB
scripts/_vendor/lch/validate.pyscript128.4 KB
scripts/convert_handoff_md.pyscript207 B
scripts/convert_ltm.pyscript201 B
scripts/convert_och.pyscript205 B
scripts/handoff.pyscript190 B
scripts/pack_handoff.pyscript175 B
scripts/project_check.pyscript3.2 KB
scripts/scan_sensitive.pyscript183 B
scripts/validate_handoff.pyscript180 B
scripts/verify_handoff.pyscript188 B

assets/schemas/common.schema.json

View on GitHub
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:lch:schema:0.1:common",
  "title": "Lossless Context Handoff common definitions v0.1",
  "description": "Shared non-root definitions for protocol version 0.1.0. The x-lch-schema-version keyword is schema metadata, not a protocol wire field.",
  "x-lch-schema-version": "0.1.0",
  "$defs": {
    "protocolVersion": {
      "const": "0.1.0"
    },
    "stateProjectionVersion": {
      "const": "state-projection-v1"
    },
    "reviewProjectionVersion": {
      "const": "review-v1"
    },
    "stableId": {
      "type": "string",
      "pattern": "^[A-Za-z][A-Za-z0-9._:-]*$",
      "minLength": 1,
      "maxLength": 256
    },
    "sha256": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "nullableTimestamp": {
      "oneOf": [
        {
          "$ref": "#/$defs/timestamp"
        },
        {
          "type": "null"
        }
      ]
    },
    "mediaType": {
      "type": "string",
      "pattern": "^[A-Za-z0-9!#$&^_.+-]+/[A-Za-z0-9!#$&^_.+-]+$"
    },
    "localizedText": {
      "type": "object",
      "required": [
        "text_id",
        "value",
        "lang",
        "dir",
        "kind",
        "authority",
        "fidelity",
        "translation_of",
        "translation_method",
        "review_status"
      ],
      "properties": {
        "text_id": {
          "$ref": "#/$defs/stableId"
        },
        "value": {
          "type": "string"
        },
        "lang": {
          "type": "string",
          "format": "bcp47",
          "minLength": 1
        },
        "dir": {
          "enum": [
            "ltr",
            "rtl"
          ]
        },
        "kind": {
          "enum": [
            "canonical_assertion",
            "source_excerpt",
            "authored_parallel",
            "translation",
            "transliteration",
            "summary"
          ]
        },
        "authority": {
          "enum": [
            "canonical_assertion",
            "user_confirmed_parallel",
            "derived_view"
          ]
        },
        "fidelity": {
          "enum": [
            "byte_exact",
            "unicode_scalar_exact",
            "derived_restatement",
            "derived_translation",
            "transcription"
          ]
        },
        "translation_of": {
          "oneOf": [
            {
              "$ref": "#/$defs/stableId"
            },
            {
              "type": "null"
            }
          ]
        },
        "translation_method": {
          "enum": [
            null,
            "human",
            "machine",
            "hybrid"
          ]
        },
        "review_status": {
          "enum": [
            "not_applicable",
            "unreviewed",
            "human_reviewed",
            "user_confirmed"
          ]
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "kind": {
                "const": "canonical_assertion"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "authority": {
                "const": "canonical_assertion"
              },
              "translation_of": {
                "type": "null"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "enum": [
                  "translation",
                  "transliteration",
                  "summary"
                ]
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "authority": {
                "const": "derived_view"
              },
              "translation_of": {
                "$ref": "#/$defs/stableId"
              }
            }
          }
        }
      ],
      "additionalProperties": false
    },
    "evidenceSpan": {
      "type": "object",
      "required": [
        "object_id",
        "source_id",
        "byte_start",
        "byte_end",
        "sha256_raw"
      ],
      "properties": {
        "object_id": {
          "$ref": "#/$defs/stableId"
        },
        "source_id": {
          "$ref": "#/$defs/stableId"
        },
        "byte_start": {
          "type": "integer",
          "minimum": 0
        },
        "byte_end": {
          "type": "integer",
          "minimum": 0
        },
        "sha256_raw": {
          "$ref": "#/$defs/sha256"
        }
      },
      "additionalProperties": false
    },
    "sourcePrincipal": {
      "type": "object",
      "required": [
        "principal_id",
        "tenant_id",
        "source_role",
        "authority_at_capture"
      ],
      "properties": {
        "principal_id": {
          "$ref": "#/$defs/stableId"
        },
        "tenant_id": {
          "$ref": "#/$defs/stableId"
        },
        "source_role": {
          "enum": [
            "user",
            "assistant",
            "tool",
            "external_author",
            "converter"
          ]
        },
        "authority_at_capture": {
          "enum": [
            "user_instruction",
            "assistant_output",
            "tool_observation",
            "external_assertion",
            "no_authority"
          ]
        }
      },
      "additionalProperties": false
    },
    "ordering": {
      "type": "object",
      "required": [
        "stream_id",
        "sequence",
        "causal_parent_ids",
        "logical_clock"
      ],
      "properties": {
        "stream_id": {
          "$ref": "#/$defs/stableId"
        },
        "sequence": {
          "type": "integer",
          "minimum": 0
        },
        "causal_parent_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/stableId"
          },
          "uniqueItems": true
        },
        "logical_clock": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "temporal": {
      "type": "object",
      "required": [
        "observed_at",
        "valid_from",
        "expires_at",
        "revalidate_before"
      ],
      "properties": {
        "observed_at": {
          "$ref": "#/$defs/timestamp"
        },
        "valid_from": {
          "$ref": "#/$defs/nullableTimestamp"
        },
        "expires_at": {
          "$ref": "#/$defs/nullableTimestamp"
        },
        "revalidate_before": {
          "$ref": "#/$defs/nullableTimestamp"
        }
      },
      "additionalProperties": false
    },
    "packageIntegrityRef": {
      "type": "object",
      "required": [
        "kind",
        "sha256",
        "byte_length"
      ],
      "properties": {
        "kind": {
          "enum": [
            "t0_control",
            "bundle_manifest"
          ]
        },
        "sha256": {
          "$ref": "#/$defs/sha256"
        },
        "byte_length": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "reviewProjectionRef": {
      "type": "object",
      "required": [
        "kind",
        "projection_version",
        "sha256_raw",
        "byte_length"
      ],
      "properties": {
        "kind": {
          "enum": [
            "t0_human_view",
            "bundle_handoff"
          ]
        },
        "projection_version": {
          "$ref": "#/$defs/reviewProjectionVersion"
        },
        "sha256_raw": {
          "$ref": "#/$defs/sha256"
        },
        "byte_length": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "detachedObjectRef": {
      "type": "object",
      "required": [
        "opaque_id",
        "sha256_raw"
      ],
      "properties": {
        "opaque_id": {
          "$ref": "#/$defs/stableId"
        },
        "sha256_raw": {
          "$ref": "#/$defs/sha256"
        }
      },
      "additionalProperties": false
    },
    "nullableDetachedObjectRef": {
      "oneOf": [
        {
          "$ref": "#/$defs/detachedObjectRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "detachedEnvelopeSlot": {
      "type": "object",
      "required": [
        "opaque_id",
        "expected_type",
        "purpose",
        "required"
      ],
      "properties": {
        "opaque_id": {
          "$ref": "#/$defs/stableId"
        },
        "expected_type": {
          "$ref": "#/$defs/stableId"
        },
        "purpose": {
          "$ref": "#/$defs/localizedText"
        },
        "required": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "profileRef": {
      "type": "object",
      "required": [
        "id",
        "version",
        "required"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        },
        "version": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
        },
        "required": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "materialityProfileRef": {
      "type": "object",
      "required": [
        "id",
        "version",
        "sha256"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/stableId"
        },
        "version": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
        },
        "sha256": {
          "$ref": "#/$defs/sha256"
        }
      },
      "additionalProperties": false
    },
    "languageProfile": {
      "type": "object",
      "required": [
        "source_languages",
        "content_languages",
        "continuation_language_ranges",
        "selected_continuation_language",
        "translation_policy",
        "generated_text_normalization"
      ],
      "properties": {
        "source_languages": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "required": [
              "tag",
              "provenance"
            ],
            "properties": {
              "tag": {
                "type": "string",
                "format": "bcp47"
              },
              "provenance": {
                "$ref": "#/$defs/stableId"
              }
            },
            "additionalProperties": false
          }
        },
        "content_languages": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "bcp47"
          },
          "uniqueItems": true
        },
        "continuation_language_ranges": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "format": "bcp47"
          },
          "uniqueItems": true
        },
        "selected_continuation_language": {
          "type": "string",
          "format": "bcp47"
        },
        "translation_policy": {
          "const": "original_authoritative"
        },
        "generated_text_normalization": {
          "const": "NFC"
        }
      },
      "additionalProperties": false
    },
    "scope": {
      "type": "object",
      "required": [
        "scope_id",
        "statement",
        "user_request_refs",
        "selection_basis",
        "material_exclusion_ids",
        "approval_statement_slot"
      ],
      "properties": {
        "scope_id": {
          "$ref": "#/$defs/stableId"
        },
        "statement": {
          "$ref": "#/$defs/localizedText"
        },
        "user_request_refs": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/stableId"
          },
          "uniqueItems": true
        },
        "selection_basis": {
          "enum": [
            "USER_SELECTED",
            "PROTOCOL_DEFAULT",
            "PRODUCER_PROPOSED"
          ]
        },
        "material_exclusion_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/stableId"
          },
          "uniqueItems": true
        },
        "approval_statement_slot": {
          "$ref": "#/$defs/stableId"
        }
      },
      "additionalProperties": false
    },
    "boundaries": {
      "type": "object",
      "required": [
        "source_boundary",
        "scope",
        "policy_boundary",
        "external_state_dependencies"
      ],
      "properties": {
        "source_boundary": {
          "type": "object"
        },
        "scope": {
          "$ref": "#/$defs/scope"
        },
        "policy_boundary": {
          "type": "object"
        },
        "external_state_dependencies": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      },
      "additionalProperties": false
    },
    "omission": {
      "type": "object",
      "required": [
        "omission_id",
        "category",
        "description",
        "reason",
        "materiality",
        "recoverable"
      ],
      "properties": {
        "omission_id": {
          "$ref": "#/$defs/stableId"
        },
        "category": {
          "enum": [
            "raw_source",
            "artifact",
            "evidence",
            "policy_exclusion",
            "permission",
            "context_truncation",
            "copyright"
          ]
        },
        "description": {
          "$ref": "#/$defs/localizedText"
        },
        "reason": {
          "$ref": "#/$defs/localizedText"
        },
        "materiality": {
          "enum": [
            "BLOCKING",
            "MATERIAL",
            "NON_MATERIAL"
          ]
        },
        "recoverable": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "contentCoverage": {
      "type": "object",
      "required": [
        "claim",
        "claim_issuer",
        "scope",
        "source_access",
        "inventory_object_id",
        "raw_coverage",
        "artifact_coverage",
        "coverage_envelope_slot_ids",
        "omissions"
      ],
      "properties": {
        "claim": {
          "enum": [
            "COMPLETE",
            "PARTIAL",
            "UNKNOWN"
          ]
        },
        "claim_issuer": {
          "const": "producer"
        },
        "scope": {
          "$ref": "#/$defs/scope"
        },
        "source_access": {
          "enum": [
            "FULL",
            "PARTIAL",
            "UNKNOWN"
          ]
        },
        "inventory_object_id": {
          "$ref": "#/$defs/stableId"
        },
        "raw_coverage": {
          "enum": [
            "FULL_WITHIN_SCOPE",
            "PARTIAL",
            "NONE",
            "UNKNOWN"
          ]
        },
        "artifact_coverage": {
          "enum": [
            "FULL",
            "PARTIAL",
            "NONE",
            "NOT_APPLICABLE"
          ]
        },
        "coverage_envelope_slot_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/stableId"
          },
          "uniqueItems": true
        },
        "omissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/omission"
          }
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "claim": {
                "const": "COMPLETE"
              }
            },
            "required": [
              "claim"
            ]
          },
          "then": {
            "properties": {
              "omissions": {
                "not": {
                  "contains": {
                    "properties": {
                      "materiality": {
                        "enum": [
                          "BLOCKING",
                          "MATERIAL"
                        ]
                      }
                    },
                    "required": [
                      "materiality"
                    ]
                  }
                }
              }
            }
          }
        }
      ],
      "additionalProperties": false
    },
    "sourceInventory": {
      "type": "object",
      "required": [
        "inventory_id",
        "collector_claim",
        "tenant_id",
        "source_session_ids",
        "capture_boundary",
        "entries",
        "gaps",
        "inventory_digest",
        "platform_attestation_ref"
      ],
      "properties": {
        "inventory_id": {
          "$ref": "#/$defs/stableId"
        },
        "collector_claim": {
          "type": "object",
          "required": [
            "principal_id",
            "method"
          ],
          "properties": {
            "principal_id": {
              "$ref": "#/$defs/stableId"
            },
            "method": {
              "enum": [
                "platform_export",
                "event_log",
                "fixture",
                "observed"
              ]
            }
          },
          "additionalProperties": false
        },
        "tenant_id": {
          "$ref": "#/$defs/stableId"
        },
        "source_session_ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/stableId"
          },
          "uniqueItems": true
        },
        "capture_boundary": {
          "type": "object",
          "required": [
            "started_at",
            "ended_at",
            "first_native_id",
            "last_native_id"
          ],
          "properties": {
            "started_at": {
              "$ref": "#/$defs/nullableTimestamp"
            },
            "ended_at": {
              "$ref": "#/$defs/nullableTimestamp"
            },
            "first_native_id": {
              "oneOf": [
                {
                  "$ref": "#/$defs/stableId"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_native_id": {
              "oneOf": [
                {
                  "$ref": "#/$defs/stableId"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": false
        },
        "entries": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "ordinal",
              "source_id",
              "stream_id",
              "source_principal_id",
              "source_role",
              "observed_at",
              "object_id",
              "object_sha256",
              "attachment_object_ids",
              "tool_result_object_ids"
            ],
            "properties": {
              "ordinal": {
                "type": "integer",
                "minimum": 1
              },
              "source_id": {
                "$ref": "#/$defs/stableId"
              },
              "stream_id": {
                "$ref": "#/$defs/stableId"
              },
              "source_principal_id": {
                "$ref": "#/$defs/stableId"
              },
              "source_role": {
                "enum": [
                  "user",
                  "assistant",
                  "tool",
                  "external_author",
                  "converter"
                ]
              },
              "observed_at": {
                "$ref": "#/$defs/timestamp"
              },
              "object_id": {
                "$ref": "#/$defs/stableId"
              },
              "object_sha256": {
                "$ref": "#/$defs/sha256"
              },
              "attachment_object_ids": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/stableId"
                },
                "uniqueItems": true
              },
              "tool_result_object_ids": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/stableId"
                },
                "uniqueItems": true
              }
            },
            "additionalProperties": false
          }
        },
        "gaps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/omission"
          }
        },
        "inventory_digest": {
          "$ref": "#/$defs/sha256"
        },
        "platform_attestation_ref": {
          "$ref": "#/$defs/nullableDetachedObjectRef"
        }
      },
      "additionalProperties": false
    },
    "issue": {
      "type": "object",
      "required": [
        "code",
        "severity",
        "object_id"
      ],
      "properties": {
        "code": {
          "type": "string",
          "pattern": "^LCH-[A-Z0-9-]+$"
        },
        "severity": {
          "enum": [
            "info",
            "warning",
            "error",
            "blocking"
          ]
        },
        "object_id": {
          "oneOf": [
            {
              "$ref": "#/$defs/stableId"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "producer": {
      "type": "object",
      "required": [
        "runtime",
        "model",
        "skill_version"
      ],
      "properties": {
        "runtime": {
          "type": "string",
          "minLength": 1
        },
        "model": {
          "type": "string",
          "minLength": 1
        },
        "skill_version": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
        }
      },
      "additionalProperties": false
    },
    "approvalClaim": {
      "type": "object",
      "required": [
        "state",
        "approval_statement_slot"
      ],
      "properties": {
        "state": {
          "const": "PROPOSED"
        },
        "approval_statement_slot": {
          "$ref": "#/$defs/stableId"
        }
      },
      "additionalProperties": false
    },
    "originClaim": {
      "type": "object",
      "required": [
        "claimed_principal",
        "claimed_method",
        "tenant_id"
      ],
      "properties": {
        "claimed_principal": {
          "$ref": "#/$defs/stableId"
        },
        "claimed_method": {
          "$ref": "#/$defs/stableId"
        },
        "tenant_id": {
          "$ref": "#/$defs/stableId"
        },
        "recipient_binding": {
          "type": [
            "object",
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "packageRoot": {
      "type": "object",
      "required": [
        "protocol_id",
        "protocol_version",
        "package_id",
        "created_at",
        "producer",
        "profiles",
        "must_understand",
        "source_boundary",
        "scope",
        "policy_boundary",
        "external_state_dependencies",
        "resource_requirements",
        "language_profile",
        "materiality_profile_ref",
        "structure_self_check",
        "byte_digests_present",
        "content_coverage",
        "consistency_claim",
        "semantic_actionability_claim",
        "continuity_eval_eligibility_claim",
        "approval_claim",
        "origin_claim",
        "detached_envelope_slots",
        "review_projection_ref",
        "canonical_state_digest"
      ],
      "properties": {
        "protocol_id": {
          "const": "lossless-context-handoff"
        },
        "protocol_version": {
          "$ref": "#/$defs/protocolVersion"
        },
        "package_id": {
          "$ref": "#/$defs/stableId"
        },
        "created_at": {
          "$ref": "#/$defs/timestamp"
        },
        "producer": {
          "$ref": "#/$defs/producer"
        },
        "profiles": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/profileRef"
          }
        },
        "must_understand": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri"
          },
          "uniqueItems": true
        },
        "source_boundary": {
          "type": "object"
        },
        "scope": {
          "$ref": "#/$defs/scope"
        },
        "policy_boundary": {
          "type": "object"
        },
        "external_state_dependencies": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "resource_requirements": {
          "type": "object"
        },
        "language_profile": {
          "$ref": "#/$defs/languageProfile"
        },
        "materiality_profile_ref": {
          "$ref": "#/$defs/materialityProfileRef"
        },
        "structure_self_check": {
          "enum": [
            "NOT_RUN",
            "CLAIMED_PASS",
            "CLAIMED_WARN",
            "CLAIMED_FAIL"
          ]
        },
        "byte_digests_present": {
          "enum": [
            "YES",
            "NO"
          ]
        },
        "content_coverage": {
          "$ref": "#/$defs/contentCoverage"
        },
        "consistency_claim": {
          "enum": [
            "CONSISTENT",
            "DECLARED_CONFLICT",
            "UNKNOWN"
          ]
        },
        "semantic_actionability_claim": {
          "enum": [
            "SEMANTICALLY_READY",
            "BLOCKED",
            "UNKNOWN"
          ]
        },
        "continuity_eval_eligibility_claim": {
          "enum": [
            "ELIGIBLE",
            "INELIGIBLE",
            "UNKNOWN"
          ]
        },
        "approval_claim": {
          "$ref": "#/$defs/approvalClaim"
        },
        "origin_claim": {
          "$ref": "#/$defs/originClaim"
        },
        "detached_envelope_slots": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/detachedEnvelopeSlot"
          }
        },
        "review_projection_ref": {
          "$ref": "#/$defs/reviewProjectionRef"
        },
        "canonical_state_digest": {
          "$ref": "#/$defs/sha256"
        }
      }
    }
  }
}
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall