@consiliency/agent-board-schema 1.60.0 → 1.63.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.
- package/README.md +80 -0
- package/fixtures/already-applied.json +12 -0
- package/migrations/20261011000100_agent_board_session_identities.sql +1964 -0
- package/migrations/20261012000100_agent_board_sidowner.sql +209 -0
- package/migrations/20261014000100_agent_board_grant_target_role.sql +218 -0
- package/package.json +1 -1
- package/schema-manifest.json +30 -3
- package/src/tooling.test.mjs +6 -2
- package/tests/agent_board_atomic_fleet_onboarding.test.sql +13 -4
- package/tests/agent_board_consent_emission.test.sql +30 -11
- package/tests/agent_board_consent_gating.test.sql +16 -2
- package/tests/agent_board_delegate_role_class.test.sql +1 -1
- package/tests/agent_board_delegation_cap_ceiling.test.sql +26 -15
- package/tests/agent_board_delegation_enforcement.test.sql +1 -1
- package/tests/agent_board_enroll_resumption.test.sql +22 -4
- package/tests/agent_board_enroll_token_single_use.test.sql +18 -3
- package/tests/agent_board_federated_lock_order_class.test.sql +2 -2
- package/tests/agent_board_fk_lock_edges.test.sql +74 -14
- package/tests/agent_board_grant_target_role.test.sql +1118 -0
- package/tests/agent_board_invite_no_downgrade.test.sql +10 -8
- package/tests/agent_board_ledger_authority.test.sql +70 -12
- package/tests/agent_board_membership_current_row_class.test.sql +9 -1
- package/tests/agent_board_mint_fleet_agent_session.test.sql +2 -2
- package/tests/agent_board_mint_harden.test.sql +38 -27
- package/tests/agent_board_rolereset.test.sql +8 -2
- package/tests/agent_board_roomdeleg_lane_b.test.sql +6 -6
- package/tests/agent_board_rowid.test.sql +3 -1
- package/tests/agent_board_session_identity_approval_revocation.test.sql +334 -0
- package/tests/agent_board_session_identity_backfill.test.sql +82 -0
- package/tests/agent_board_session_identity_backfill_refusal.test.sql +14 -0
- package/tests/agent_board_session_identity_behavior_classes.test.sql +176 -0
- package/tests/agent_board_session_identity_class.test.sql +118 -0
- package/tests/agent_board_session_identity_fingerprint.test.sql +271 -0
- package/tests/agent_board_session_identity_labels_limits.test.sql +205 -0
- package/tests/agent_board_session_identity_lease.test.sql +235 -0
- package/tests/agent_board_session_identity_lifetime.test.sql +230 -0
- package/tests/agent_board_session_identity_limits.test.sql +208 -0
- package/tests/agent_board_session_identity_lineage.test.sql +64 -0
- package/tests/agent_board_session_identity_link.test.sql +201 -0
- package/tests/agent_board_session_identity_mint.test.sql +233 -0
- package/tests/agent_board_session_identity_panel_r1.test.sql +194 -0
- package/tests/agent_board_session_identity_panel_r2.test.sql +174 -0
- package/tests/agent_board_session_identity_protected_actions.test.sql +156 -0
- package/tests/agent_board_session_identity_revoke_closure.test.sql +131 -0
- package/tests/agent_board_sidowner_leases.test.sql +107 -0
- package/tests/agent_board_sidowner_owner_required.test.sql +97 -0
- package/tests/agent_board_sidowner_read_class.test.sql +171 -0
- package/tests/agent_board_sidowner_reads.test.sql +136 -0
- package/tests/agent_board_signer_lifecycle.test.sql +26 -4
- package/tests/agent_board_signing_challenge_pending_cap.test.sql +1 -1
- package/tests/agent_board_write_enforcement_class.test.sql +74 -15
- package/tests/catalog/function_execute_privileges.json +218 -2
- package/tests/catalog/p_metadata_parameters.json +98 -2
- package/tests/isolation/expected/grant_target_role_race.out +348 -0
- package/tests/isolation/expected/session_identity_limits.out +165 -0
- package/tests/isolation/expected/session_identity_links.out +235 -0
- package/tests/isolation/expected/session_identity_reclaim.out +253 -0
- package/tests/isolation/expected/session_identity_renew_revoke.out +115 -0
- package/tests/isolation/expected/session_identity_renew_revoke_key_gate.out +138 -0
- package/tests/isolation/expected/session_identity_tombstone_onboarding.out +247 -0
- package/tests/isolation/specs/grant_target_role_race.spec +207 -0
- package/tests/isolation/specs/session_identity_limits.spec +81 -0
- package/tests/isolation/specs/session_identity_links.spec +80 -0
- package/tests/isolation/specs/session_identity_reclaim.spec +125 -0
- package/tests/isolation/specs/session_identity_renew_revoke.spec +84 -0
- package/tests/isolation/specs/session_identity_renew_revoke_key_gate.spec +94 -0
- package/tests/isolation/specs/session_identity_tombstone_onboarding.spec +108 -0
- package/tests/seeds/20261011000100_agent_board_session_identities.sql.pre.sql +47 -0
package/README.md
CHANGED
|
@@ -17,6 +17,86 @@ and materialize it — they do not author `agent_board` DDL.
|
|
|
17
17
|
- `tests/` — the pgTAP suite + `tests/fixtures/` (adopter-base + test/operator prerequisites).
|
|
18
18
|
- `fixtures/` — plan/check history snapshots.
|
|
19
19
|
|
|
20
|
+
## SIDSCHEMA foundation (as built 2026-10-08)
|
|
21
|
+
|
|
22
|
+
SIDOWNER prepares schema package 1.62.0 with
|
|
23
|
+
`20261012000100_agent_board_sidowner.sql`: scoped normalized identity-state and
|
|
24
|
+
strict-lineage child-list reads. SQL schema version remains 8.
|
|
25
|
+
|
|
26
|
+
Schema package 1.63.0 adds `20261014000100_agent_board_grant_target_role.sql`
|
|
27
|
+
(#674): `grant_board_role` refuses a non-self grant unless the grantor is an owner
|
|
28
|
+
or admin AND strictly outranks the target's current role. SQL schema version
|
|
29
|
+
remains 8.
|
|
30
|
+
|
|
31
|
+
| Package release | SQL schema version | Forward migration |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| 1.61.1 | 8 | `20261011000100_agent_board_session_identities.sql` |
|
|
34
|
+
|
|
35
|
+
The 1.61.1 patch makes seeded migration apply transaction-safe. Each repository
|
|
36
|
+
applier uses one transaction per migration with ON_ERROR_STOP=1; pre-migration
|
|
37
|
+
seed hooks remain separate. A post-backfill flush of only
|
|
38
|
+
`agent_board.session_identities_lease_alias_fkey` precedes later index/trigger/RLS
|
|
39
|
+
DDL, preserving unrelated deferred constraints even for following statements in
|
|
40
|
+
the same transaction. A catalog/event-class pin and whole-file composition
|
|
41
|
+
probe verify that scope; the ALL mutation fails the later deferred-FK assertion.
|
|
42
|
+
A git-derived executable guard enforces transactional appliers in the aggregate
|
|
43
|
+
and CI, names offending sites, and states its scanner limits in its header. The
|
|
44
|
+
failed 1.61.0 production apply rolled back; 1.61.0 was never deployed or published.
|
|
45
|
+
This patch changes apply-ability, not runtime behavior.
|
|
46
|
+
|
|
47
|
+
The bundle now contains durable session identities/aliases, immutable lineage,
|
|
48
|
+
one-live-holder leases with epoch fencing, depth-two bounded delegation,
|
|
49
|
+
shrink-only continuity, fingerprint approval/freeze, total family revocation and
|
|
50
|
+
fresh-principal owner readmission. Existing principals are backfilled as legacy,
|
|
51
|
+
with actual parent/root/depth and no implicit lease or approval. Excessive or
|
|
52
|
+
cyclic pre-existing lineage refuses instead of being flattened. Backfill also
|
|
53
|
+
refuses a stored-root/computed-root mismatch, reporting the offending ids.
|
|
54
|
+
|
|
55
|
+
Explicit freeze gates apply to both legacy mint paths and all ancestors without
|
|
56
|
+
requiring implicit approval for never-frozen legacy principals. Approval requires
|
|
57
|
+
exactly resolved readings; human-owner writers enforce the locked permanent
|
|
58
|
+
revocation ledger. Unclaimed supersede revokes only its target; ordinary revoke
|
|
59
|
+
still closes descendants/forks; public fleet/admin/subtree revocation rejects
|
|
60
|
+
the reserved supersede reason. Both human-owner and ancestor approval enforce
|
|
61
|
+
the locked permanent ledger. Tombstone refusal takes precedence over freeze.
|
|
62
|
+
Platform-admin revoke requires a resolved actor only for a family containing a
|
|
63
|
+
session identity; legacy service scripts without `sub` and Portal admins without
|
|
64
|
+
board principals remain supported, never using the target as a fallback actor.
|
|
65
|
+
Local board labels are bounded to 200 characters. CI rechecks the actual
|
|
66
|
+
backfill stored/computed-root refusal, not only driver-local evidence.
|
|
67
|
+
|
|
68
|
+
Verified instance tombstoning takes every existing board advisory mutex in UUID
|
|
69
|
+
order before owner/instance and identity-family row locks, preserving onboarding
|
|
70
|
+
and placement's board-first ordering. The lock class has no withdrawal-state
|
|
71
|
+
exemption. A new three-permutation isolation spec races actual withdrawal and a
|
|
72
|
+
minted session descendant against onboarding's documented lock-equivalent
|
|
73
|
+
acquisitions; all pre-existing isolation specs and goldens remain unchanged.
|
|
74
|
+
Plan amendment 3 records the catalog-proven nullable/default-free omitted-FK
|
|
75
|
+
INSERT filter, with positive constructor/revoke pins and a non-NULL ledger FK
|
|
76
|
+
mutation that restores the relation pair in FKL-10.
|
|
77
|
+
|
|
78
|
+
Lease heartbeat/lapse is 60/180 seconds; an approved session grant is at most
|
|
79
|
+
seven days under tighter ancestor/policy/operator ceilings; each issued token
|
|
80
|
+
remains at most 900 seconds. Root limits are 200 active/60 hourly and depth-one
|
|
81
|
+
parent limits 20 active/10 hourly, with mixed legacy/session accounting.
|
|
82
|
+
Legacy operator mints also refuse requests above the tighter operator TTL;
|
|
83
|
+
renewals clamp to that ceiling. Root limits are unconditional, including legacy
|
|
84
|
+
operator-approved mints.
|
|
85
|
+
|
|
86
|
+
Session-form attestation RPCs are service-role-only. Current public Edge handlers
|
|
87
|
+
do not forward asserted harness/session/fingerprint fields; measured transport,
|
|
88
|
+
extended PoP, holder-secret storage and epoch-bearing JWTs remain SIDSERVER work.
|
|
89
|
+
No hosted-delegate authority is broadened and the client compatibility minimum
|
|
90
|
+
is unchanged. This is a bundle change, not a production deployment or publication.
|
|
91
|
+
|
|
92
|
+
The transactional-apply patch passes all twelve Verification commands, 181/181 fresh
|
|
93
|
+
caught mutation rows, full pgTAP 148 files/3943 assertions and isolation 60 specs
|
|
94
|
+
at ITER=10. Canonical comparison preserves the accepted Session identities text.
|
|
95
|
+
|
|
96
|
+
See the [as-built client contract](../../specs/agent-client-contract.md#sidschema-as-built--2026-10-08),
|
|
97
|
+
[exact catalog RPC matrix](../../specs/rpc-contracts.md#sidschema-as-built--2026-10-08),
|
|
98
|
+
and [schema evidence closeout](../../plans/evidence/sid/schema-closeout.md).
|
|
99
|
+
|
|
20
100
|
## Adopter CLI (the only supported path)
|
|
21
101
|
|
|
22
102
|
```bash
|
|
@@ -632,6 +632,18 @@
|
|
|
632
632
|
{
|
|
633
633
|
"id": "20261010000100_agent_board_own_post_not_delivered",
|
|
634
634
|
"sha256": "6cbbe0bb9ccf7ab65402a58de145ee21bc2158ddc7502671ea13a98415ca6421"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"id": "20261011000100_agent_board_session_identities",
|
|
638
|
+
"sha256": "0f429d2b7c2a361741fb00019a173c82024a59362ea2d3a70cb11ab594b1d055"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"id": "20261012000100_agent_board_sidowner",
|
|
642
|
+
"sha256": "e18fb5a7ce0b00e9cccf12a60cbad49d820612c2c50f65c648d4105c80fbc921"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"id": "20261014000100_agent_board_grant_target_role",
|
|
646
|
+
"sha256": "4a6c00546a1d2837f88eece1de082cc76eec1f85cce8cf9ac7998e42bf32a5c5"
|
|
635
647
|
}
|
|
636
648
|
]
|
|
637
649
|
}
|