joule-code: repair jcp_schema::Grant literals — main does not compile #43
Loading…
Reference in a new issue
No description provided.
Delete branch "joule-code/repair-grant-literals"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
main is currently broken:
joule-codefails with E0063 becausejcp-schemasGrantgainedbudget_fundsandcaveatsand three literals were never updated.Structural cause:
jcp-schemais path-depended on from three other cargo workspaces (sandbox, joule-code, jouledesk), none a member of jcps workspace — socargo test --workspaceinsidejcp/jcp-rsis 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]>