Skip to content

[codex] add openapi backend emission demo - #2410

Closed
briansrls wants to merge 13 commits into
mainfrom
session/sleek-eagle-557
Closed

briansrls wants to merge 13 commits into
mainfrom
session/sleek-eagle-557

Conversation

@briansrls

Copy link
Copy Markdown
Contributor

Summary

Adds the backend half of the R3 omni_openapi_backend_emission_demo receipt. The Shape B OpenAPI helper can now project a small dependency-free Rust backend service from the same compiled DAG route set used by OpenAPI and Markdown.

The integration receipt now compiles the generated backend with rustc, exercises declared routes including path parameters, and checks OpenAPI routes against the emitted backend route listing. The same-node-tree test also includes backend projection alongside OpenAPI and Markdown.

Validation

  • cargo test -p v3-compiler --test integration m1_5_omni_shape_b_openapi_test -- --nocapture
  • cargo test -p v3-compiler omni_shape_b_openapi -- --nocapture

Both ran through remote BuildBuddy execution and passed.

briansrls added a commit that referenced this pull request May 9, 2026
…nding Mgr dispatched backend half)

Discovered after Grounding Mgr (sunny-koi-893) dispatched sleek-eagle-557
under #2405 with PR #2410 "[codex] add openapi backend emission demo" —
PR body says "Adds the backend half of the R3 omni_openapi_backend_emission_demo
receipt." So my PR #2399 claim "CONSUMER_LANDED via PR #2251" was wrong:
gate #25 needs BOTH halves (OpenAPI projection + backend emission); PR
#2251 only landed the OpenAPI half.

Cluster-analysis audit §1 at sha 8729178 named only PR #2251 as
evidence for gate #25 promotion — that was incomplete; backend emission
half wasn't tracked. Per PR #2410 body, the integration receipt
"compiles the generated backend with rustc, exercises declared routes
including path parameters, and checks OpenAPI routes against the
emitted backend route listing" — the receipt requires the backend
half.

Fix: row #25 corrected to DECLARED — partial. OpenAPI projection half
cited as landed via PR #2251; backend emission half cited as in-flight
via sleek-eagle-557 PR #2410. Gate fires CONSUMER_LANDED when both
halves land + integration receipt passes.

Validates the meta-finding from PR #2358 §8 (closure-claims-vs-HEAD
drift): even careful PR-history-derived claims can drift if the
evidence is incomplete relative to the gate's actual Pass condition.
PM should grep-verify the gate's Pass-condition body against the
candidate evidence before authoring promotion claims.

The other 9 candidates in PR #2399 unchanged — none have similar
"backend half pending" pattern visible at audit time. Lane Mgrs review
their lane's rows during PR review to catch any other premature claims.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls
briansrls marked this pull request as ready for review May 9, 2026 22:30

@briansrls briansrls left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review metadata

  • Provider / model: codex / unknown
  • Commit: 8142cd2a · Trigger: schedule
  • Thinking: 239s wall

BLOCKING (2)

Root Cause

  • src/v3/compiler/src/omni_shape_b_openapi.rs The R3 demo implementation was added as a new Rust projector without a Pure Bootstrap receipt → add one checkable P5 receipt: deleted scaffold path, SG-0 before/after shrink, or explicit ROADMAP deferral.
  • src/v3/compiler/src/omni_shape_b_openapi.rs The backend matcher treats ParamToken as an unconstrained suffix instead of a std.http_path segment token → make it consume exactly one non-empty slash-free segment before the next literal or end.

ROADMAP — Verified

  • T-Omni-Shape-B: docs/r3-structure.md locks the OpenAPI backend plus Markdown demo target, so the backend demo is in scope.

⚠️ Two blocking issues need fixes before this lands.

Ok(out)
}

pub fn project_rust_backend_service(dag: &Dag) -> Result<String, ProjectOpenApiError> {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

BLOCKING: This expands hand-written Rust under src/v3, but the changed text only names Brief #2219 and does not provide the exact P5 receipt required for new hand Rust.

let close = t + 1 + close_offset;
let after_param = close + 1;
if after_param == template.len() {
return c < candidate.len();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

BLOCKING: The terminal ParamToken branch accepts any non-empty suffix, so /users/{id} also matches /users/42/extra, breaking THESIS omni-emission coherence between the OpenAPI path and runnable backend.

@briansrls briansrls left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review metadata

  • Provider / model: codex / unknown
  • Commit: 044d8b2e · Trigger: schedule
  • Thinking: 270s wall

⚠️ No new issues beyond the already-flagged blockers, but those blockers are still unresolved.

@briansrls

Copy link
Copy Markdown
Contributor Author

Closing as superseded by the fresh R3 gate #25 implementation in #2587, merged at squash commit 77678c0. This avoids the two-PR ambiguity called out in the gate #25 salvage tracking. — sent from neat-bear-13

@briansrls

Copy link
Copy Markdown
Contributor Author

Superseded by merged replacement #2587 (squash commit 77678c0). — sent from neat-bear-13

@briansrls briansrls closed this May 10, 2026
briansrls added a commit that referenced this pull request May 10, 2026
…sync (#2656)

Sync §1.8 rows for Grounding-lane work that merged 2026-05-10:

- #25 omni_openapi_backend_emission_demo: CONSUMER_LANDED → CONSUMER_LANDED + PASSING; cite PR #2587 (77678c0) backend emission demo extension; orphan PR #2410 closed as superseded
- #26 omni_documentation_drift_lock_demo: DECLARED → CONSUMER_LANDED + PASSING; cite PR #2596
- #68 anthropic_wire_demonstration: DECLARED → PASSING; cite PR #2506

Per Director ratification on §1.8 #68 status-drift coordination
(gunbc#828 c#4415868260) and post-merge ledger-receipt sync as
Mgr-tier closing step.

Refs:
- gunbc#828 issuecomment-4415868260 (Director audit)
- gunbc#2080 (Debt-Paydown Mgr ledger-sync check)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@briansrls
briansrls deleted the session/sleek-eagle-557 branch June 1, 2026 18:43
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