You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f4ed1bd
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(validate): keep the credential providers record in state/<org>/
The record is written by pull, so it belongs with the rest of the engine's
files. The hand-written .vapi-policy.yml stays in resources/<org>/.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: improvements.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,7 @@ you which stack PR closes the row.**
110
110
| 37 | Resource validation ran only at deploy time, after merge | A config `apply` refuses could merge and block deploys and promotion |#32| RESOLVED 2026-10-03 (#76) |
111
111
| 38 | Promotion can't carry a simulation that uses a stock personality by UUID | Gated orgs, and any promoted tests, need local personality files | None | Open |
112
112
| 39 | Engine state looked like temp files and sat in three places | Deleting the state file makes the next push duplicate every resource | None | RESOLVED 2026-11-17 (#97) |
113
+
| 40 | Nothing checked a `credentialIds` list against the keys an org has saved | A list that hides the org's own key runs the call on Vapi's key, silently | None | RESOLVED 2026-11-17 (#96) |
113
114
114
115
**Active backlog after cleanup:**`#2`, `#6`, `#8`, `#12`, `#20`, `#24–#26`, `#31`, and the open remainder of `#27` (wiring the listing-completeness verdict into push/delete/audit, and moving `cleanup.ts` onto the shared pager). Resolved entries stay in this file as historical incident notes per the maintenance directive; stale superseded backlog rows are not duplicated.
115
116
@@ -2247,7 +2248,7 @@ itself customer-keys-only so the report is an error there.
2247
2248
### Status
2248
2249
2249
2250
**RESOLVED 2026-11-17.** Pull writes
2250
-
`resources/<org>/.vapi-credential-providers.json` and warns when two
2251
+
`state/<org>/credential-providers.json` and warns when two
2251
2252
credentials collide on one name. `validate` has the
2252
2253
`credential-pin-hides-key` rule, an error in an org whose
2253
2254
`.vapi-policy.yml` sets `customerKeysOnly: true`. The promotion plan warns
Copy file name to clipboardExpand all lines: state/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ The engine writes everything in this folder. Don't edit or delete these files by
6
6
| --- | --- | --- |
7
7
|`state/<org>/state.json`| Which Vapi resource (UUID) each file under `resources/<org>/` is. | Yes |
8
8
|`state/<org>/org.json`| The Vapi org that `resources/<org>/` belongs to. A command run with another org's key stops before it reads or changes anything. | Yes |
9
+
|`state/<org>/credential-providers.json`| The provider of each saved credential, by name, with no secret. The [credential-pin check](../docs/guides/credential-pins.md) reads it. | Yes |
9
10
|`state/<org>/local/baselines/`| The last version of each resource this machine saw on the platform, used to notice dashboard edits. | No |
10
11
|`state/<org>/local/snapshots/`| A copy of each resource taken before a push, for `npm run rollback`. | No |
11
12
|`state/commit-step.json`| Only in a repository whose own pipeline commits state in a way the engine can't read. It is that repository's word, given with `npm run migrate -- --commit-step-stages-state`, that the pipeline stages this folder. | Yes |
@@ -14,12 +15,13 @@ The engine writes everything in this folder. Don't edit or delete these files by
14
15
15
16
-**`state.json`**: the engine no longer knows which resources already exist, so the next push creates every one of them again as a duplicate. Restore the file from git (`git checkout -- state/<org>/state.json`). Never rebuild it by hand.
16
17
-**`org.json`**: the next command pins the folder again to whichever org its key belongs to, so the protection against a wrong key is gone until then. Restore it from git.
18
+
-**`credential-providers.json`**: `validate` can't check `credentialIds` lists and says so. The next pull writes the file again.
17
19
-**`commit-step.json`**: nothing is lost. A CI run under that pipeline stops before it changes anything and says how to put the file back.
18
20
-**`local/`**: nothing breaks. The next pull records new baselines. Snapshots taken so far are gone, so there is nothing to roll back to until the next push.
19
21
20
22
## What is yours to edit
21
23
22
-
Everything under `resources/<org>/`, including `resources/<org>/.vapi-ignore`, is hand-written and yours. This folder is the engine's.
24
+
Everything under `resources/<org>/`, including `resources/<org>/.vapi-ignore` and `resources/<org>/.vapi-policy.yml`, is hand-written and yours. This folder is the engine's.
23
25
24
26
## Repositories created before this folder existed
0 commit comments