Problem
PR #96 (Codex-generated Spectra proposal for R package generating WordBuilderSwift scripts) is currently blocked pending revision — 2 CRITICAL + 10 HIGH findings surfaced by 6-AI verify report at #96 (comment).
Per ooxml-edit-isomorphism-foundation ADR-009, this PR should be reframed as a Layer 4 (caller) consumer of the architectural foundation. Critically, the CRITICAL findings (R→Swift code injection unaddressed, retained .swift portability) are naturally resolved by routing through the safe WordEdit API surface instead of raw Swift code generation.
Type
refactor (proposal alignment + security improvement)
Context
ADR-009 in ooxml-edit-isomorphism-foundation design.md (cluster branch idd/chain-99-feat-architecture-radical-translation-oo):
#88 R-wordbuilder → Layer 4 (caller); R generates .swift that uses WordEdit
Expected
PR #96 (or its successor) reframes to:
- Generate
WordEdit invocations instead of raw struct-serialization Swift code
- Code-injection vector eliminated by safe
WordEdit API (typed values, no string interpolation into Swift source)
- Retained
.swift portability addressed by canonical WordEdit serialization (no absolute paths in generated code — abstract paths via R fs::path() resolved at swift run time)
Strategy
Related
Refs #99 #88
Current Status
Phase: verified
Last updated: 2026-05-25 by /idd-diagnose (batch reopen-for-chain-2)
Problem
PR #96 (Codex-generated Spectra proposal for R package generating WordBuilderSwift scripts) is currently blocked pending revision — 2 CRITICAL + 10 HIGH findings surfaced by 6-AI verify report at #96 (comment).
Per
ooxml-edit-isomorphism-foundationADR-009, this PR should be reframed as a Layer 4 (caller) consumer of the architectural foundation. Critically, the CRITICAL findings (R→Swift code injection unaddressed, retained .swift portability) are naturally resolved by routing through the safeWordEditAPI surface instead of raw Swift code generation.Type
refactor (proposal alignment + security improvement)
Context
ADR-009 in
ooxml-edit-isomorphism-foundationdesign.md (cluster branchidd/chain-99-feat-architecture-radical-translation-oo):Expected
PR #96 (or its successor) reframes to:
WordEditinvocations instead of raw struct-serialization Swift codeWordEditAPI (typed values, no string interpolation into Swift source).swiftportability addressed by canonicalWordEditserialization (no absolute paths in generated code — abstract paths via Rfs::path()resolved atswift runtime)Strategy
ooxml-edit-isomorphism-foundationapply ships, revise PR Propose R wordbuilder MVP #96 proposal to cite this foundationRelated
Refs #99 #88
Current Status
Phase: verified
Last updated: 2026-05-25 by /idd-diagnose (batch reopen-for-chain-2)