Repository navigation
Commit 54f9e3f
fix(programs): --price 0 was dropped, and the bloq guard 404'd every real bloq
Two follow-ups to the envelope fix, both caught by running the commands rather
than reading them:
- package-create used `if (args.price)`, so a deliberate `--price 0` was omitted
from the payload and the API's `required` rule rejected the call. A FREE tier
was impossible to create, and the error pointed at a field the user had in
fact supplied. Same for --trial-days. max_members stays falsy-dropped on
purpose: its rule is `nullable|integer|min:1`, so 0 ("unlimited") must be
omitted rather than sent.
- bloqExists() called /api/v1/bloqs/{id}, which does not exist. It 404s for
every bloq, so the new dangling-reference guard refused writes for bloqs that
were perfectly real — caught on #314, which `iris bloqs get` resolves fine.
Bloqs are USER-SCOPED: /api/v1/user/{userId}/bloqs/{id}. A guard that cannot
tell "absent" from "I looked in the wrong place" is worse than no guard, so it
now fails OPEN on an unverifiable lookup (no user id, network error) and only
blocks on a definite 404.
Verified: guard accepts bloq 314, rejects 609 and 999999; `--price 0` creates.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A4EaJxjqBiMsZtgJuvgXxp1 parent 966113b commit 54f9e3f
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
72 | 77 | | |
73 | | - | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
685 | 690 | | |
686 | 691 | | |
687 | 692 | | |
688 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
689 | 698 | | |
690 | 699 | | |
691 | | - | |
| 700 | + | |
692 | 701 | | |
693 | 702 | | |
694 | 703 | | |
| |||
0 commit comments