@htilabs/platform-common-models 0.54.0 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +48 -0
  2. package/dist/authz/index.cjs.map +1 -1
  3. package/dist/authz/index.d.cts +10 -8
  4. package/dist/authz/index.d.ts +10 -8
  5. package/dist/authz/index.js.map +1 -1
  6. package/dist/{index-XWSYon40.d.cts → index-Bj-s0nZy.d.cts} +1 -1
  7. package/dist/{index-Bh1zO_Vu.d.ts → index-DvAypMJV.d.ts} +1 -1
  8. package/dist/index.cjs +152 -2
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.cts +3 -3
  11. package/dist/index.d.ts +3 -3
  12. package/dist/index.js +145 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/models/index.d.cts +2 -2
  15. package/dist/models/index.d.ts +2 -2
  16. package/dist/schemas/index.d.cts +25 -25
  17. package/dist/schemas/index.d.ts +25 -25
  18. package/dist/sharing-ceiling/index.cjs +152 -2
  19. package/dist/sharing-ceiling/index.cjs.map +1 -1
  20. package/dist/sharing-ceiling/index.d.cts +214 -2
  21. package/dist/sharing-ceiling/index.d.ts +214 -2
  22. package/dist/sharing-ceiling/index.js +145 -2
  23. package/dist/sharing-ceiling/index.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/__tests__/core-function-default-bounds.test.ts +2 -2
  26. package/src/authz/functionDoor.ts +4 -4
  27. package/src/authz/resolveEffectiveFunctions.ts +6 -4
  28. package/src/sharingCeiling/__tests__/fireShareEvent.test.ts +437 -0
  29. package/src/sharingCeiling/fireShareEvent.ts +352 -0
  30. package/src/sharingCeiling/index.ts +4 -0
  31. package/src/sharingCeiling/resolve.ts +31 -5
  32. package/dist/{cvcEntry-D787utvP.d.cts → cvcEntry-BLeRivoF.d.cts} +8 -8
  33. package/dist/{cvcEntry-D787utvP.d.ts → cvcEntry-BLeRivoF.d.ts} +8 -8
@@ -52,10 +52,12 @@ export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAUL
52
52
  * `platform/lib/utils/policyResolver.js:58-72`; prototype `:625` "agency
53
53
  * cannot disable"). NEVER at Tier 1 / Tier 2 is immune to a team lift —
54
54
  * a Tier-1 ALWAYS / NEVER also ignores the agency layer
55
- * (`policyResolver.js:46-48`). NOTE (kickoff § 5 trap): today's prototype
56
- * still runs the team check for `required` (`:626-628`); "Required immune
57
- * to the team gate" is the queued prototype ship. This resolver encodes the
58
- * ruling, not the current prototype behaviour.
55
+ * (`policyResolver.js:46-48`). The prototypes now behave the same way:
56
+ * platform-prototype `authzResolve` since #492 (2026-11-03), and the
57
+ * records monolith `shareFunctionAccess` plus the LEADS app
58
+ * `resolveEffectiveAccess` since prototype #1050 (2026-11-09). Before
59
+ * those ships the prototypes still ran the team check for `required`;
60
+ * this resolver encoded the ruling first.
59
61
  * 4. The team layer is RESTRICT-ONLY (`:626-628` "teams are workflow
60
62
  * containers, never authority"; editor log lines `:1236` / `:4490` "it never
61
63
  * grants"; UDD Team object, Notion 3ec1ef14abcd814385e4c4e84e071178: "If a
@@ -434,10 +436,10 @@ declare function codebookDefaultBound(functionCode: string, roleCode: string): D
434
436
  * - a seat with no role code that resolves (the prototype fails it open).
435
437
  *
436
438
  * Required (ALWAYS after the platform and account layers) is immune to the
437
- * team (resolver rule 3), so it never gets the team sentence. The records
438
- * prototype's copy of the team check still runs for Required; platform-
439
- * prototype #492 (2026-11-03) brought `authzResolve` to the ruling, and this
440
- * follows the ruling.
439
+ * team (resolver rule 3), so it never gets the team sentence. The prototypes
440
+ * match: platform-prototype `authzResolve` since #492 (2026-11-03), and the
441
+ * records monolith `shareFunctionAccess` plus the LEADS app
442
+ * `resolveEffectiveAccess` since prototype #1050 (2026-11-09).
441
443
  *
442
444
  * WHICH LAYER REFUSED. `explainFunctionRefusal` (the resolver's own cascade)
443
445
  * answers it, over:
@@ -52,10 +52,12 @@ export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAUL
52
52
  * `platform/lib/utils/policyResolver.js:58-72`; prototype `:625` "agency
53
53
  * cannot disable"). NEVER at Tier 1 / Tier 2 is immune to a team lift —
54
54
  * a Tier-1 ALWAYS / NEVER also ignores the agency layer
55
- * (`policyResolver.js:46-48`). NOTE (kickoff § 5 trap): today's prototype
56
- * still runs the team check for `required` (`:626-628`); "Required immune
57
- * to the team gate" is the queued prototype ship. This resolver encodes the
58
- * ruling, not the current prototype behaviour.
55
+ * (`policyResolver.js:46-48`). The prototypes now behave the same way:
56
+ * platform-prototype `authzResolve` since #492 (2026-11-03), and the
57
+ * records monolith `shareFunctionAccess` plus the LEADS app
58
+ * `resolveEffectiveAccess` since prototype #1050 (2026-11-09). Before
59
+ * those ships the prototypes still ran the team check for `required`;
60
+ * this resolver encoded the ruling first.
59
61
  * 4. The team layer is RESTRICT-ONLY (`:626-628` "teams are workflow
60
62
  * containers, never authority"; editor log lines `:1236` / `:4490` "it never
61
63
  * grants"; UDD Team object, Notion 3ec1ef14abcd814385e4c4e84e071178: "If a
@@ -434,10 +436,10 @@ declare function codebookDefaultBound(functionCode: string, roleCode: string): D
434
436
  * - a seat with no role code that resolves (the prototype fails it open).
435
437
  *
436
438
  * Required (ALWAYS after the platform and account layers) is immune to the
437
- * team (resolver rule 3), so it never gets the team sentence. The records
438
- * prototype's copy of the team check still runs for Required; platform-
439
- * prototype #492 (2026-11-03) brought `authzResolve` to the ruling, and this
440
- * follows the ruling.
439
+ * team (resolver rule 3), so it never gets the team sentence. The prototypes
440
+ * match: platform-prototype `authzResolve` since #492 (2026-11-03), and the
441
+ * records monolith `shareFunctionAccess` plus the LEADS app
442
+ * `resolveEffectiveAccess` since prototype #1050 (2026-11-09).
441
443
  *
442
444
  * WHICH LAYER REFUSED. `explainFunctionRefusal` (the resolver's own cascade)
443
445
  * answers it, over: