Skip to content

Fix Quota Resets And Companion Data; Finish Muse Plugins And Alert Routing - #357

Merged
jaywedgeworth22 merged 38 commits into
mainfrom
codex/cc-205-release-ready
Nov 8, 2026
Merged

jaywedgeworth22 merged 38 commits into
mainfrom
codex/cc-205-release-ready

Conversation

@jaywedgeworth22

@jaywedgeworth22 jaywedgeworth22 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Refs CC-205

Summary

This branch corrects false quota-reset alerts and completes the companion-data, plugin, and alert-routing work.

Changes

  • Reset alarms now require a cadence-compatible scheduled rollover or convincing quota-restoration evidence; small pre-expiry deadline corrections rebaseline silently.  Regressions cover the repeated MiniMax weekly-reset case, genuine rollovers, 92% to 100% restoration, and early deadline nudges.
  • Mac, iOS companion, and widgets share quota-card selection and display logic, including MiniMax, Muse Code, Fable, and Argon handling.
  • The deterministic Muse Monitor plugin tracks standard-model sessions, burn alerts, persistence, and its optional Usage Monitor bridge.
  • Alert kinds have stable IDs and per-kind preferences, with optional Twilio SMS routing, cancellation on Forget, and no automatic retry after uncertain delivery.
  • Kimi and Z.ai quota readers are optional; the plugin and provider registries support additional typed readers.
  • Quit confirmation offers Close Window And Keep Running while preserving the menu-bar item.
  • Optional Infisical bindings use scoped service tokens with separate read and write selections; CI release automation loads its Developer ID certificate and ASC notarization key from Fleet-OPS using the CodeCaps read-only service token.

Verification

  • swift test: 1,606 tests, 10 skipped, zero failures.
  • node --test scripts/mac-release-workflow.test.mjs: 18 passed.
  • The local macOS build completed, but Developer ID signing returned errSecInternalComponent in the SSH session, so the installed app remains build 310.  The signed release workflow is the remaining delivery path.
  • No live SMS was sent.

@linear-code

linear-code Bot commented Nov 3, 2026

Copy link
Copy Markdown

CC-205

@swu-codex

swu-codex Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@kody start-review

Final reconciled head 6685568 matches all 106 changed blobs from clean native-tested source 2da7e69.  Native suite passed 1,597 tests with 10 skipped and zero failures; all 101 Node automation contracts passed.  The four prior #353 findings are fixed with evidence in their threads, and #354's automatic ZCode project-token chain is preserved alongside explicit credential selection.  Please review the final implementation, including reset corrections, widget projection, scoped Infisical bindings, and the per-kind SMS seam.

@kody-ai

This comment has been minimized.

Comment thread Sources/CodeCaps/AppDelegate.swift Resolved
@swu-codex

swu-codex Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Gitleaks identified runtime input validation at TwilioSMSClient.swift:76, with no credential literal.  Added only the exact rule/path/line/commit fingerprint for 70cd5be to .gitleaksignore; no detector rule or path-wide exclusion was added.  App source remains identical to the native-tested 2da7e69 implementation.  The failed scan is being rerun by the new head.

@swu-codex

swu-codex Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@kody start-review

Current head is 4600429.  The two Sentry findings have been fixed and resolved with evidence, including a MiniMax regression for stale weekly deadlines and flat scheduled rollover behavior.  Native macOS validation passed 1,602 Swift tests with 10 skipped and zero failures; the 142 focused reset and keep-running tests also passed.  Please review this current head for reset detection and menu-bar window handling.

Comment thread Sources/CodeCaps/MonitorModel.swift Resolved
@kody-ai

kody-ai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@jaywedgeworth22
jaywedgeworth22 force-pushed the codex/cc-205-release-ready branch 2 times, most recently from 6aacea1 to 8249bfa Compare November 8, 2026 04:49
@jaywedgeworth22
jaywedgeworth22 force-pushed the codex/cc-205-release-ready branch from 8249bfa to c541753 Compare November 8, 2026 04:49
Main's merge-timestamp build number and version docs supersede the PR's
node version planner;  the PR's release-readiness doc rewrites stay.
The meter pairing runs over primary windows (model details excluded), the
PR's refinement of the same pool #360 pairs on;  #360's candidate-level
video, scoped-pool and sub-model exclusions and its pairing rule stay.
The service-token guard answers before the reader seam runs unless the probe sets a token, so the error named the absent token instead of the reference.
The merge had kept this PR's service-token rewrite of the boot script while the test pins the universal-auth login main still ships. The rewrite is out of this PR's scope, so the file returns to main's revision and the pin passes.
The merge had kept the branch�s older keypair fixture, whose crypto import the merge dropped, and its probe never set the service token the new guard requires. Main�s synthetic-marker fixture now supersedes it, with the service-token probe re-applied on top.
The merged load_sentry_auth set its no-token reason even when a CodeCaps token in the slot had already won, and the token-wins test asserts an empty reason. The reason is now set only when the case ends without a token. Also hermetic test envs: the sentry-auth probe pins FLEET_SECRETS_BIN to its stub and extracts the reader helpers beside load_sentry_auth, and the stale installer-pin test for the deleted 0.1.0 train goes.
The merge kept this PR�s service-token variant of the ASC staging reader against main�s newer one that the Sparkle contract tests pin; main�s version supersedes.
The merge kept this PR's older service-token wording and version-planner
variants against main's newer contracts.  Take main's versions of
mac-release.yml, ios-ship.yml, build_and_run.sh and the two test files so
the mac-release and ios-ship aggregates pass again.

Main-side changes adopted here: the ASC check steps say 'the CI identity
has read access' (not 'the scoped /asc read service token'), the builder
reads VERSION_FILE from the repo root and resolves ROOT_DIR with plain
pwd, and the version planning tests cover the shared planner instead of
the retired mac-release-version.mjs helper.  The PR-side variants these
replace had no behavior main lacks beyond wording, so nothing was
carried forward.
@jaywedgeworth22

Copy link
Copy Markdown
Member Author

Conflict resolution, ZC:� the merge had kept this branch's older service-token wording and version-planner variants against main's newer contracts, and the mac-release aggregate failed subtests 26, 42 and 43 because of that.� Commit f8427d7 takes main's versions of mac-release.yml, ios-ship.yml, script/build_and_run.sh, scripts/mac-release-workflow.test.mjs and scripts/stage-asc-key.node-test.mjs (main is authoritative for the release contract).

The PR-side variants that were dropped had nothing main lacks beyond wording, with two details worth recording:� (1) the branch said "verify the scoped /asc read service token has access" in the ASC check steps — main now says "verify the CI identity has read access"; if the scoped-token framing is still wanted, it is a copy change in both workflows plus the matching test.� (2) the branch resolved ROOT_DIR with pwd -P (physical path) and did not read a root VERSION file — main uses plain pwd and reads VERSION_FILE; if a symlinked checkout ever matters, pwd -P is the one-line fix.

Both aggregates now pass locally with zero failures (mac-release 71/71, ios-ship 81/81).

@swu-gb-designer

Copy link
Copy Markdown

[GB-DESIGNER 📁CC]

UI pass on Muse plugins / alerts / Infisical (CC-205), tip f8427d7c18: nits (tip advanced since my 2026-11-06 note on e442df4595).

  • Good: Settings status lines now use Theme.success for healthy, consent, push and pull results instead of the accent color, and the read-source chip uses a neutral secondary capsule.  The two Infisical captions now get secondary 11 pt text with wrapping.
  • Still open from the earlier note, all copy only:
    • "Plugin unavailable" → "Plugin Unavailable".
    • "Two alert kinds: museCodeBurn fires when…" shows internal names to people using the app.  Suggested: "Burn Alert warns you when usage passes the threshold while a session uses a standard model."
    • "Deterministic monitoring of Muse token burn…" → "Tracks Muse token use and standard-model sessions on this Mac."
    • "Contributor Share (90 minutes)" → "(90 Minutes)", and "Local settings only" should match the picker's "Local Settings Only".
    • "Recipient (E.164)" → "Recipient Phone Number" with a +15551234567 placeholder.
    • "in this build's Keychain" (Infisical and Z.ai) → "in the Keychain on this Mac".

None of these block merge.

@jaywedgeworth22
jaywedgeworth22 merged commit 9ecc644 into main Nov 8, 2026
5 of 6 checks passed
jaywedgeworth22 added a commit that referenced this pull request Nov 8, 2026
Main took the pre-squash release sources in #357, so ten files conflicted. Took main's version of each, then re-applied this branch's unique work on top: the reset-alarm whole-multiple rule, the Kody review fixes (SMS cancellation, exact window labels, model-detail windows, caption rows) and the Antigravity dedupe. The supplementary-video widget pairing already exists in main's dualWindows, so it was not re-applied.

Co-Authored-By: Claude <noreply@anthropic.com>
swu-wise Bot added a commit that referenced this pull request Nov 8, 2026
jaywedgeworth22 added a commit that referenced this pull request Nov 8, 2026
* Fix #382 duplicate test declarations: drop one identical copy, rename three distinct stamped-reading variants

* Rename the three distinct #382 copies accurately: they are the two-window courtesyWindow variants

* Fix #382 regression: an unmoved explicit period start cannot confirm a rollover (restores the #357 contract)

* Surface smaller-window rollovers that span two or more whole missed cadences (accepted slept-through-reset intent)

* Reconcile stale atCapWindow source literal with the merged video+model-detail filter; pin the capPool fallback

* Remove duplicate isModelDetail and plan-window accessors that broke the iOS companion compile

The stored isModelDetail (captured at construction) and the fuller primaryWindows, detailWindows and hasModelDetails already exist; the leftover computed duplicates were invalid redeclarations.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: swu-wise[bot] <344778455+swu-wise[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
swu-wise Bot added a commit that referenced this pull request Nov 8, 2026
…formItem, repairing the iOS companion compile
swu-wise Bot added a commit that referenced this pull request Nov 8, 2026
…slide test scenario (#386)

* Silence the rolling-window slide: an end that advanced no more than the poll gap is the window aging, not an early or mid-window reset; the whole-cadence slept-through rollover leg stays exempt

* Correct the rolling-slide test to a genuine long-sleep gap; pin the short-gap courtesy-reissue shape as a still-alerting regression

* Require both real stamps for the poll gap and match the slide to the gap within drift tolerance, so a decisive reset late in a long sleep still alerts

* Pin that an early reset late in a long sleep (3h move in a 4h gap, quota restored) still alerts

* Restore the cadence-grouping declarations #357 dropped from buildPlatformItem, repairing the iOS companion compile

* Bind the resolved card rows and drop the vacuous duplicate cardDetailWindows, repairing the companion compile

* Repair the misplaced insertions from the previous byte patch; intended content verified against the locally built tree

---------

Co-authored-by: swu-wise[bot] <344778455+swu-wise[bot]@users.noreply.github.com>
swu-wise Bot added a commit that referenced this pull request Nov 9, 2026
… pool headline + WidgetParseTests CI coverage (#387)

* Widget: restore #369 wire-parse contract, single Argon detail, honest pool headline + WidgetParseTests CI coverage

* Drop the #357 detailReports double-append so the antigravity pool shows one "Argon limit" detail instead of two
* Exclude sub-model limits from the pool headline aggregation, mirroring the phone cardRemainingPercent semantics, so the Gemini pool reads its own 1% instead of being dragged to 0% by a spent Argon row
* Restore #369's explicit widget intake filter (admits flagged video rows, drops reading-less unknown rows and plan metadata) in place of #357's isQuota guard, which silently dropped the qa6 video contract; shared WidgetPlatformDisplay.isQuota stays untouched so phone/Mac/selectedIndices behavior is unchanged
* Repair the stale WidgetUIProbe harness (cardDetailWindows API, canonical 63/1 Gemini expectation, #360 count-only pair rule) and extend it to render the antigravity gallery through the real wire parse
* Add WidgetParseTests: the actual widget parse path compiled into CI for the first time (build-time source mirroring, no committed copies to drift), pinning the antigravity single-detail/headline, qa3 rows + video flags, qa6 cap-state, qa4 merge and companion card details

* Widget: restore #369 intake filter, single Argon detail, honest pool headline

* Keep the shared intake gate for scoped pools and detail-less model limits; admit video; match metadata ids inside JSON-shaped ids

* Pin that spent scoped pools and JSON-shaped metadata ids stay out of widget intake

---------

Co-authored-by: swu-wise[bot] <344778455+swu-wise[bot]@users.noreply.github.com>
jaywedgeworth22 pushed a commit that referenced this pull request Nov 9, 2026
Resolve conflict in scripts/ios-ship-workflow.test.mjs by keeping main's
runSentryAuth helper extraction (has_infisical_service_token + fs_get),
FLEET_SECRETS_BIN hermetic pin, and INFISICAL_TOKEN probe env from PR #357.
PR Infisical scoped service-token Mac Release changes preserved via
auto-merge of workflows and action.
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