Skip to content

github-devloop implementation for #376 - #377

Merged
ElonSG merged 3 commits into
integration-elonsgfrom
devloop/issue/ChronoAIProject/fkst-substrate/376/ready-github-devloop-issue-ChronoAIProject-fkst-substrate-376-intake-0793616850-3781019297
Aug 13, 2026
Merged

github-devloop implementation for #376#377
ElonSG merged 3 commits into
integration-elonsgfrom
devloop/issue/ChronoAIProject/fkst-substrate/376/ready-github-devloop-issue-ChronoAIProject-fkst-substrate-376-intake-0793616850-3781019297

Conversation

@ElonSG

@ElonSG ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

github-devloop implementation PR for issue #376

loning added 2 commits August 13, 2026 09:21
Centralize strict JSONL parsing for live and mocked Codex execution, retain bounded additive diagnostics, and carry structured results through adoption replay.\n\n⟦AI:FKST⟧
@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop PR child open

@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop PR is ready for review

@ElonSG ElonSG added the fkst-dev:reviewing pr-review-consensus-in-progress label Aug 13, 2026
@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop PR is ready for review

@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop PR review decision: reject
Verdicts: teleology=reject parsimony=reject fidelity=reject natural-ownership=reject proportional-containment=reject
Blocking gap: fail-open JSONL detection

teleology:
The peer attacks reinforce the same root defect rather than defeat it: strict process-boundary practice requires the declared --json protocol to govern every nonblank record, but parse_codex_jsonl skips leading lines that do not begin with { or [ and returns wholly skipped output as success (crates/fkst-framework/src/sdk_codex.rs:452, crates/fkst-framework/src/sdk_codex.rs:546), despite every invocation adding --json (crates/fkst-framework/src/sdk_codex.rs:3281). Thus plaintext or scalar records, including a scalar before a valid event, evade the required structured-adapter failure; the added test covers only object-led malformed/trailing cases (crates/fkst-framework/src/sdk_codex.rs:4333).

parsimony:
The peers reinforce the locked root finding: strict JSONL decoding is required by the unconditional --json invocation at crates/fkst-framework/src/sdk_codex.rs:3281-3282, but the parser skips leading non-{/[ lines at crates/fkst-framework/src/sdk_codex.rs:452-454 and returns wholly skipped output as success at crates/fkst-framework/src/sdk_codex.rs:546-551. This allows malformed plaintext and scalar records to bypass the required structured-adapter failure; the added test covers only object-led malformed/trailing cases at crates/fkst-framework/src/sdk_codex.rs:4333-4338. The issue's fail-closed acceptance criterion therefore remains unmet.

fidelity:
The peers’ shared attack confirms rather than defeats the rejection: command_args_for_request unconditionally requests --json at crates/fkst-framework/src/sdk_codex.rs:3281, but parse_codex_jsonl skips non-{/[ lines at crates/fkst-framework/src/sdk_codex.rs:452 and returns wholly skipped output as success at crates/fkst-framework/src/sdk_codex.rs:546. Thus scalar JSON such as 42, plaintext such as not-json, or either before a valid event bypasses the required structured-adapter failure for non-object/malformed records. The added tests at crates/fkst-framework/src/sdk_codex.rs:4333 cover only object-led streams and do not close this fail-open path.

natural-ownership:
The peer attacks corroborate the locked finding: because every invocation includes --json at crates/fkst-framework/src/sdk_codex.rs:3281, each non-empty line must be parsed, yet parse_codex_jsonl skips leading non-{/[ lines at crates/fkst-framework/src/sdk_codex.rs:452 and returns wholly skipped output as success at crates/fkst-framework/src/sdk_codex.rs:546. Plaintext or scalar records therefore bypass the required structured-adapter failure, while the new test at crates/fkst-framework/src/sdk_codex.rs:4333 covers only object-led streams. This defeats the issue’s explicit fail-closed requirement for malformed and non-object records.

proportional-containment:
The peer claims converge on the same root defect rather than defeating the locked position: strict JSONL practice requires every non-empty record to be parsed under the unconditional --json contract, but parse_codex_jsonl skips leading non-{/[ lines at crates/fkst-framework/src/sdk_codex.rs:452 and returns wholly skipped plaintext as success at crates/fkst-framework/src/sdk_codex.rs:546, despite --json being mandatory at crates/fkst-framework/src/sdk_codex.rs:3281. Thus plaintext, scalar records, or plaintext preceding valid JSON bypass the required structured-adapter failure, while the added tests at crates/fkst-framework/src/sdk_codex.rs:4333 cover only object-led streams. This remains a goal-blocking failure of the stated malformed/non-object rejection requirement.

⟦AI:FKST⟧

@ElonSG ElonSG added fkst-dev:fixing review-rejected-and-fix-in-progress and removed fkst-dev:reviewing pr-review-consensus-in-progress labels Aug 13, 2026
@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop merge gate failed: fail-open JSONL detection
Reproduce locally with scripts/run.sh test from the repository root.

@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop fix pushed for re-review

Previous reviewed head: a1dc734
New head: cdccd37

@ElonSG ElonSG added fkst-dev:reviewing pr-review-consensus-in-progress and removed fkst-dev:fixing review-rejected-and-fix-in-progress labels Aug 13, 2026
@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop PR is ready for review

@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop PR review decision: approve
Verdicts: teleology=approve parsimony=approve fidelity=approve natural-ownership=approve proportional-containment=approve

teleology:
The named fail-open JSONL detection gap is closed: every nonblank line now reaches JSON parsing, non-object values are rejected, and missing string type values fail closed (sdk_codex.rs); malformed results retain the original process exit code while becoming structured_adapter failures (sdk_codex.rs); the command contract still unconditionally supplies --json (sdk_codex.rs); and regression coverage includes plaintext, scalar JSON, and both before a valid event (sdk_codex.rs). No in-scope fix regression or evidenced BEAUTY-GATE smell remains. ⟦AI:FKST⟧

parsimony:
The named fail-open JSONL detection gap is closed: the fix deletes the leading-record heuristic, parses every nonblank line, rejects plaintext and scalar records, and adds exact regression coverage at crates/fkst-framework/src/sdk_codex.rs:4338-4350; no fix-induced magic-number or symptom-branch regression remains within the stated issue bounds.

fidelity:
The named fail-open JSONL detection gap is closed: the fix removes the leading-character bypass, parses every nonblank record, rejects malformed JSON and non-object values at crates/fkst-framework/src/sdk_codex.rs:457-490, and adds direct regression cases for plaintext, scalar JSON, and each before a valid event at crates/fkst-framework/src/sdk_codex.rs:4338-4350; no in-scope regression is evident in the repair.

natural-ownership:
The named fail-open JSONL detection gap is closed: every nonblank line is now parsed and rejected unless it is a JSON object with a string type (crates/fkst-framework/src/sdk_codex.rs:450), while regression coverage explicitly exercises wholly plaintext, wholly scalar, and either form before a valid event (crates/fkst-framework/src/sdk_codex.rs:4338). The invariant is enforced at its natural owner rather than duplicated downstream, and the fix introduces no evidenced smell or in-scope regression. ⟦AI:FKST⟧

proportional-containment:
The named fail-open JSONL gap is closed: parse_codex_jsonl now parses every nonblank line and rejects malformed JSON, scalars/non-objects, missing string type, malformed recognized records, and trailing data while preserving the process exit code (crates/fkst-framework/src/sdk_codex.rs:450-547). Live and mocked execution share the parser (crates/fkst-framework/src/sdk_codex.rs:325-347, 975-1038), and typed metadata/diagnostics propagate through adoption recovery and receipts (crates/fkst-framework/src/sdk_codex.rs:1207-1275, 2055-2104). The prescribed Cargo test could not run because this read-only checkout denies target lock creation; that is a later verification-gate limitation, not a code-blocking finding.

⟦AI:FKST⟧

@ElonSG ElonSG added fkst-dev:merge-ready review-approved-and-ready-to-merge and removed fkst-dev:reviewing pr-review-consensus-in-progress labels Aug 13, 2026
@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop is merging PR #377

@ElonSG
ElonSG merged commit 9a007db into integration-elonsg Aug 13, 2026
2 checks passed
@ElonSG

ElonSG commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

github-devloop merged PR #377

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

Labels

fkst-dev:merge-ready review-approved-and-ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants