Skip to content

Commit 7c67c6e

Browse files
authored
chore: ignore the local live-provider probes (#1007)
Seven probe scripts sat untracked in `tool/` through the whole 2.2.0 release: `live_model_compare`, `live_openai`, `live_openai_client_check`, `live_openrouter`, `live_own_server`, `live_routing_policy` and `verify_openai_key`. They take a key as a file-path argument rather than embedding one, so the exposure was never the key. The risk is a `git add -A` sweeping an ad-hoc script into a release branch, and `git status` listing seven files that are neither wanted nor ignored makes that easier, not harder. `tool/policy_snapshot.dart` is a committed tool and stays tracked; the pattern is scoped to the probes. `docs/ai-model-candidates.md` listed `tool/live_routing_policy.dart` under "In-repo files cited" as a link, which resolved to a 404 on github.com and now would not even be a file the repo could contain. It is named there instead, with a line saying why it is not committed. The two other references to these scripts are code spans in command examples, which were never links.
1 parent 33030ac commit 7c67c6e

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,14 @@ result
6666
# Exception for Gemfile.lock, which is needed for Fastlane / Bundler
6767
!**/Gemfile.lock
6868

69+
# Live provider probes — scripts that talk to a real AI provider with a real
70+
# key, kept locally and never committed. They take the key as a *file path*
71+
# argument rather than embedding one, so the risk is not the key leaking; it
72+
# is a `git add -A` sweeping an ad-hoc script into a release branch, which is
73+
# exactly what nearly happened during 2.2.0. `tool/policy_snapshot.dart` is a
74+
# committed tool and stays tracked — this ignores only the probes.
75+
tool/live_*.dart
76+
tool/verify_openai_key.dart
77+
6978
# Fastlane / Bundler — local gem install path (bundle config set path vendor/bundle)
7079
ios/vendor/

docs/ai-model-candidates.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,5 +568,8 @@ Related notes in this repo:
568568

569569
In-repo files cited:
570570
[`lib/core/utils/ai_model_catalogue.dart`](../lib/core/utils/ai_model_catalogue.dart) ·
571-
[`lib/features/add_meal/data/openrouter_meal_items_api.dart`](../lib/features/add_meal/data/openrouter_meal_items_api.dart) ·
572-
[`tool/live_routing_policy.dart`](../tool/live_routing_policy.dart)
571+
[`lib/features/add_meal/data/openrouter_meal_items_api.dart`](../lib/features/add_meal/data/openrouter_meal_items_api.dart)
572+
573+
The routing-policy check behind the table above was run with a local probe,
574+
`tool/live_routing_policy.dart`. It talks to a real provider with a real key and
575+
is deliberately not committed, so it is named here rather than linked.

0 commit comments

Comments
 (0)