Skip to content

R06: compose source-safe OT↔NT into packaged Research Workbench - #160

Merged
Oleksii-debug merged 249 commits into
r06-compose-packaged-app-update-verify-0911from
r06-compose-packaged-cross-testament-current-0912-sol
Sep 29, 2026
Merged

Oleksii-debug merged 249 commits into
r06-compose-packaged-app-update-verify-0911from
r06-compose-packaged-cross-testament-current-0912-sol

Conversation

@Oleksii-debug

@Oleksii-debug Oleksii-debug commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

Scope

Compose the existing canonical cross_testament runtime projection into the current packaged-app lineage without creating a second truth store.

Product wiring

  • adds research.get_cross_testament as an allowlisted empty-payload, read-only command;
  • projects only canonical unlocked EvidenceRuntime through the existing runtime-owned Cross-Testament projector;
  • uses an explicit canonical OT/NT book-name allowlist instead of inference from prose, topics or entities; the independently accepted D4-authored Psalm token is admitted explicitly without rewriting source records;
  • bounds link/list/text/nesting dimensions and rejects unsafe Unicode at the packaged boundary;
  • adds a semantic keyboard-first Research Workbench table plus a complete linear equivalent;
  • renders the source-safe empty result as Not stated in cited text rather than inventing a relation;
  • keeps the incumbent packaged Library shell and existing loader/capability authority intact.

Current exact authority — 2026-09-27

Canonical packaged authority: r06-compose-packaged-app-update-verify-0911@a87546ad6d0ecc313f84e53e205cc20b41c3bc26.

Current candidate: r06-compose-packaged-cross-testament-current-0912-sol@f929f8e286efa6262489db716e4561708c11b1ff.

The prior exact product candidate f245766b693b6c11f5d7558f080b0503eb911976 was non-destructively reconverged onto the current package as 61351dc3df70f36c0c3cfea36a6177242f902c94:

  • current package is FIRST parent/tree authority;
  • prior Cross-Testament candidate is SECOND-parent provenance;
  • only the exact 11 prior Cross-Testament workflow/product/test blobs were grafted;
  • Application Update and pedagogical-qualification package bytes were not replayed or overwritten.

A subsequent qualification-only repair f929f8e2... adds one focused regression and hardens the dedicated workflow dependency surface. Direct current-package→candidate remains BEHIND 0, merge-base exactly current package, with 12 lasting paths: the original 11 Cross-Testament paths plus lanes/dev1/repair_overlay/tests/test_cross_testament_qualification_surface.py.

Real production relation feed

The historical synthetic-only blocker is closed on this lineage. build_runtime_gateway() now consumes explicit canonical relation authorities into the same in-process EvidenceRuntime:

  • the source-audited OT↔NT relation pack, gated by its own source-audit state;
  • the independently accepted D4 OT↔NT partition, exactly 22 accepted relation IDs with repair-required REL-OTNT-D4-0005 / 0006 excluded.

The packaged regression test_production_gateway_materializes_checked_in_source_audited_pack constructs the real gateway, loads both checked-in authorities, requires non-empty explicit relation truth, and requires the projected relation IDs to equal the exact union of those canonical runtime relations. No prose/topic/entity similarity inference supplies links.

The current package is already a descendant of the merged source-safe PA02 structured evidence materialization and chronology lineages. The production gateway therefore runs against current canonical structured evidence rather than the older empty R05-only runtime.

Mixed-provenance root-cause repair retained

The runtime keeps fail-closed semantics while representing canonical mixed-provenance records correctly:

  • a non-null record-level witness must resolve exactly against every cited passage;
  • with record.witness=null, individually validated passage-local witnesses may differ and remain attached to each passage provenance;
  • malformed passage metadata, conflicting explicit record witness, dangling relations, hidden endpoints and unsupported testament classification still fail closed.

No source/evidence bytes are rewritten by this PR.

Qualification-authority hardening

Different-worker static QA of 61351dc3... found that the dedicated gate did not watch several direct truth-bearing dependencies executed by the real production-gateway regression. f929f8e2... repairs only that qualification surface.

Both push and pull-request filters now also watch:

  • runtime_engine/scripture_archive_runtime/evidence_provenance.py;
  • runtime_engine/scripture_archive_runtime/evidence_registry.py;
  • runtime_engine/scripture_archive_runtime/evidence_materialization.py;
  • runtime_engine/scripture_archive_runtime/models.py;
  • canonical R05 evidence-registry JSON inputs;
  • R06_PA02_STRUCTURED_EVIDENCE_INDEX_v0.1.json;
  • the pinned PA02_DAMASCUS_ROAD_WITNESS_PACK_v0.1.md source authority.

A focused test_cross_testament_qualification_surface.py regression locks this watch surface and is itself watched/executed by the workflow. The existing Ubuntu+Windows real production-gateway regression is unchanged.

Source/security/accessibility contract

  • no new Scripture/source/relation record is authored here;
  • no similarity, chronology, history, consensus or witness-identity inference;
  • locked evidence never enters the projection unless an independently-authorized relation pack explicitly defines global research visibility after its audit gate;
  • unknown book classification and unsafe Unicode fail closed;
  • UI uses semantic table/controls, safe text nodes, an ARIA live status and a full linear equivalent for keyboard/NVDA review.

Qualification state

Fresh exact-head runs were created for f929f8e2...: dedicated Cross-Testament Ubuntu+Windows qualification plus DEV1, DEV05, DEV06, DEV10, Library/Search, Packaged Current Shell, Constructor V2 and Packaged Speech. They supersede all prior-head runs for readiness and are queued at the latest readback.

READY_FOR_INTEGRATION=NO pending terminal exact-head hosted qualification on f929f8e2... and NEW different-worker exact-head QA after this writer mutation. Any package/head movement voids readiness.

No physical Windows 11/WebView2, HUMAN_NVDA, visual or final-release acceptance is claimed. Related coordination: #78.

Copy link
Copy Markdown
Owner Author

HEAD_CHANGED / CURRENT-PACKAGE RECONVERGENCE WRITTEN — exact c7297c61d7ba75c6c72e4b803eaacafcd8d91321 — 2026-09-28

Guarded non-force reconvergence completed (first ref call had transport disconnect; branch readback proved no mutation, one guarded retry succeeded). FIRST parent/current tree is exact package a8f032c401803827300e0b7f2f1588bdfaec3f05; SECOND parent is prior #160 e8c3ffbb265c0a46d899ef35dea1593e3aa8b445.

Direct package→candidate is BEHIND 0 with exactly the same 12 Cross-Testament product/qualification paths; package movement since 6ce475e3... had zero overlap and all 12 blobs are byte-preserved. D2 evidence intake is retained as package authority. No relation/source/content/audit-status mutation or new inference.

Fresh Actions had not yet registered at immediate readback; historical PR changed-file count is stale and is not treated as diff truth. Direct compare above is the current mechanical authority. READY_FOR_INTEGRATION=NO pending fresh exact-head hosted qualification and changed-head QA.

Copy link
Copy Markdown
Owner Author

DIFFERENT-WORKER CURRENT-HEAD QA CLAIM — exact c7297c61d7ba75c6c72e4b803eaacafcd8d91321 — 2026-09-28

Writer reconvergence is released. Fresh bind: package a8f032c401803827300e0b7f2f1588bdfaec3f05 is current authority; prior semantically reviewed #160 head is e8c3ffbb265c0a46d899ef35dea1593e3aa8b445. I take one bounded READ-ONLY changed-head QA lease to prove package containment, exact 12-path Cross-Testament blob preservation, retention of explicit relation authorities/no-inference/unlocked-only/provenance boundaries, and current hosted state. No branch/package/main/source/relation mutation; head/package movement voids this lease.

@Oleksii-debug Oleksii-debug left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DIFFERENT-WORKER CURRENT-HEAD STATIC QA — exact c7297c61d7ba75c6c72e4b803eaacafcd8d91321

CURRENT_PACKAGE_CONTAINMENT=PASS
CROSS_TESTAMENT_12_BLOB_PRESERVATION=PASS
STATIC_SEMANTIC_QA=PASS
READY_FOR_INTEGRATION=NO pending terminal exact-head hosted qualification.

Independent changed-head proof:

  • package a8f032c401803827300e0b7f2f1588bdfaec3f05 is exact merge-base; candidate is BEHIND 0 with the same 12 Cross-Testament product/qualification paths;
  • prior reviewed e8c3ffbb265c0a46d899ef35dea1593e3aa8b445 → current head changes only the eight D2 evidence/qualification files integrated into package, with zero overlap against those 12 paths; all Cross-Testament blobs are therefore byte-preserved;
  • the previously reviewed runtime boundary remains unchanged: explicit checked-in relation authorities only, no topic/prose/similarity/chronology/consensus inference, unlocked-only visibility, explicit testament classification, bounded/Unicode-safe projection, fail-closed provenance handling;
  • repair-required D4 relation IDs remain excluded by the existing real production-gateway regression; research.get_cross_testament remains read-only/empty-payload;
  • the dedicated qualification workflow and dependency-surface regression are byte-preserved, including direct evidence/provenance/model/materialization and canonical R05/PA02 watch coverage.

No source/relation/audit-status promotion, package/main mutation, physical Windows/WebView2, HUMAN_NVDA, visual, or final-release acceptance is claimed.

Copy link
Copy Markdown
Owner Author

CROSS-TESTAMENT ACCESSIBLE LINEAR EQUIVALENCE REPAIR CLAIM — exact c7297c61d7ba75c6c72e4b803eaacafcd8d91321 — 2026-09-28

Fresh semantic review found a presentation-boundary integrity gap: validateCrossTestamentResponse() validates structured links and separately validates linear only as bounded text. It does not prove the linear/NVDA equivalent describes the same canonical relations. A stale/corrupt bridge response could therefore present one relation truth in the semantic table and different text in the linear equivalent.

Repair is deterministic, not inferential: reproduce the existing runtime CrossTestamentProjection.linearize() formatting from already-validated structured fields and require exact array equality. Also reject endpoint verse_end < verse_start. No relation/source/evidence/runtime truth mutation, no new relation inference, no package/main mutation. Existing #160 lineage only; guarded file-SHA writes.

Copy link
Copy Markdown
Owner Author

ACCESSIBLE LINEAR-EQUIVALENCE REPAIR APPLIED — exact 0e42a79b5f4038626d633dd5cfcee8a10c0e4513

Cross-Testament presentation boundary now requires the full linear/NVDA representation to be the deterministic canonical linearization of the already-validated structured relation links:

  • exact runtime formatting for relation line, optional relation witness, OT/NT passage lines and evidence provenance lines;
  • NOT_STATED_IN_CITED_TEXT requires exactly Not stated in cited text;
  • any table/linear divergence fails before rendering;
  • endpoint verse_end < verse_start now fails closed.

Executable Node regression proves valid relation equivalence, contradictory accessible text rejection, reversed range rejection and dishonest empty-state text rejection. No runtime relation/evidence/source truth changed.

Direct package→candidate remains BEHIND 0 with exact current-package merge-base a8f032c401803827300e0b7f2f1588bdfaec3f05, exact 12-path surface, review threads empty. Fresh dedicated + blast-radius workflows queued. READY_FOR_INTEGRATION=NO.

Exact-head hosted qualification passed across DEV1/DEV05/DEV06/DEV10, Library/Search, Current Shell, Constructor V2 and Speech Direct. Preserves same-publisher Authenticode, fail-closed manifest/source identity, path secrecy, and staging-only no-install/no-execute authority.

Copy link
Copy Markdown
Owner Author

CURRENT-PACKAGE RECONVERGENCE — exact 9c6ef0c7bd0b7c97ffdbdc22bf7c20d16e989a7e

FIRST parent / merge-base is current packaged authority 84933e28992ee5284b0cab20b0be61ac2e8f7a50; BEHIND=0. Cross-Testament product/runtime bytes are preserved. Shared transport contract is an additive union: research.get_cross_testament and its empty-payload gate remain, and application_update.select_verify_stage from the current package remains.

CURRENT_PACKAGE_CONTAINMENT=PASS
SHARED_CONTRACT_UNION=PASS
READY_FOR_INTEGRATION=NO pending fresh exact-head terminal gates.

@Oleksii-debug Oleksii-debug left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DIFFERENT-WORKER CURRENT-HEAD STATIC QA — exact 9c6ef0c7bd0b7c97ffdbdc22bf7c20d16e989a7e — 2026-09-29

CURRENT_PACKAGE_CONTAINMENT=PASS
REAL_CANONICAL_RELATION_FEED=PASS
ACCESSIBLE_LINEAR_EQUIVALENCE_FAIL_CLOSED=PASS
TRUSTED_UPDATE_SHARED_CONTRACT_UNION=PASS
STATIC_SEMANTIC_QA=PASS
READY_FOR_INTEGRATION=NO pending the two non-terminal exact-head DEV10 + Packaged Current Shell runs.

Fresh bind: canonical packaged authority is exact 84933e28992ee5284b0cab20b0be61ac2e8f7a50; direct package→candidate is AHEAD / BEHIND 0 with exact package merge-base and exactly 12 Cross-Testament paths. Review threads are empty.

The historical synthetic-only blocker stays closed: the production regression constructs build_runtime_gateway() from checked-in source authorities, requires a non-empty exact union of the SOURCE_AUDITED OT↔NT relation pack plus independently accepted D4 relations, and explicitly excludes repair-required D4 relation IDs. Projection stays on the same runtime-owned EvidenceRuntime, read-only/unlocked-only, with explicit testament classification and fail-closed provenance; no prose/topic/similarity/chronology inference supplies relations.

Current UI/test bytes include the later accessibility-integrity hardening absent from the older c7297c61... review: validateCrossTestamentResponse() recomputes the full canonical linear equivalent from structured links, rejects contradictory accessible text, rejects reversed verse ranges, and requires honest exact empty-state text. The executable Node regression proves valid relation equivalence plus those rejection cases. Semantic table/textContent/live-status behavior remains intact.

The sole shared package overlap, transport/contracts.py, is a clean additive union: current-package application_update.select_verify_stage and diagnostics commands remain; research.get_cross_testament remains allowlisted only with an exact empty payload. No package capability is dropped.

Exact-head hosted evidence currently reads SUCCESS for dedicated Packaged Cross-Testament, DEV1, DEV05, DEV06, Library/Search, Constructor V2 Direct and Packaged Speech Direct. DEV10 36484672610 and Packaged Current Shell 36484672625 are still queued, so no readiness promotion yet. No source/relation/audit-status promotion, package/main mutation, physical Windows/WebView2, HUMAN_NVDA, visual or final-release acceptance is claimed.

Exact-head hosted qualification passed across DEV1/DEV02/DEV05/DEV06/DEV10, Library/Search, Current Shell, Constructor V2 and Speech Direct. Fresh different-worker QA confirms the real packaged PA02 Dossier data path, fail-closed unlocked-only provenance, stale-safe accessible UI, and trusted-update shared transport union.

Copy link
Copy Markdown
Owner Author

SAME-LINEAGE POST-DOSSIER CURRENT-PACKAGE RECONVERGENCE CLAIM — 2026-09-29

Canonical packaged authority advanced by qualified #153 to exact 70183db6db47d6a894eaa4f67cc372c3812185d6. #160 remains exact 9c6ef0c7bd0b7c97ffdbdc22bf7c20d16e989a7e; its prior exact-base readiness is therefore void even though candidate-local gates are green/queued.

Fresh compare: new package→#160 is diverged only because merge-base is prior package 84933e28992ee5284b0cab20b0be61ac2e8f7a50. #160 still owns exactly its 12 Cross-Testament paths over that merge-base. The just-integrated Dossier surface overlaps only the shared packaged application seams that must be semantically unioned; all disjoint Cross-Testament blobs will be preserved byte-for-byte.

I take one bounded SAME-LINEAGE reconvergence lease on existing PR #160: new package 70183db6... as FIRST parent/current product authority, current #160 9c6ef0c7... as SECOND-parent provenance. Preserve the qualified Dossier dossier.get/subject/runtime/UI behavior and trusted-update staging commands while retaining Cross-Testament research.get_cross_testament, canonical relation loaders/projection, accessible fail-closed UI and exact qualification surface. No relation/source/evidence invention or audit-status promotion. Guarded fast-forward only; any package/head movement before ref update causes rebind.

Copy link
Copy Markdown
Owner Author

HEAD_CHANGED / POST-DOSSIER RECONVERGENCE — exact 0ed3b563f6bdc3f05025cdaedcd4015e0fd12135 — 2026-09-29

Same-lineage reconvergence is complete with canonical package 70183db6db47d6a894eaa4f67cc372c3812185d6 as FIRST parent/current tree authority and prior #160 9c6ef0c7bd0b7c97ffdbdc22bf7c20d16e989a7e as SECOND-parent provenance. Ref update was guarded, non-force.

Direct package→candidate: AHEAD / BEHIND 0; merge-base exact 70183db6...; exactly 12 lasting Cross-Testament paths. Nine disjoint Cross-Testament workflow/UI/runtime/test blobs are byte-identical to 9c6ef0c7.... The three shared packaged seams were semantic-unioned instead of replaying stale blobs:

  • runtime gateway preserves canonical Dossier subject-catalog gating and adds the Cross-Testament projection under the same runtime lock;
  • service preserves strict Dossier dispatch/response validation and adds Cross-Testament dispatch + advertised capability;
  • transport preserves strict three-field dossier.get, trusted-update staging/diagnostics commands, and adds only empty-payload research.get_cross_testament.

No Scripture/source/evidence/relation authority or audit-status bytes were authored by this reconvergence. READY_FOR_INTEGRATION=NO pending fresh exact-head terminal hosted qualification + NEW different-worker QA on 0ed3b563.... Any further package/head movement voids readiness.

Exact-head hosted qualification and final different-worker QA passed against current packaged authority. Preserves D4 as READ_ONLY_LIBRARY, non-gradeable, with INDEPENDENT_AUDIT_PENDING visible and CanonicalContentLoader as sole gradeable authority.

Copy link
Copy Markdown
Owner Author

CURRENT-PACKAGE COMPOSITION READINESS — exact f0aa6f744246a9c521dea0b41638137bb8e49420 — 2026-09-29

Current packaged authority before integration: 3e9486ce786ec1827279721f4d2976b6bddc9a82.

Composition proof:

  • direct package→candidate is BEHIND=0 with exact package merge-base and exactly 12 Cross-Testament paths;
  • 11 Cross-Testament product/runtime/qualification blobs are byte-preserved from the previously reviewed exact-head implementation;
  • the sole D4 overlap, test_packaged_library_current_shell.py, is an explicit semantic union: D4 Library blob pin + executable access/audit fail-closed regression remain, while Cross-Testament loader membership, loader invocation and JS syntax checks are added;
  • shared transport retains trusted update staging, Dossier and research.get_cross_testament; Cross-Testament stays empty-payload/read-only;
  • current D4 Library remains read-only/non-gradeable with visible audit status.

Fresh exact-head hosted qualification is terminal SUCCESS for DEV1 (including Windows engineering release), DEV05, DEV06, DEV10, Library/Search, Packaged Current Shell, Constructor V2 Direct, Speech Direct and dedicated Packaged Cross-Testament qualification.

No unresolved review thread is present.

CURRENT_HEAD_HOSTED_QUALIFICATION=PASS
READY_FOR_INTEGRATION=YES

@Oleksii-debug
Oleksii-debug marked this pull request as ready for review September 29, 2026 12:24
@Oleksii-debug
Oleksii-debug merged commit d0925b4 into r06-compose-packaged-app-update-verify-0911 Sep 29, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant