Skip to content

feat(prd-287): the model alert opens Auto's chat, and Auto's key card is native (US-407) - #78

Merged
AutomatosAI merged 5 commits into
mainfrom
feat/prd287-model-key-card
Dec 4, 2026
Merged

AutomatosAI merged 5 commits into
mainfrom
feat/prd287-model-key-card

Conversation

@AutomatosAI

Copy link
Copy Markdown
Owner

Draft, for two reasons.

  1. A decision for the owner before this merges. This change lets an owner or admin type a model provider's key into the app. That may draw App Store questions under guideline 3.1.1, and the release documents said the app "offers no purchases, subscriptions, credits or keys". The four release documents now say what the app does (below); whether the Terms wording and the store answers should change is the owner's call.
  2. It goes with feat(prd-287): models in one place, Waves 3 to 5: the popup, Settings → Models, the limit, Auto (US-301 to US-505) automatos-ai#1736, which is not merged. One route this app calls, POST /api/models/agents/move, is marked as pending in the route pin until then.

What and why

PRD-287 US-407 (the PRD is in the platform repo): the phone side of "Models in one place".

  • The alert and its link. A needs_answer alert with link_type model_key or model and a provider's slug as link_id opens Auto's chat, the way the chat link type does. It is sent to owners and admins when a model key that worked is refused, or a model in use is retired. An unknown link type or a bad slug still opens the notifications inbox, as before.
  • The key card. Auto's reply can carry a model_key@1 part. The app draws it as a native card in every style: the provider's name, one line of context, a secure field for the key, an address field where the provider needs one, and Save.
    • Only an owner or admin is shown the field. Everyone else is told who can add the key.
    • The key lives in the card's own state and nowhere else: not in a message, a store, storage, a log or an analytics event. It is cleared when the save answers.
    • After a key that passed, the card says what it changed: Auto's new model if Auto moved, and the agents that still cannot run, with one button, "Move them too". Nothing moves without the press.
    • A key the provider refused keeps the form. A key that was saved but could not be checked says so. A refusal by the server shows the server's sentence when it is a plain one.

Release documents

docs/release/privacy-labels.json (the source), app-store-privacy.md, play-data-safety.md and privacy-facts.md now say the same thing: a key typed into the card is sent once to the person's own Automatos server over the app's normal connection, is not stored on the phone and is not logged. No data type, "collected" or "linked" value changed.

After the platform change merges

Re-sync the route pin (scripts/sync-core.ts) and remove the pending mark on POST /api/models/agents/move; check:routes asks for it.

How it was verified

  • Nothing was run locally: no type check, tests, lint or build. CI on this pull request is the first run.
  • One code review before the push; its confirmed points are the last two commits.
  • Not seen on a device.

Known limits

  • The card is drawn from the saved reply, so it appears once the reply is saved, not while it streams.
  • An older reply still offers the form after its key was saved: the app has no read that says a provider already has a working key.

AI assistance

Assisted: Claude Code wrote the code, tests, docs and this description, from the PRD and the platform's contract.

Signed-off-by: Gerard Kavanagh <gerard@automatos.app>
Signed-off-by: Gerard Kavanagh <gerard@automatos.app>
…ey (US-407)

Signed-off-by: Gerard Kavanagh <gerard@automatos.app>
…es and what a provider needs (US-407)

Signed-off-by: Gerard Kavanagh <gerard@automatos.app>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d8a01ad4-83ad-4ec9-a9e4-84bb34ff5e70
Commits

Reviewing files that changed from the base of the PR and between d32ca3e and 97ca95d.

Files selected for processing: 41

  • CLAUDE.md
  • docs/architecture.md
  • docs/proactive-auto.md
  • docs/push.md
  • docs/release/app-store-privacy.md
  • docs/release/play-data-safety.md
  • docs/release/privacy-facts.md
  • docs/release/privacy-labels.json
  • src/auth/__tests__/role.test.ts
  • src/auth/role.ts
  • src/chat/cards/ThreadCards.tsx
  • src/chat/cards/view.ts
  • src/chat/schemas.ts
  • src/chat/view-model.ts
  • src/model-keys/HudKeyCard.tsx
  • src/model-keys/KeyCard.tsx
  • src/model-keys/__tests__/api.test.ts
  • src/model-keys/__tests__/card.test.ts
  • src/model-keys/__tests__/fixtures.ts
  • src/model-keys/__tests__/schema.test.ts
  • src/model-keys/answers.ts
  • src/model-keys/api.ts
  • src/model-keys/card-state.ts
  • src/model-keys/config.ts
  • src/model-keys/key-shape.ts
  • src/model-keys/routes.ts
  • src/model-keys/rows.ts
  • src/model-keys/schema.ts
  • src/model-keys/strings.ts
  • src/model-keys/use-key-card.ts
  • src/model-keys/view.ts
  • src/observability/paths.ts
  • src/push/__tests__/model-links.test.ts
  • src/push/config.ts
  • src/push/inbound/receive.ts
  • src/push/inbound/tap-log.ts
  • src/push/links/stale.ts
  • src/push/links/targets.ts
  • src/push/schemas/payload.ts
  • src/push/strings.ts
  • src/styles/homes/HudHome.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…does every route table's (US-407)

Signed-off-by: Gerard Kavanagh <gerard@automatos.app>
@AutomatosAI
AutomatosAI marked this pull request as ready for review December 4, 2026 13:50
@AutomatosAI
AutomatosAI merged commit 4d6cff7 into main Dec 4, 2026
4 checks passed
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