Commit 4bd6faa
* wip(authz-substrate): recovered uncommitted work from a container restart
NOT REVIEWED, NOT VERIFIED. The dispatch that wrote this was killed by a
container restart before it committed, pushed or ran any gate. This commit
exists only so the work survives; the resuming dev is expected to inspect it,
not to trust it.
Contents as found on disk: 14 modified/added files across packages/core,
packages/objectql and packages/plugins/plugin-security. No gate was run
against it, no test was run, no ablation exists, and neither of the ruling's
two hard requirements (the TTL-is-the-contract note at the channel, and the
boot-time posture statement) has been checked for presence.
* test(authz-substrate): pin both arms of the posture statement, the engine seam and the lost-hint contract
Verification the recovered WIP commit did not carry. Three new test files and
one existing pin updated in a deliberate direction:
- `write-epoch.test.ts` — the seam covers the three write verbs and no read
verb, advances even when a middleware refuses the write, advances for an
object no middleware is registered for (the "seam with holes" regression),
and — the card's own acceptance criterion — a fresh engine has ZERO epoch
subscribers, so the substrate publishes nothing while there are no consumers.
- `authz-invalidation-bridge.test.ts` — a lost hint costs latency, never
correctness: a rejecting publish, a synchronously throwing publish and a
missing logger all leave the epoch already advanced and the write untouched.
Loopback suppression and the no-echo-of-remote rule are pinned too.
- `authz-cluster-bridge-plugin.test.ts` — the posture statement where it
actually happens. Loud arm: no cluster service, an in-process driver, a
remote driver with no engine seam, a failed attach, a malformed TTL. Silent
arm: the shipped default attaches nothing and says nothing above debug.
- `runtime.test.ts` — `cluster: false` now registers exactly one plugin, the
authz posture bridge, where it previously registered none. The direction is
the point: a missing bus is the loudest case the posture check has.
Plus the changeset and the `OS_AUTHZ_GRANTS_CACHE_TTL_MS` row in the canonical
environment-variable table, stated honestly as a knob no cache consumes yet.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6HFzyH98W1YaQXhJUJt6o
* fix(authz-substrate): repair three gate findings the new tests moved
- `check:objectql-double-limit`: the stub driver's `find` now applies the
caller's bound AFTER the filter, by presence. A double that silently drops
`limit` answers a different question than the engine asked.
- `check:test-source-alias`: `@objectstack/service-cluster` gains a
`vitest.config.ts` anchoring `@objectstack/core` to source. The plugin under
test resolves the posture decision through that package, and unaliased the
workspace link reads `dist/` — a stale build would run the posture tests
green against the decision function that used to ship.
- `check:query-options-erasure`: the query bags on these calls were already
typed by the engine's signatures; the `as any` casts were noise and are gone.
And the two ledger drifts the same tests moved, both repaired at the source
rather than by raising a shrink-only ratchet: `registerObject` requires an
owning package id, and the `attach` mock needed typed parameters for its call
tuple to carry the node id the assertion reads.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6HFzyH98W1YaQXhJUJt6o
* fix(docs,core): drop the dangling ADR-0127 citation from both sites
`check:adr-anchors` was red on this branch: ADR-0127 is cited by 2 files but
names no record under `docs/adr/` (records top out at 0126). A citation is a
promise the decision is readable at the other end, and an unshipped number is
also a squat — whoever writes the real ADR-0127 would retroactively falsify
both citations at once.
Takes the gate's remedy (b), "cite the number that exists": keep `#11633`,
which resolves today, and drop the ADR token. In `security/index.ts` the
phrase was `ADR-0127-shaped`, so the shape is now named outright — TTL-bounded,
invalidated over a best-effort cross-node channel — rather than pointed at.
Prose is otherwise unchanged; no behaviour changes.
Not remedy (a): `docs/adr/**` is maintainer hand-merge only.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6HFzyH98W1YaQXhJUJt6o
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent c3b771c commit 4bd6faa
21 files changed
Lines changed: 2146 additions & 17 deletions
File tree
- .changeset
- content/docs/deployment
- packages
- core/src/security
- objectql/src
- plugins/plugin-security/src
- runtime/src
- services/service-cluster
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
0 commit comments