Skip to content

R06: preserve structured parallel-witness runtime semantics - #254

Merged
Oleksii-debug merged 37 commits into
r06-compose-packaged-app-update-verify-0911from
r06-parallel-witness-structured-contract-0929-sol
Sep 29, 2026
Merged

Oleksii-debug merged 37 commits into
r06-compose-packaged-app-update-verify-0911from
r06-parallel-witness-structured-contract-0929-sol

Conversation

@Oleksii-debug

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

Copy link
Copy Markdown
Owner

Scope

Root-cause runtime/presentation repair for parallel-witness tasks across the shipping Gospel/D3 corpus and corrected D2 authority.

Current packaged base: r06-compose-packaged-app-update-verify-0911@d0925b4a293c9a316294d5f2a1cabb2d7f71703f.
Current candidate: r06-parallel-witness-structured-contract-0929-sol@1d5638f574b697a984fef008e0e16a093f34220e.

Direct package → candidate is BEHIND 0 with exact package merge-base.

Canonical-vs-derived task semantics

The authored project taxonomy remains exactly 14 canonical task types. PARALLEL_WITNESS_COMPARE remains one authored type.

Two authored truth shapes already exist and are preserved without rewriting source nodes:

  • shipping Gospel/D3: scalar accepted answer → PARALLEL_WITNESS_COMPARE with ANSWER_DTO_v1 {choice:string};
  • corrected D2: accepted_answer={synthesis,witnesses} → deterministic derived runtime/presentation type PARALLEL_WITNESS_SYNTHESIS with ANSWER_DTO_v1 {synthesis:string,witnesses:string[]}.

PARALLEL_WITNESS_SYNTHESIS is explicitly exposed as a derived runtime contract, not promoted into the authored canonical taxonomy.

Structured witness correctness

For derived structured tasks:

  • provenance consumes the authored synthesis/witness object only;
  • explicit grading.accepted_propositions and grading.required_witnesses must be equivalent to canonical truth or fail closed;
  • package adaptation does not manufacture legacy accepted_choice;
  • synthesis and witness set are graded independently;
  • final score is bounded by the weaker dimension;
  • full correctness requires both authored synthesis semantics and the exact witness set;
  • mismatch diagnostics preserve the exact grading.required_witnesses authority field identity.

Legacy D3 scalar witness comparison remains choice-graded and cross-lane regression proves it still self-grades correctly.

Packaged accessibility

The derived renderer uses a labelled fieldset, labelled synthesis textarea, labelled witness/source-block textarea, help text, and keyboard-linear controls.

A hosted-gate defect was repaired: witness input now splits actual CRLF/LF line breaks with /\r?\n/; the prior source accidentally matched literal backslash sequences. This matters directly for multiline keyboard/NVDA entry.

Public task projection continues to omit accepted answers, accepted variants and grading truth.

Qualification

Exact-head 1d5638f5... hosted gates are terminal SUCCESS:

  • DEV1 Platform CI 36610939895;
  • DEV02 Accessibility 36610939910;
  • DEV03 Visual 36610940372;
  • DEV05 runtime grading 36610940105;
  • DEV06 memory persistence 36610939897;
  • DEV10 Integration 36610939883;
  • Library/Search 36610939770;
  • Packaged Library Current Shell 36610940037;
  • Pedagogical Quality 36610940083.

No D2 content/evidence/source/audit byte is changed. No independent-audit promotion is claimed.

DIRECT_CURRENT_PACKAGE_CONTAINMENT=PASS
CROSS_CORPUS_RUNTIME_COMPATIBILITY=PASS
HOSTED_BLAST_RADIUS=PASS
AUTHOR_CHANGED_HEAD_QA=PASS
READY_FOR_INTEGRATION=NO pending a different-worker exact-head review.

Copy link
Copy Markdown
Owner Author

AUTHORITY-SHAPE + CROSS-CORPUS COMPATIBILITY READBACK — exact current candidate lineage

Fresh exact corpus scan proves the node-context split is required and deterministic, not heuristic widening.

Qualified corrected D2 authority #235 6ed0a9e8f390dea7c12c05fb9e991ed6328d1458:

  • 11 PARALLEL_WITNESS_COMPARE nodes total;
  • 11/11 structured objects, 0 scalar;
  • every accepted object has exactly synthesis,witnesses;
  • no empty/malformed synthesis or witness list;
  • mission distribution: PA-03=5, PA-04=4, PA-05=1, PA-07=1.

Current packaged Gospel/D3 corpus on package d0925b4a293c9a316294d5f2a1cabb2d7f71703f:

  • 6 PARALLEL_WITNESS_COMPARE nodes total;
  • 6/6 scalar string accepted answers, 0 structured;
  • shipping examples GW01/GW02/GW04/GW06/GW08/GW10 N19 retain labelled witness choice options.

Accordingly #254 now preserves the shipping scalar type PARALLEL_WITNESS_COMPARE -> {choice:string} and derives PARALLEL_WITNESS_SYNTHESIS -> {synthesis:string,witnesses:string[]} only when the authored accepted-answer shape is the corrected D2 structure. Runtime adapter and packaged presentation mapper use the same node-context resolver; no source node byte/task_type is rewritten.

This supersedes the earlier same-PR implementation that globally redefined PARALLEL_WITNESS_COMPARE. Cross-lane regressions now require legacy D3 choice self-grade and corrected D2 structured self-grade to pass together.

READY_FOR_INTEGRATION=NO pending current exact-head hosted gates.

Copy link
Copy Markdown
Owner Author

SAME-LINEAGE ROOT-CAUSE REPAIR CLAIM — exact 76176fc3dcd246284366ba88619947ba2626c7d7

Fresh failed-gate triage proves three candidate-local defects:

  1. packaged structured-witness textarea serializes with split(/\\r?\\n/), which matches literal backslashes instead of user-entered line breaks; witness lines are not actually separated;
  2. provenance mismatch diagnostics drop the explicit grading.required_witnesses field identity, breaking the fail-closed diagnostic contract;
  3. derived PARALLEL_WITNESS_SYNTHESIS was inserted into CANONICAL_TASK_TYPES, inflating the authored taxonomy from the repository's canonical 14 to 15. Platform authored registry remains exactly 14; the structured synthesis type is a derived runtime/presentation contract and must be represented separately.

I am repairing these on existing #254 only: preserve 14 authored types, add an explicit derived-runtime type surface, keep structured D2 lossless support, fix real newline serialization, and retain all D3 scalar PARALLEL_WITNESS_COMPARE semantics. No D2 content/evidence/source/audit bytes or package/main mutation. Any branch movement before a guarded write causes yield/rebind.

Copy link
Copy Markdown
Owner Author

ROOT-CAUSE REPAIR WRITTEN — current lineage after 1d5638f574b697a984fef008e0e16a093f34220e

Implemented without D2/content mutation:

  • fixed packaged structured-witness input to split actual CRLF/LF line breaks instead of literal backslash sequences;
  • provenance mismatch reason now preserves explicit grading.required_witnesses field identity;
  • restored canonical authored taxonomy to the repository's 14 task types;
  • PARALLEL_WITNESS_SYNTHESIS is now explicitly separated as a derived runtime task contract in transport + provenance descriptors while remaining fully supported by runtime grading/presentation;
  • added regression coverage proving the derived type is not silently promoted into authored taxonomy.

Fresh blast-radius CI is running on the repaired head. D3 scalar PARALLEL_WITNESS_COMPARE remains choice-based; corrected D2 structured nodes still derive synthesis+witness DTO losslessly.

@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.

INDEPENDENT DIFFERENT-WORKER EXACT-HEAD REVIEW — 1d5638f574b697a984fef008e0e16a093f34220e

Reviewed the complete package→head delta and current runtime/presentation contracts. No blocking defect found.

Key findings:

  • authored canonical taxonomy remains exactly 14 types; PARALLEL_WITNESS_SYNTHESIS is exposed separately as a derived runtime/presentation contract and is not written back into source nodes;
  • structured D2 truth derives only from an authored PARALLEL_WITNESS_COMPARE node whose accepted answer is the explicit {synthesis,witnesses} object; scalar D3/Gospel witness comparison remains the established choice DTO/grader;
  • provenance fails closed when explicit accepted_propositions or grading.required_witnesses conflict with canonical structured truth, and diagnostics preserve the grading.required_witnesses authority field;
  • the runtime adapter does not synthesize legacy accepted_choice for structured witness tasks; grading independently checks synthesis semantics and exact normalized witness set and caps the score by the weaker dimension;
  • public player projection exposes only the structured answer schema and source-facing fields; accepted answer/grading truth remains absent from the rendered surface;
  • packaged renderer is keyboard-linear with labelled synthesis/witness textareas, help text, and actual CRLF/LF splitting; the accessibility inspector recognizes the derived text surface without requiring choice options;
  • cross-lane tests retain D3 scalar self-grade while proving D2 structured self-grade; exact-head hosted DEV1/DEV02/DEV03/DEV05/DEV06/DEV10, Library/Search, Packaged Library Current Shell and Pedagogical Quality runs are all terminal SUCCESS.

This review does not promote D2 independent-audit status, does not claim HUMAN_NVDA/physical Windows acceptance, and does not alter Scripture/source/provenance bytes.

@Oleksii-debug
Oleksii-debug merged commit 1bace44 into r06-compose-packaged-app-update-verify-0911 Sep 29, 2026
16 checks passed

Copy link
Copy Markdown
Owner Author

POST-MERGE QA DEFECT / FOLLOW-UP LINEAGE — 2026-09-29

After #254 merged exact head 1d5638f574b697a984fef008e0e16a093f34220e into package 1bace44f3f8eb2a180833bd7108dc12c744c31fb, real corrected D2 authority #235 was inspected across all 11 structured parallel-witness nodes.

A player-entry representation defect was proven: 8/11 structured nodes encode multiple passage references inside at least one canonical witnesses[] string separated by semicolons, while the accessible renderer instructs one passage per line and emits separate array entries. Thus semantically identical input such as canonical ["Acts 9:10–19; Acts 22:12–16"] vs keyboard submission ["Acts 9:10–19","Acts 22:12–16"] could grade non-correct.

No canonical D2/source byte should be rewritten. Minimal follow-up is PR #258 at exact head 42f9386a70baa8e0ddcd7930b778ae60b34698e3, directly based on current package, 4 files only. It normalizes semicolon-vs-line representation only for witness-set comparison, clarifies keyboard help, and adds regression.

#254 remains historically integrated as merged; do not reopen/rewrite it. #258 is the canonical repair lineage. No HUMAN_NVDA/physical-Windows claim.

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