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 5ab85bc
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(blocks): keep the blocks record in state/<org>/
Push writes the record, so it belongs with the rest of the engine's files.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: improvements.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
@@ -92,6 +92,8 @@ you which stack PR closes the row.**
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
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) |
95
+
| 41 | Shared prompt text and config had no home, and pull would erase any include marker | Repeated paragraphs drift apart across assistants and orgs | None | RESOLVED 2026-11-16 (#94) |
96
+
| 42 | An org with no credentials is re-bootstrapped on every push, which disables the drift check | A dashboard edit is overwritten without a warning in such an org | None | Open |
95
97
96
98
**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.
97
99
@@ -2279,7 +2281,7 @@ prompts and `$include` in mappings, looked up in `resources/<org>/templates/`
2279
2281
then `templates/`, expanded in the loader. Pull never writes a file that uses
2280
2282
blocks and saves the dashboard version beside it instead. Push records the
2281
2283
block content each resource went up with in
2282
-
`resources/<org>/.vapi-blocks.json`; `npm run sync-blocks` and the promotion
2284
+
`state/<org>/blocks.json`; `npm run sync-blocks` and the promotion
2283
2285
plan (`sync` entries) read it to find resources a block edit has not reached.
Copy file name to clipboardExpand all lines: state/README.md
+2Lines changed: 2 additions & 0 deletions
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>/blocks.json`| The [block](../docs/guides/blocks.md) content each resource was last pushed with, so `npm run sync-blocks` and promotion can list resources that still run old block text. | Yes |
9
10
|`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 |
10
11
|`state/<org>/local/baselines/`| The last version of each resource this machine saw on the platform, used to notice dashboard edits. | No |
11
12
|`state/<org>/local/snapshots/`| A copy of each resource taken before a push, for `npm run rollback`. | No |
@@ -15,6 +16,7 @@ The engine writes everything in this folder. Don't edit or delete these files by
15
16
16
17
-**`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.
17
18
-**`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.
19
+
-**`blocks.json`**: every resource that uses a block is listed as out of date until it is pushed once. Restore it from git.
18
20
-**`credential-providers.json`**: `validate` can't check `credentialIds` lists and says so. The next pull writes the file again.
19
21
-**`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.
20
22
-**`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.
0 commit comments