Skip to content

R06 repair: align EvidenceRuntime and PA02 packaged regressions - #223

Merged
Oleksii-debug merged 155 commits into
r06-compose-packaged-app-update-verify-0911from
r06-repair-evidence-chronology-terminal-0927-sol
Sep 27, 2026
Merged

Oleksii-debug merged 155 commits into
r06-compose-packaged-app-update-verify-0911from
r06-repair-evidence-chronology-terminal-0927-sol

Conversation

@Oleksii-debug

Copy link
Copy Markdown
Owner

CONTROL #78 — same-lineage repair of terminal exact-head failures on #220 without rewriting production EvidenceRuntime, chronology, source truth or packaged runtime wiring.

Failing authority:

Root-cause proof:

  1. EvidenceRegistryBundle explicitly defines record_count/ records as R05-registry scope while runtime may additionally contain validated PA02 structured records. Current production bundle is 93 R05 records + 10 PA02 records = 103 runtime evidence. The old equality assertion (103 == 93) contradicted the current contract.
  2. Production _require_true_bool remains strict identity semantics (is not True), correctly rejecting False/"true"/1/None. Only the test's obsolete error-message wording said "literal true".
  3. materialize_otnt_relation_pack() intentionally globally unlocks independently audited OT↔NT evidence for read-only research projection. Therefore the packaged witness matrix has a legitimate non-PA02 baseline before PA02-N13 unlock. The old exact-three assertion conflated baseline research witnesses with witnesses introduced by PA02 unlock.

Repair, exactly two test paths:

  • runtime_engine/tests/test_evidence_registry.py
    • assert len(records)==record_count;
    • assert all R05 record IDs are present in the composite runtime;
    • assert structured runtime enrichment exists;
    • preserve literal-boolean negative cases while matching the current production error contract.
  • lanes/dev1/repair_overlay/tests/test_packaged_structured_evidence_population.py
    • snapshot the pre-PA02 witness baseline;
    • require the three PA02 witness tokens to be absent from baseline;
    • after canonical branch unlock, require final witnesses to equal exactly baseline ∪ PA02;
    • require the newly introduced witness set to equal exactly the three PA02 tokens. This does not permit arbitrary extra witness leakage.

Remote readback:

Fresh exact-head qualification required: DEV1/DEV05/DEV06/DEV10/Current Shell/Library/Pedagogical plus NEW different-worker QA.

No source/content/audit-status promotion. No package/main mutation. No physical Windows/HUMAN_NVDA/no-admin claim.

PRODUCTION_SEMANTICS_CHANGED=NO
READY_FOR_INTEGRATION=NO pending fresh hosted qualification + NEW different-worker QA.

Same-lineage reconvergence under #78. First parent is current packaged parent 64dd844; second parent is released #146 head 391cf8c. Preserves the exact 21 gate/source-release blobs byte-for-byte over the current packaged tree, with zero overlap against the packaged Mastery delta.
Bounded same-lineage #146 repair. Preserve canonical Scripture/source truth and the qualified diagnostics blob. Normalize only the historical citation-selection representation at the runtime adapter boundary; make qualification source reads explicitly UTF-8; and verify diagnostics fidelity against the committed Git object rather than platform-dependent working-tree newline bytes.
Bounded same-lineage #146 repair. Map two exact CONTENT_NODE_SCHEMA v1.2 historical response labels already authored in LN-01 to the existing SHORT_TEXT ANSWER_DTO_v1 contract, with regression coverage. No content/source truth changes.
Bounded same-lineage #146 repair. Bind three additional exact LN-01 CONTENT_NODE_SCHEMA v1.2 response labels to the same task mechanics already used by the packaged presentation mapper, with focused regressions. No authored content, source truth, or generic heuristic fallback is changed.
Bounded same-lineage #146 repair. Losslessly normalize only Unicode-arrow-delimited canonical accepted_answer values for legacy ORDERING nodes at the runtime adapter boundary, preserving source files and rejecting ambiguous/presentation-derived order. Add focused regression coverage including fail-closed task_payload protection.
Replace the focused #146 regression's accidental pytest dependency with unittest so the repository's dependency-free runtime CI can execute it. No runtime or source semantics change.
Re-anchor the bounded DEV1 release-gate repair on the current packaged product while preserving the prior #146 lineage as the second parent. Carry only immutable FINALPREP02 reconstruction/verification, Windows gate hardening, bounded legacy answer normalization, and focused regression coverage. Add the exact historical FREE_RESPONSE / CITATION -> SHORT_TEXT compatibility alias observed in current two-OS tools_smoke; canonical accepted_answer remains the sole ground-truth source and unknown task types still fail closed.

First parent: ae1b3dc
Second parent: d787a16
…t package

First-parent current packaged truth at 4543741; second-parent independently source-QA-passed #155 at be177ea. Transplant only the five source-safe evidence-materialization blobs with zero overlap against the Chronology package advance. Preserve source wording, grading truth, current packaged Chronology/Witness/Evidence/DEV03 state, and external shared DEV1/#146 classification. No physical Windows/NVDA acceptance claim.
Stale-writer takeover under #78. Preserve the exact bounded #146 tree while rebinding ancestry to current packaged product 104b416 as first parent and prior #146 head 528d096 as second parent. This ancestry-only convergence intentionally does not claim the known 14-failure/2-error DEV1 suite is repaired; follow-up same-lineage commits will repair the exposed current-package contract seams without weakening source/security/accessibility invariants.
Repair three exact current-package false negatives without weakening the product invariants: Review Queue now verifies the canonical synchronous chooseTransport export plus async unwrap; Research persistence asserts the concrete accessible htmlFor bindings actually emitted by the composed UI; Visual Design follows the renderer facade to renderers-base.js and verifies the task-type data hook at its authoritative implementation. No product/runtime/source behavior changes.

Copy link
Copy Markdown
Owner Author

DIFFERENT-WORKER STATIC QA CHECKPOINT — PASS — exact 2c4d13507acefe578479627367e0f8aa80080a88.

Independent readback:

Static QA is PASS. Terminal exact-head hosted evidence remains decisive; READY_FOR_INTEGRATION=NO until all required runs are terminal green. QA lease remains held only for terminal readback; no product mutation.

@Oleksii-debug
Oleksii-debug marked this pull request as ready for review September 27, 2026 12:57

Copy link
Copy Markdown
Owner Author

DIFFERENT-WORKER QA — PASS / TECHNICAL QUALIFICATION PASS — exact 2c4d13507acefe578479627367e0f8aa80080a88.

Terminal hosted evidence now confirms all seven required exact-head workflows SUCCESS: DEV05 runtime grading, Library/Search Qualification, Pedagogical Quality Inventory, DEV06 memory persistence, DEV1 Platform CI, DEV10 Integration CI, and Packaged Library Current Shell Qualification.

Together with the prior independent static readback (exactly two test-only changes; package containment; unchanged production EvidenceRegistry/runtime_gateway blobs; fail-closed literal-True nonvisual contract retained; PA02 witness assertion now baseline-aware but exact), this closes the repair qualification.

DIFFERENT_WORKER_QA=PASS
TECHNICAL_QUALIFICATION=PASS
READY_FOR_INTEGRATION=YES
PACKAGE_INTAKE_AUTHORITY=NO (unchanged governance boundary)

PR promoted from draft to ready-for-review. QA lease sa:qa:evidence-chronology-repair-223-0927 is RELEASED.

@Oleksii-debug
Oleksii-debug merged commit 3a4cf96 into r06-compose-packaged-app-update-verify-0911 Sep 27, 2026
12 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