Skip to content

Define versioned multi-label research-domain classification contracts #5

Closed

Description

@CompleteDotTech

Goal

Define a stable, multi-label research-domain taxonomy and immutable classification assignments for source snapshots. This is topical classification, distinct from graph relation domain/range endpoint types and from tenant authorization.

Implementation

  • Specify stable domain IDs, taxonomy version/hash, optional hierarchy, unknown/unclassified semantics, and how one source can carry multiple domains.
  • Add a content-addressed classification-assignment record bound to the exact source snapshot ID/hash and security scope. Capture classifier/method version, reviewed approver, provenance/basis, effective revision, and superseded assignment. Model-generated suggestions remain proposals until trusted review.
  • Keep existing source and evidence bodies and hashes unchanged. Define how assertion domains derive from supporting evidence; shared entities may appear in multiple domains.
  • Extend Catalog.KINDS, the record schema, validation/reference rules, ledger stages/causal references, and bundle rules. Update tools/build_schemas.py and both schemas/runtime/ and packaged trace_gc/data/schemas/ outputs; validate the installed wheel.

Acceptance

  • Deterministic IDs and validation reject unknown taxonomy IDs, forged source hash/scope, ambiguous revisions, and unsupported provenance.
  • Multi-domain and unclassified source fixtures round-trip through catalog/bundle/ledger without rewriting older records.
  • The contract explicitly separates research-domain labels from ACLs, ontology types, and graph communities.

Relevant code: trace_gc/catalog.py, trace_gc/validation.py, trace_gc/ledger.py, tools/build_schemas.py, schemas/runtime/.

Partial implementation receipt — 2026-09-27

Open; not fully resolved and not merged. An execution chat supplies jraphyte-issue-5-contracts.patch, based on main d5ca636a48e963619f4c89e2958d0bb1a3e72f80. Patch SHA-256: f075d71ba5b1af0052f8451d44b48a971c4b9e9f0321102adc4ec44733714907 (84,136 bytes; 23 changed files). This is a raw, uncommitted patch, not a signed Git commit or published PR.

The candidate adds strict versioned taxonomy, proposal, and reviewed-assignment records; exact source/taxonomy/basis bindings; explicit multi-label/unclassified/retired states; predecessor/revision chronology; application-enrolled Ed25519 review verification; Catalog integration; typed causal ledger references/stages; a bundle-validation hook; generator changes and both emitted schema trees; a synthetic packaged example; an installed-project-wheel validation command; tests and contract documentation. It does not grant read or publication authority and does not implement #6–#11.

Performed validation:

  • 52 focused synthetic contract, actual Ed25519 trust, and ledger tests passed; zero failures/errors/skips. The same 52 tests passed after applying the patch to a fresh verified-source subset. Repeating them is not additional distinct coverage.
  • All 15 retrieved source files were checked against their Git blob IDs on the pinned main commit. Both generated baseline schema trees match hosted Git tree 4e4289b0f2bc415e323595458a082b7dba67d5a6; the candidate produces 31 identical, reproducible schemas in each tree.
  • git diff --check, git apply --check against that source subset, applied-file byte equality, and syntax compilation passed. Existing source/evidence schemas and the synthetic source/evidence records tested remain unchanged. The wheel validator's missing-input path correctly reports NOT_RUN.

Outstanding before this issue can be closed: full-repository integration and normal release validation; execution of the full validate_bundle path (the current test exercises bundle schema, Catalog, and causal ledger validation); genuine sdist/project-wheel build and installed-wheel smoke; maintainer review of the contract/taxonomy; and signed commit, PR, CI, required review, merge, and hosted verification. Only a source subset was assembled in this runtime; it must not be installed or labeled as the complete project. No user-workstation files, README.md, or docs/workflow changes were inspected or modified. Signed delivery and deployment limitations are recorded on #11. Acceptance checkboxes, labels, milestone, and native dependencies are unchanged.

Activity

  1. added
    enhancement
    initiative:domain-graph
    area:contracts
    on Sep 27, 2026
  2. added a commit that references this issue on Nov 17, 2026
  3. added a commit that references this issue on Nov 17, 2026
  4. CompleteDotTech commented on Nov 17, 2026

    @CompleteDotTech
    CollaboratorAuthor

    Implemented in #117 and #118. Both exact heads passed hosted CI and separate independent general and security reviews. main includes the two changes at e570247.

    The contracts enforce deterministic IDs and reject unknown taxonomy entries, forged source hash/scope, ambiguous reviews, unapproved taxonomy lineage, and unsupported provenance. Synthetic multi-label and unclassified records complete the catalog, ledger and bundle round-trip while preserving source and evidence bytes. The docs define label derivation and keep topical metadata separate from ACLs, ontology types, and communities.

    Python 3.12 ran 53 focused tests with zero skips or failures on the integrated checkout. Schema regeneration produced 35 matching runtime and packaged resources with no diff. Hosted distribution jobs built from the sdist and validated the installed wheel outside the checkout on Python 3.11, 3.12, and 3.13.

    The packaged example remains a proposed taxonomy. Epic #4 tracks taxonomy-owner review and #6 tracks authenticated publication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:contractsenhancementinitiative:domain-graph

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions