joule-code: repair jcp_schema::Grant literals — main does not compile #43

Merged
dcharlot merged 1 commit from joule-code/repair-grant-literals into main 2026-07-22 11:28:04 -04:00
Owner

main is currently broken: joule-code fails with E0063 because jcp-schemas Grant gained budget_funds and caveats and three literals were never updated.

Structural cause: jcp-schema is path-depended on from three other cargo workspaces (sandbox, joule-code, jouledesk), none a member of jcps workspace — so cargo test --workspace inside jcp/jcp-rs is green while siblings are broken.

Surveyed all four rather than guessing: joule-code broken (2 errors), jouledesk imports but constructs no Grant literal, sandbox already repaired, jcp green.

39 joule-code suites green; all four workspaces now compile.

**main is currently broken**: `joule-code` fails with E0063 because `jcp-schema`s `Grant` gained `budget_funds` and `caveats` and three literals were never updated. Structural cause: `jcp-schema` is path-depended on from **three other cargo workspaces** (sandbox, joule-code, jouledesk), none a member of jcps workspace — so `cargo test --workspace` inside `jcp/jcp-rs` is green while siblings are broken. Surveyed all four rather than guessing: joule-code broken (2 errors), jouledesk imports but constructs no Grant literal, sandbox already repaired, jcp green. 39 joule-code suites green; all four workspaces now compile.
joule-code does not compile against main. `jcp-schema`'s Grant gained
`budget_funds` (dual ceilings) and `caveats` (§4.9), and three Grant literals in
joule-code-jcp and joule-code-conformance were never updated, so the whole
workspace fails with E0063.

This is the SAME break already repaired in sandbox-jcp, in a second workspace I
missed. The cause is structural, not incidental: `jcp-schema` is path-depended on
from at least three OTHER cargo workspaces —

    sandbox/sandbox-rs  →  ../../../../jcp/jcp-rs/crates/jcp-schema
    joule-code/…        →  ../../../../jcp/jcp-rs/crates/jcp-schema
    jouledesk/…         →  ../../../../jcp/jcp-rs/crates/jcp-schema

— and none of them is in jcp's workspace, so `cargo test --workspace` inside
jcp/jcp-rs is green while three sibling workspaces are broken. Adding a required
field to a shared schema type silently breaks every consumer outside the
workspace that CI and local verification actually build.

Surveyed all four jcp-consuming workspaces rather than guessing: joule-code was
broken (2 errors), jouledesk imports the types but constructs no Grant literal,
sandbox was already repaired, jcp itself green. Only joule-code needed the fix.

Two of the three literals took the patch mechanically; the third used FIELD
SHORTHAND (`budget_uj,` with no colon) and escaped a `budget_uj:` pattern — the
same shorthand that escaped this same class of patch twice earlier. Worth
remembering: shorthand initializers are invisible to `field:`-shaped searches.

39 joule-code suites green; all four workspaces now compile.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Transaction-Science/open-standards!43
No description provided.