Repository navigation
fix(describe): a module the caller can change part of is partial, not read-only - #55
Closed
ahmad-ajmal wants to merge 2 commits into
Closed
ahmad-ajmal wants to merge 2 commits into
ahmad-ajmal wants to merge 2 commits into
Conversation
… read-only The root called a module read-only for any caller with less than everything in it, so one that could write every record was told it could not. `full` is now everything, `read-only` nothing that changes anything, and `partial` what lies between; a module with only operations is judged the same way, and PocketBase no longer says full to everyone. The CLI reads a word it does not know as some access. An older one prints "no access" for `partial`, so it is released no later than the adapters.
This was referenced Dec 1, 2026
Closed
Collaborator
Author
|
Replaced by #61, which has this same code. The branch is kept. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
describe's root said
read-onlyfor any caller that had less than everything in a module. A caller that could write every record, but run no operation, was told "read-only for you", and its writes worked. Three agents doing real bridge tasks (#56) were confused by it.Now
accessfullpartial(new)read-onlynoneThe same rule also fixes the opposite mistake: a module with only operations was
fullwhen the caller could run any one of them, even a read-only one. And PocketBase saidfullto every caller.Why a new value. With the three there were, every choice is untrue for such a caller.
fullpromises calls the app refuses, which class A already forbids.read-onlyhides calls that work. An extra field next toread-onlywould leave the wrong word in front of agents on MCP and HTTP, which read the JSON.What it costs older clients
partial(tried: it still walks the module and writes). So release the CLI before, or with, the adapters.noneas reachable, so they are unaffected. A validator using the old describe schema would reject the value.Changed: the reference, all five native adapters, the CLI's root screen, the SDK type, the describe schema (0.2 only), the connect skill.
Tested
.testfiles are left out, on request; with them, 3 of 7 new cases inadapter-corefailed on the old code and passed on this.conformance/starter/run.mjshas 6 new checks. Run against real apps in both auth modes: React-Node, Python, Go, Rust and Rails 38/38. PocketBase passes the 6. Its other 12 failures are the same 12 as on main, run side by side (Host on/, dataVersion, guard codes and the like); main fails 4 of the 6 as well.conformance/multi-user/run.mjs: 77/77 on all six.pnpm -r build,typecheck,test.Cut from
main. Merge it before #58, which contains it.