Commit 2d6ddad
docs(model-apps): write down the actual Dataverse-access policy
AGENTS.md asserted "All Dataverse access is via the SDK" inside the build
paragraph, where it is true. Read as a global rule it is not: eight scripts call
`dataverseRequest()` directly, the file tree already describes
`dataverse-request.js` as an "escape hatch", and this PR's `entityPrivileges`
reader goes straight to the raw http client. So the rule as written made every
legitimate direct call look like a violation, and gave a reviewer no way to tell
a sanctioned exception from an accident.
Records the policy that was actually being followed: SDK by default for anything
the SDK models -- because it persists workspace metadata, resolves artifact
identity the same way the build does, and owns retry/pagination, so a read that
bypasses it can disagree with the write about which artifact it means -- plus the
two sanctioned hatches and what each is for. The maker SDK models the maker
surface; `WhoAmI`, `customapis` and `connectionreferences` are simply not in it.
Also states the four things a direct call must do, each of which is a bug this
plugin has actually hit: say WHY the SDK cannot serve it (so nobody
"simplifies" it back), use an absolute URL with the API prefix (the raw client
validates with `new URL` and rejects a relative path), leave `Edm.Guid` values
unquoted, and test the reader itself rather than only an injected stub -- which
is precisely how the `entityPrivileges` URL bug reached review with a green
suite.
Scopes the build paragraph's claim to the build so the two do not contradict.
Documentation only; no behaviour change. 1480 tests still pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 42626da2-b66f-4162-acaa-b1127ef23d891 parent 5efd1be commit 2d6ddad
1 file changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
682 | 683 | | |
683 | 684 | | |
684 | 685 | | |
685 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
686 | 722 | | |
687 | 723 | | |
688 | 724 | | |
| |||
0 commit comments