Repository navigation
Commit 5dd8c0a
committed
docs(skills): the datasources rule states default is host-reserved, connected from OS_DATABASE_URL, and refused in a stack's datasources
skills/objectstack-data/rules/datasources.md L5-6 read "Most apps need only
the `default` datasource; declare more to read/write a separate or external
database" — an invitation to the shape the stack's `datasources` collection
refuses (`defineStack`, `os validate`, publish) and AppPlugin refuses at boot.
The sentence now states the rule the spec and runtime hold: `default` is
host-reserved, the host connects it from `OS_DATABASE_URL`, a stack that
declares a datasource named `default` is refused, and a datasource is declared
under its own name only for a separate or external database.
Token ratchet paid inside the file by deleting two restatements of the field
reference: "`external` settings are required when `schemaMode !== 'managed'`"
(the schema's own superRefine refuses the omission) and "Set `autoConnect:
true` to force a live connection" (item 3 of the auto-connect list above it).
903/911 tokens before and after; 80 lines before and after.
Changeset: @objectstack/skills patch — skills/** ships through
packages/skills dist via sync-catalog.
Claude-Session: https://claude.ai/code/session_01VqGhCg9wdsBXPz54uAEWg7
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0b1179f commit 5dd8c0a
2 files changed
Lines changed: 14 additions & 5 deletions
File tree
- .changeset
- skills/objectstack-data/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
19 | | - | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments