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 bc80d57
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
@@ -91,6 +91,7 @@ you which stack PR closes the row.**
91
91
| 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) |
92
92
| 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 |
93
93
| 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) |
94
+
| 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) |
94
95
95
96
**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.
96
97
@@ -2168,7 +2169,7 @@ itself customer-keys-only so the report is an error there.
2168
2169
### Status
2169
2170
2170
2171
**RESOLVED 2026-11-17.** Pull writes
2171
-
`resources/<org>/.vapi-credential-providers.json` and warns when two
2172
+
`state/<org>/credential-providers.json` and warns when two
2172
2173
credentials collide on one name. `validate` has the
2173
2174
`credential-pin-hides-key` rule, an error in an org whose
2174
2175
`.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,18 +6,20 @@ 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
12
13
## What happens if a file goes missing
13
14
14
15
-**`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.
15
16
-**`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.
17
+
-**`credential-providers.json`**: `validate` can't check `credentialIds` lists and says so. The next pull writes the file again.
16
18
-**`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.
17
19
18
20
## What is yours to edit
19
21
20
-
Everything under `resources/<org>/`, including `resources/<org>/.vapi-ignore`, is hand-written and yours. This folder is the engine's.
22
+
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.
21
23
22
24
## Repositories created before this folder existed
0 commit comments