Commit dadd1ad
* refactor(spec,plugin-sharing)!: retire the exported `SharingExecutionContext` type (#7218)
The deferred deletion recorded when #7070 split the convergence in two. #6523 /
PR #7068 converged 36 contract signatures onto the full `resolveAuthzContext`
envelope (the #6206 ruling: enforcement adjudicates on the whole envelope,
never a per-site subset); PR #7140 (identity: plugin-sharing, plugin-audit) and
PR #7206 (services: plugin-approvals, plugin-reports) re-annotated the
implementations. Both halves landed with the type still exported because it is
DEFINED in `packages/spec`, whose retirement is the spec seat's to make.
Nothing declares it any more, so it goes — from `@objectstack/spec` and from
`@objectstack/plugin-sharing`, which re-exported it.
Public-surface removal on two packages, so both generated snapshots are
regenerated (`api-surface/contracts.json`, `export-origins/contracts.json`),
and the changeset carries the callout plus an ADR-0087 D3 semantic entry
(`sharing-execution-context-retired`): a published TypeScript surface with no
spec schema has no `retiredKey()` tombstone and no parse rejection, so the
ledger is the only channel that reaches an upgrader.
The pins needed the deliberate pass, not a find-and-delete. All three
`exec-context-annotation.pin.ts` files told their failure story as "the
parameter narrows back to `SharingExecutionContext`" — a type the deletion
removes, while the failure mode it named survives: the six fields can be
re-declared under any name, and the fresh-literal excess-property checks fire
only on the fields a given literal happens to spell. Each pin now keeps the
retired shape as a local, non-exported SPECIMEN and refutes every enforcement
parameter against it by type identity, so a re-narrowing is red twice over and
neither check depends on the retired export coming back.
`packages/spec/src/contracts/sharing-service.test.ts` is re-anchored the same
way, and its "twin unchanged in shape" case becomes "twin stays retired". The
narrative the retired type's doc block carried — the measured `(context as
any).posture` specimen, and why tsc cannot police narrowing at all — moves to
the module doc of `contracts/sharing-service`, which the contracts and all
three pins now point at.
No runtime behaviour changes: the type was erased at compile time and no
signature's accepted shape moved.
Claude-Session: https://claude.ai/code/session_01ArkxxyvoyPaDhHiX5KhQBi
Co-authored-by: os-zhuang <steve@objectstack.ai>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* chore(spec): regenerate ledger artifacts after merging main
The textual merge kept this branch's side of `spec-changes.json` and
`docs/protocol-upgrade-guide.md`, which predate PR #7322's
`action-global-nav-location-removed` conversion. Regenerated from the merged
registry so both that entry and this branch's `sharing-execution-context-retired`
semantic entry project into the artifacts. Generated files, never hand-merged.
Claude-Session: https://claude.ai/code/session_01ArkxxyvoyPaDhHiX5KhQBi
Co-authored-by: os-zhuang <steve@objectstack.ai>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: os-zhuang <steve@objectstack.ai>
1 parent 3d5c090 commit dadd1ad
15 files changed
Lines changed: 406 additions & 128 deletions
File tree
- .changeset
- content/docs/kernel/runtime-services
- docs
- packages
- plugins
- plugin-approvals/src
- plugin-reports/src
- plugin-sharing/src
- spec
- api-surface
- export-origins
- src
- contracts
- migrations
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
89 | | - | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
| |||
Lines changed: 62 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
| |||
45 | 57 | | |
46 | 58 | | |
47 | 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 | + | |
48 | 100 | | |
49 | 101 | | |
50 | 102 | | |
| |||
70 | 122 | | |
71 | 123 | | |
72 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
73 | 132 | | |
74 | 133 | | |
75 | 134 | | |
| |||
0 commit comments