Repository navigation
feat(contract): charging.goal_at_risk in the push catalogue - #82
Conversation
FTW Cloud (srcfl/ftw ADR 0008) needs names shared by the box, this app and the phone app: - scope ftw.events.read, for the events behind notifications; - cloud_scopes and cloud_purposes, which bound what an owner can let the box share with FTW Cloud, and what for; - capability cloud.link and carrier state cloud; - push kinds cloud.granted and cloud.revoked, sent to every owner when the grant changes. contract.ts, the push kinds and the carrier type follow, so the registry tests still read both directions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The box seeds cloud.granted and cloud.revoked on, unlike its other rules, so the simulated box does too and the notification test counts eight switches with those two on. A changeset names the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FTW Cloud C4 (srcfl/ftw claude/cloud-c4-core) raises it once per plug-in when the box knows the car's level and the plan cannot reach the goal by the ready time. The catalogue, the toggles and the simulated box gain the kind; it is opt-in like the other charging kinds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ftw-webapp | 1b8d529 | Commit Preview URL Branch Preview URL |
Oct 13 2026, 06:16 AM |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b8d5294b5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "ftw-webapp": patch | ||
| --- | ||
|
|
||
| Know the two FTW Cloud notices, "FTW Cloud is on" and "FTW Cloud is off". A box that sends them shows two more notification switches, on by default, and an older box shows none. The shared contract also names the FTW Cloud scope, capability and carrier state the box and the iPhone app use. |
There was a problem hiding this comment.
Document the new charging notice in the changeset
When Changesets publishes this commit, the generated release notes will describe only the FTW Cloud additions and omit the headline charging.goal_at_risk notification and toggle. Add that user-visible behavior to this changeset or provide a separate changeset so consumers can tell that the new charging warning shipped.
Useful? React with 👍 / 👎.
Adds
charging.goal_at_riskto the push catalogue, the source of the copy in srcfl/ftw. FTW Cloud C4 raises it once per plug-in when the box knows the car's level and the plan cannot reach the goal by the ready time:The toggles list and the simulated box's rule types gain the kind. It is opt-in like the other charging kinds. Stacked on #81 (
claude/cloud-c2-registry), which adds the FTW Cloud names.Contract-pair: srcfl/ftw@claude/cloud-c4-core
Paired pull requests
Contract-pair)Tests
🤖 Generated with Claude Code