Fill missing device API error copy and guard every emitted key
Co-Authored-By: Codex GPT-6-Astra <noreply@openai.com>
9 files changed,
+692
−13
docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md+18 −0internal/equipo/api_copy_test.go+53 −0internal/equipo/copy.go+18 −0internal/plan3test/plan3_release_test.go+2 −1native/API-COPY-REVIEW.md+129 −0native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings+220 −0native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings+220 −0native/scripts/check-parity.py+1 −1native/scripts/strings.json+31 −11
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md| index 4c43d360..6d34c5d6 100644 |
| --- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| @@ -6821,6 +6821,24 @@ records remain unchanged. |
| | `projects.name_to_remember` | Name to remember | (project card names, 2026-11-23; Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| | `projects.use_title` | Use the repository title for this project | (project card names, 2026-11-23; Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| | `projects.carried_selection` | Equipo's note for the preceding request only: the person selected project %s. | (project card names review fixes, 2026-11-23; Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.repo_not_allowed` | Your runner can't reach this project's repository. Make sure the repository is available, then try again. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.card_answered` | This card has already been answered. Check the conversation for what happened. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.card_stale` | This item has changed. Check it before trying again. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.confirmation_required` | Confirm the spending limit and check both budget amounts before continuing. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.coordinator_busy` | Your coordinator is working. Wait for its reply, then try again. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.hold_bar` | This work is on hold because of a spending limit or unconfirmed spend. Check the hold, then raise the limit or check provider spend before resuming. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.idempotency_conflict` | The latest details are different. Refresh, check them, then try again. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.models_not_allowed` | Choose at least one model that this connection can use. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.not_active` | This specialist is no longer active. No action is needed. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.not_askable` | This work no longer has a session you can ask about. Ask in the main conversation. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.not_mergeable` | This task cannot be merged now. Check its latest status. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.not_retryable` | This work cannot be retried now. Check its latest status. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.question_ended` | This question has ended. Check the result in the task. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.runner_offline` | Your runner is offline. Reconnect it, then try again. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.task_busy` | This task is still working. Wait for it to finish, then try again. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.task_ended` | This task has ended. Check its result. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.task_merging` | This task is merging. Wait for it to finish. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| +| `api.turn_ended` | This reply has ended. | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| ## Task 21 |
diff --git a/internal/equipo/api_copy_test.go b/internal/equipo/api_copy_test.go| new file mode 100644 |
| index 00000000..f9363c9e |
| --- /dev/null |
| +++ b/internal/equipo/api_copy_test.go |
| @@ -0,0 +1,53 @@ |
| +package equipo |
| + |
| +import ( |
| + "os" |
| + "path/filepath" |
| + "regexp" |
| + "strings" |
| + "testing" |
| +) |
| + |
| +func TestAPIErrorCopyKeys(t *testing.T) { |
| + keys := map[string]bool{} |
| + patterns := []*regexp.Regexp{ |
| + regexp.MustCompile(`WriteError\([^\n]*?,\s*"([a-z_]+)"`), |
| + regexp.MustCompile(`code(?:, status)?\s*:?=\s*"([a-z_]+)"`), |
| + } |
| + for _, dir := range []string{"chat", "personapi"} { |
| + files, err := filepath.Glob(dir + "/*.go") |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + for _, file := range files { |
| + if strings.HasSuffix(file, "_test.go") { |
| + continue |
| + } |
| + raw, err := os.ReadFile(file) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if !strings.Contains(string(raw), "WriteError(") && !strings.Contains(string(raw), "CopyKey:") { |
| + continue |
| + } |
| + for _, pattern := range patterns { |
| + for _, match := range pattern.FindAllStringSubmatch(string(raw), -1) { |
| + key := "api." + match[1] |
| + if match[1] == "subscription_expired" { |
| + key = "notifications.subscription_expired" |
| + } |
| + keys[key] = true |
| + } |
| + } |
| + } |
| + } |
| + // Scoped errors in personapi.errorCopyKey, and literal card conflicts. |
| + for _, key := range []string{"notifications.cursor_expired", "api.card_stale", "api.card_answered", "roster.invalid_input", "roster.forbidden", "roster.revision_conflict", "budgets.invalid_input", "budgets.forbidden", "budgets.revision_conflict"} { |
| + keys[key] = true |
| + } |
| + for key := range keys { |
| + if copyText(key) == "" || copyText(key) == key { |
| + t.Errorf("API returns copy_key %s without text", key) |
| + } |
| + } |
| +} |
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go| index 3ebbddc3..62262d86 100644 |
| --- a/internal/equipo/copy.go |
| +++ b/internal/equipo/copy.go |
| @@ -70,6 +70,24 @@ const BootLog = "Equipo could not start." |
| // COPY APPROVED BY DELEGATION (Luna pass, 2026-11-01, house rules). |
| var pageCopy = map[string]string{ |
| + "api.repo_not_allowed": "Your runner can't reach this project's repository. Make sure the repository is available, then try again.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.card_answered": "This card has already been answered. Check the conversation for what happened.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.card_stale": "This item has changed. Check it before trying again.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.confirmation_required": "Confirm the spending limit and check both budget amounts before continuing.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.coordinator_busy": "Your coordinator is working. Wait for its reply, then try again.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.hold_bar": "This work is on hold because of a spending limit or unconfirmed spend. Check the hold, then raise the limit or check provider spend before resuming.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.idempotency_conflict": "The latest details are different. Refresh, check them, then try again.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.models_not_allowed": "Choose at least one model that this connection can use.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.not_active": "This specialist is no longer active. No action is needed.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.not_askable": "This work no longer has a session you can ask about. Ask in the main conversation.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.not_mergeable": "This task cannot be merged now. Check its latest status.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.not_retryable": "This work cannot be retried now. Check its latest status.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.question_ended": "This question has ended. Check the result in the task.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.runner_offline": "Your runner is offline. Reconnect it, then try again.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.task_busy": "This task is still working. Wait for it to finish, then try again.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.task_ended": "This task has ended. Check its result.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.task_merging": "This task is merging. Wait for it to finish.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + "api.turn_ended": "This reply has ended.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| "projects.amadan": "Amadan", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-22) |
| "projects.yours": "Your projects", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-22) |
| "projects.can_add": "Available to add", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-22) |
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go| index f9eb8a7c..87a77880 100644 |
| --- a/internal/plan3test/plan3_release_test.go |
| +++ b/internal/plan3test/plan3_release_test.go |
| @@ -194,11 +194,12 @@ func plan3CopyInventory(t *testing.T) { |
| acceptedPush := slices.Contains([]string{"copyLoggedPushPublic", "copyCarlosPushUnavailable", "copyPushBoth", "push.card.title", "push.card.body", "push.reply.title", "push.task.done", "push.task.cancelled", "push.task.failed", "push.activity.started", "docs/api/equipo-v1.md / Talk to your Coordinator from a device: set aside", "docs/api/equipo-v1.md / Receive pushes on a device"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-20)") |
| // Paul, 2026-11-20: Luna's verdicts are the agent-access copy review. |
| // Paul, 2026-11-22: Luna verdicts and the controller clarification are this slice's review. |
| + acceptedAPIErrors := slices.Contains([]string{"api.repo_not_allowed", "api.card_answered", "api.card_stale", "api.confirmation_required", "api.coordinator_busy", "api.hold_bar", "api.idempotency_conflict", "api.models_not_allowed", "api.not_active", "api.not_askable", "api.not_mergeable", "api.not_retryable", "api.question_ended", "api.runner_offline", "api.task_busy", "api.task_ended", "api.task_merging", "api.turn_ended"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)") |
| acceptedCardNames := slices.Contains([]string{"projects.carried_selection", "projects.remember_name", "projects.name_to_remember", "projects.use_title", "docs/api/equipo-v1.md / Projects and starting a request"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)") |
| acceptedProjects := slices.Contains([]string{"projects.amadan", "projects.yours", "projects.can_add", "projects.add_reachable", "projects.names", "projects.names_hint", "projects.details", "projects.title", "projects.description", "projects.save", "projects.context", "projects.found", "projects.selected", "projects.owner_add", "projects.selection_lost", "projects.other", "projects.name_question", "projects.personal_names", "projects.forget_name", "docs/api/equipo-v1.md / Projects and starting a request"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-22)") |
| acceptedAgentAccess := slices.Contains([]string{"copyAgentConfig", "copyAgentForbidden", "copyAgentNotFound", "copyAgentUnavailable", "copyAgentTooLarge", "copyAgentInvalid", "copyAgentMedia", "copyAgentUnauthenticated", "agent.equipo_projects_list", "agent.equipo_tasks_list", "agent.equipo_task_get", "agent.equipo_needs_you", "docs/api/equipo-v1.md / Delegated read-only operations"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-20)") |
| acceptedCopy := strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Copy, record-bound) sha256:"+copydesk.Hash(rows[key]) |
| - if !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies { |
| + if !acceptedAPIErrors && !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies { |
| t.Fatal("entry has no copy review status or applicable acceptance", key) |
| } |
| } |
diff --git a/native/API-COPY-REVIEW.md b/native/API-COPY-REVIEW.md| new file mode 100644 |
| index 00000000..d1a79870 |
| --- /dev/null |
| +++ b/native/API-COPY-REVIEW.md |
| @@ -0,0 +1,129 @@ |
| +# API error copy review, 2026-11-23 |
| + |
| +The Projects device API exposed `api.repo_not_allowed` without text. The new |
| +source guard then found 17 further HTTP error keys without text. Paul delegated |
| +these reviews to Luna; the controller supplied the verdicts below and directed |
| +their exact application. All 18 keys were marked pending with copy-status.py |
| +before recording Luna's markers and the accepted inventory entries. Native |
| +imports the same strings and checks parity. |
| + |
| +The first scan also found `provider_error` in Assistant tool output. It is not |
| +an HTTP copy key. The guard scans error-producing paths and has no exceptions |
| +for missing copy. It also covers scoped notification, roster and budget errors. |
| + |
| +Validation: TestAPIErrorCopyKeys failed on the omissions first. Removing |
| +api.repo_not_allowed and introducing a new HTTP error without text each made |
| +the guard fail; both mutations were restored. The affected Go package, release |
| +copy inventory, vet, staticcheck, formatting and module checks pass. A broader |
| +onboarding acceptance test fails with provider_uncertain on this branch and |
| +unchanged main 198ce406; it is unrelated to copy. |
| + |
| + |
| +## Luna brief 9 |
| + |
| +# Copy review brief: Equipo error string (2026-11-23) |
| + |
| +Paul delegates copy review to you; your edits will be applied as approved copy. |
| +Context: Equipo's apps and web show this error when a person sends a request |
| +with a project selected, but the project's repository is not reachable by their |
| +runner (it's not in the runner's current allowlist; for example access was |
| +removed or the repository is offline). The message stays visible with a Retry |
| +action. A different, already-approved notice covers a project removed while a |
| +request is in progress. |
| + |
| +## String (id fixed, text yours) |
| +- `api.repo_not_allowed`: Draft: `Equipo can't reach this project.` |
| + |
| +## House rules (Paul's, binding) |
| +No em dashes, no exclamation marks. Plain words, short, sentence case. Say what |
| +happened and what to do. Don't change facts; flag what looks wrong. |
| + |
| +## Output |
| +1. Table: `id | current | new (or "unchanged") | why`. |
| +2. Flagged rows. |
| +3. Counts. |
| + |
| + |
| +## Luna result 9 |
| + |
| +| id | current | new (or "unchanged") | why | |
| +|---|---|---|---| |
| +| `api.repo_not_allowed` | Equipo can't reach this project. | Your runner can't reach this project's repository. Make sure the repository is available, then try again. | Explains what happened and gives a clear next step. | |
| + |
| +Flagged rows: |
| + |
| +- `api.repo_not_allowed`: The draft does not tell the person what to do. It also refers to the project rather than its repository. |
| + |
| +Counts: 1 reviewed, 1 changed, 0 unchanged, 1 flagged. |
| + |
| + |
| +## Luna brief 10 |
| + |
| +# Copy review brief: Equipo API error messages (2026-11-23) |
| + |
| +Paul delegates copy review to you; your edits will be applied as approved copy. |
| +Equipo is Oficina's team app; a Coordinator agent works with specialists on |
| +tasks in code projects. These errors are shown to a person in the web app and |
| +the iPhone and Mac apps when an action is refused. Today they show as bare keys, |
| +so these will be the first words people see. Each row: key, draft, when it |
| +happens, and what the person can do next. |
| + |
| +- `api.card_answered`: "This card has already been answered. Check the conversation for what happened." Answering a card that's already completed. Next: read the card/conversation. |
| +- `api.card_stale`: "This item has changed. Check it before trying again." Answering an open card with an out-of-date version. Next: look at the updated card, then answer. (Same words as an existing native string.) |
| +- `api.confirmation_required`: "Confirm the spending limit and check both budget amounts before continuing." Adding a metered (paid) model key without the required confirmations. Next: complete them. (Exact existing web text.) |
| +- `api.coordinator_busy`: "Your coordinator is working. Wait for its reply, then try again." Resetting notes or moving a task while the Coordinator is mid-reply. Next: wait. |
| +- `api.hold_bar`: "This work is waiting on a spending limit or an unknown spend. Check the hold before continuing." "Run now" on work held by a budget limit or by spend that couldn't be confirmed. Next: check the hold; raise the budget or check provider spend, then Resume. |
| +- `api.idempotency_conflict`: "This request changed. Check the latest details before trying again." A repeated request with different content, or the thing changed since you loaded it. Next: refresh, check, submit again on purpose. |
| +- `api.models_not_allowed`: "Choose at least one model available to this connection." Saving a connection's models with none, or one this key can't use. Next: pick from the available list. |
| +- `api.not_active`: "This specialist is no longer active." Revoking a specialist that already stopped. Next: nothing needed. |
| +- `api.not_askable`: "This work no longer has a session you can ask about." Asking a question about work whose session isn't kept any more. Next: ask in the main conversation. |
| +- `api.not_mergeable`: "This task cannot be merged now. Check its latest status." Merging a task that isn't ready or fails a merge requirement. Next: look at the task. |
| +- `api.not_retryable`: "This work cannot be retried now. Check its latest status." Retrying when nothing failed that can be retried. Next: look at the latest status. |
| +- `api.question_ended`: "This question has ended. Check its answer in the task." Cancelling a question that already finished (it may have been answered, failed or cancelled). Next: look at the result. |
| +- `api.runner_offline`: "Your runner is offline. Reconnect it, then try again." Actions needing the person's runner (their machine that runs agents) while it's offline. Next: reconnect it. |
| +- `api.task_busy`: "This task is still working. Wait for it to finish, then try again." Changing a task while its steps or a question are still running. Next: wait. |
| +- `api.task_ended`: "This task has ended. Check its result." Changing a task that's done or cancelled. Next: look at the result; start a new request if needed. |
| +- `api.task_merging`: "This task is merging. Wait for it to finish." Changing a task while its merge is under way. Next: wait. |
| +- `api.turn_ended`: "Your coordinator has finished this reply." Stopping a reply that already ended (finished, failed or cancelled). Next: read the reply; nothing to stop. (Alternative: "This reply has ended.") |
| + |
| +## House rules (Paul's, binding) |
| +No em dashes, no exclamation marks. Plain words, short, sentence case. Say what |
| +happened and what to do. Consistent voice across the set. Don't change facts; |
| +flag what looks wrong. |
| + |
| +## Output |
| +1. Table: `id | current | new (or "unchanged") | why`. |
| +2. Flagged rows. |
| +3. Counts. |
| + |
| + |
| +## Luna result 10 |
| + |
| +| id | current | new (or "unchanged") | why | |
| +|---|---|---|---| |
| +| `api.card_answered` | “This card has already been answered. Check the conversation for what happened.” | unchanged | Clear and actionable. | |
| +| `api.card_stale` | “This item has changed. Check it before trying again.” | unchanged | Preserve exact existing native string. | |
| +| `api.confirmation_required` | “Confirm the spending limit and check both budget amounts before continuing.” | unchanged | Preserve exact existing web text. | |
| +| `api.coordinator_busy` | “Your coordinator is working. Wait for its reply, then try again.” | unchanged | Clear and direct. | |
| +| `api.hold_bar` | “This work is waiting on a spending limit or an unknown spend. Check the hold before continuing.” | “This work is on hold because of a spending limit or unconfirmed spend. Check the hold, then raise the limit or check provider spend before resuming.” | Clarifies the state and next action. | |
| +| `api.idempotency_conflict` | “This request changed. Check the latest details before trying again.” | “The latest details are different. Refresh, check them, then try again.” | Covers both changed requests and changed items. | |
| +| `api.models_not_allowed` | “Choose at least one model available to this connection.” | “Choose at least one model that this connection can use.” | More natural and specific. | |
| +| `api.not_active` | “This specialist is no longer active.” | “This specialist is no longer active. No action is needed.” | States the required next step. | |
| +| `api.not_askable` | “This work no longer has a session you can ask about.” | “This work no longer has a session you can ask about. Ask in the main conversation.” | Adds the available alternative. | |
| +| `api.not_mergeable` | “This task cannot be merged now. Check its latest status.” | unchanged | Clear and actionable. | |
| +| `api.not_retryable` | “This work cannot be retried now. Check its latest status.” | unchanged | Clear and actionable. | |
| +| `api.question_ended` | “This question has ended. Check its answer in the task.” | “This question has ended. Check the result in the task.” | The question may have failed or been cancelled, so it may not have an answer. | |
| +| `api.runner_offline` | “Your runner is offline. Reconnect it, then try again.” | unchanged | Clear and actionable. | |
| +| `api.task_busy` | “This task is still working. Wait for it to finish, then try again.” | unchanged | Clear and actionable. | |
| +| `api.task_ended` | “This task has ended. Check its result.” | unchanged | Clear and actionable. | |
| +| `api.task_merging` | “This task is merging. Wait for it to finish.” | unchanged | Clear and actionable. | |
| +| `api.turn_ended` | “Your coordinator has finished this reply.” | “This reply has ended.” | Applies to finished, failed, and cancelled replies. | |
| + |
| +Flagged rows: |
| + |
| +- `api.hold_bar`: “unknown spend” is unclear to people. I changed it to “unconfirmed spend.” |
| +- `api.idempotency_conflict`: “This request changed” is ambiguous because either the request or the underlying item may have changed. |
| +- `api.question_ended`: “Check its answer” is not always accurate because the question may have failed or been cancelled. |
| +- `api.turn_ended`: “finished” can imply success, but the reply may have failed or been cancelled. |
| + |
| +Counts: 17 rows reviewed, 7 changed, 10 unchanged, 4 flagged. |
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings| index 15fb2b7d..5ab42241 100644 |
| --- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings |
| +++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings |
| @@ -134,6 +134,226 @@ |
| } |
| } |
| }, |
| + "api.card_answered": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This card has already been answered. Check the conversation for what happened." |
| + } |
| + } |
| + } |
| + }, |
| + "api.card_stale": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This item has changed. Check it before trying again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.confirmation_required": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Confirm the spending limit and check both budget amounts before continuing." |
| + } |
| + } |
| + } |
| + }, |
| + "api.coordinator_busy": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Your coordinator is working. Wait for its reply, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.hold_bar": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This work is on hold because of a spending limit or unconfirmed spend. Check the hold, then raise the limit or check provider spend before resuming." |
| + } |
| + } |
| + } |
| + }, |
| + "api.idempotency_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "The latest details are different. Refresh, check them, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.invalid_input": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Check the request fields and try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.models_not_allowed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Choose at least one model that this connection can use." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_active": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This specialist is no longer active. No action is needed." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_askable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This work no longer has a session you can ask about. Ask in the main conversation." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_found": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This item is not available." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_mergeable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task cannot be merged now. Check its latest status." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_retryable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This work cannot be retried now. Check its latest status." |
| + } |
| + } |
| + } |
| + }, |
| + "api.question_ended": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This question has ended. Check the result in the task." |
| + } |
| + } |
| + } |
| + }, |
| + "api.repo_not_allowed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Your runner can't reach this project's repository. Make sure the repository is available, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.runner_offline": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Your runner is offline. Reconnect it, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.task_busy": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task is still working. Wait for it to finish, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.task_ended": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task has ended. Check its result." |
| + } |
| + } |
| + } |
| + }, |
| + "api.task_merging": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task is merging. Wait for it to finish." |
| + } |
| + } |
| + } |
| + }, |
| + "api.turn_ended": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This reply has ended." |
| + } |
| + } |
| + } |
| + }, |
| "app.name": { |
| "extractionState": "manual", |
| "localizations": { |
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings| index 15fb2b7d..5ab42241 100644 |
| --- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings |
| +++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings |
| @@ -134,6 +134,226 @@ |
| } |
| } |
| }, |
| + "api.card_answered": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This card has already been answered. Check the conversation for what happened." |
| + } |
| + } |
| + } |
| + }, |
| + "api.card_stale": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This item has changed. Check it before trying again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.confirmation_required": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Confirm the spending limit and check both budget amounts before continuing." |
| + } |
| + } |
| + } |
| + }, |
| + "api.coordinator_busy": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Your coordinator is working. Wait for its reply, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.hold_bar": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This work is on hold because of a spending limit or unconfirmed spend. Check the hold, then raise the limit or check provider spend before resuming." |
| + } |
| + } |
| + } |
| + }, |
| + "api.idempotency_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "The latest details are different. Refresh, check them, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.invalid_input": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Check the request fields and try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.models_not_allowed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Choose at least one model that this connection can use." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_active": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This specialist is no longer active. No action is needed." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_askable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This work no longer has a session you can ask about. Ask in the main conversation." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_found": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This item is not available." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_mergeable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task cannot be merged now. Check its latest status." |
| + } |
| + } |
| + } |
| + }, |
| + "api.not_retryable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This work cannot be retried now. Check its latest status." |
| + } |
| + } |
| + } |
| + }, |
| + "api.question_ended": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This question has ended. Check the result in the task." |
| + } |
| + } |
| + } |
| + }, |
| + "api.repo_not_allowed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Your runner can't reach this project's repository. Make sure the repository is available, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.runner_offline": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Your runner is offline. Reconnect it, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.task_busy": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task is still working. Wait for it to finish, then try again." |
| + } |
| + } |
| + } |
| + }, |
| + "api.task_ended": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task has ended. Check its result." |
| + } |
| + } |
| + } |
| + }, |
| + "api.task_merging": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task is merging. Wait for it to finish." |
| + } |
| + } |
| + } |
| + }, |
| + "api.turn_ended": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This reply has ended." |
| + } |
| + } |
| + } |
| + }, |
| "app.name": { |
| "extractionState": "manual", |
| "localizations": { |
diff --git a/native/scripts/check-parity.py b/native/scripts/check-parity.py| index 1a45bf4a..26612204 100755 |
| --- a/native/scripts/check-parity.py |
| +++ b/native/scripts/check-parity.py |
| @@ -19,7 +19,7 @@ for pattern in (r'chat\.card\.merge_chose_\w+', r'chat\.card\.ships_chose_\w+'): |
| if key not in strings: |
| problems.append(f'{key}: the web has this outcome; native has no words for it') |
| for key, text in sorted(strings.items()): |
| - if not key.startswith(('chat.card.', 'chat.paste.', 'work.tl.', 'roster.')): |
| + if not key.startswith(('chat.card.', 'chat.paste.', 'work.tl.', 'roster.', 'api.')): |
| continue |
| found = re.findall(r'"' + re.escape(key) + r'":\s*"((?:[^"\\]|\\.)*)"', copy) |
| if len(found) != 1: |
diff --git a/native/scripts/strings.json b/native/scripts/strings.json| index 64939a4f..7681a149 100644 |
| --- a/native/scripts/strings.json |
| +++ b/native/scripts/strings.json |
| @@ -11,6 +11,26 @@ |
| "account.title": "Account", |
| "account.until": "Signed in until", |
| "action.sending": "Sending…", |
| + "api.card_answered": "This card has already been answered. Check the conversation for what happened.", |
| + "api.card_stale": "This item has changed. Check it before trying again.", |
| + "api.confirmation_required": "Confirm the spending limit and check both budget amounts before continuing.", |
| + "api.coordinator_busy": "Your coordinator is working. Wait for its reply, then try again.", |
| + "api.hold_bar": "This work is on hold because of a spending limit or unconfirmed spend. Check the hold, then raise the limit or check provider spend before resuming.", |
| + "api.idempotency_conflict": "The latest details are different. Refresh, check them, then try again.", |
| + "api.invalid_input": "Check the request fields and try again.", |
| + "api.models_not_allowed": "Choose at least one model that this connection can use.", |
| + "api.not_active": "This specialist is no longer active. No action is needed.", |
| + "api.not_askable": "This work no longer has a session you can ask about. Ask in the main conversation.", |
| + "api.not_found": "This item is not available.", |
| + "api.not_mergeable": "This task cannot be merged now. Check its latest status.", |
| + "api.not_retryable": "This work cannot be retried now. Check its latest status.", |
| + "api.question_ended": "This question has ended. Check the result in the task.", |
| + "api.repo_not_allowed": "Your runner can't reach this project's repository. Make sure the repository is available, then try again.", |
| + "api.runner_offline": "Your runner is offline. Reconnect it, then try again.", |
| + "api.task_busy": "This task is still working. Wait for it to finish, then try again.", |
| + "api.task_ended": "This task has ended. Check its result.", |
| + "api.task_merging": "This task is merging. Wait for it to finish.", |
| + "api.turn_ended": "This reply has ended.", |
| "app.name": "Equipo", |
| "byline.asks": "asks", |
| "byline.reports": "reports", |
| @@ -34,6 +54,11 @@ |
| "chat.card.ships_chose_ships": "Merging to main ships to users, so I'll ask before merging without checks.", |
| "chat.card.wait": "Wait for checks", |
| "chat.card.wait_mac": "Wait for a Mac", |
| + "chat.paste.command": "Command", |
| + "chat.paste.copied": "Copied", |
| + "chat.paste.copy": "Copy", |
| + "chat.paste.prompt": "Prompt", |
| + "chat.paste.text": "Text", |
| "checks.cannot_run": "Can’t run here", |
| "checks.exit %@ %@": "%1$@, exit code %2$@", |
| "checks.failed": "Failed", |
| @@ -62,6 +87,11 @@ |
| "needs.count_spoken %lld": "%lld waiting for you", |
| "needs.empty": "Questions and decisions for you appear here.", |
| "needs.empty_title": "Nothing needs you", |
| + "oficina.connecting": "Connecting to your team", |
| + "oficina.current_team": "Current team", |
| + "oficina.device_failed": "Could not connect to this team.", |
| + "oficina.retry": "Connect again", |
| + "oficina.sign_in": "Sign in with Oficina ID", |
| "pairing.approve_lede": "Approve this device in your browser. There is no password or token to paste.", |
| "pairing.approved %@": "This device is paired with %@.", |
| "pairing.approved_title": "Paired", |
| @@ -161,15 +191,5 @@ |
| "thread.sent": "Sent", |
| "track.position %@ %@": "%1$@ of %2$@", |
| "track.spoken %@": "Stage: %@", |
| - "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration.", |
| - "oficina.device_failed": "Could not connect to this team.", |
| - "oficina.sign_in": "Sign in with Oficina ID", |
| - "oficina.retry": "Connect again", |
| - "oficina.connecting": "Connecting to your team", |
| - "oficina.current_team": "Current team", |
| - "chat.paste.copy": "Copy", |
| - "chat.paste.copied": "Copied", |
| - "chat.paste.prompt": "Prompt", |
| - "chat.paste.text": "Text", |
| - "chat.paste.command": "Command" |
| + "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration." |
| } |