Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
98ad8ea
feat(breg): replay stewardship, proposal parties and facility roles
jeremi Dec 3, 2026
1bf4a99
feat(breg): preflight archived reader and applicant replay
jeremi Dec 3, 2026
8fdc70b
feat(casework): mark unread Proposal messages in the review inbox
jeremi Dec 3, 2026
10817e5
fix(breg): name Record types in authoring diagnostic codes
jeremi Dec 3, 2026
aa51867
test(breg): verify TLS attachment staging cancellation
jeremi Dec 3, 2026
10f67a4
fix(breg): enforce reference target authority on direct writes
jeremi Dec 3, 2026
e904510
test(breg): cover reference reasons in direct and ingestion Batch
jeremi Dec 3, 2026
c62909d
fix(breg): enforce bare reference grant field selection
jeremi Dec 3, 2026
04c2cb6
fix(breg): account for the Reference grant in the client inventory
jeremi Dec 3, 2026
45f2e9a
fix(breg): remove duplicate provenance schema default
jeremi Dec 3, 2026
b728ed3
fix(breg): wire proposal message types into history erasure tests
jeremi Dec 3, 2026
05f0cdd
fix(breg): gate sealed project unit test on runtime
jeremi Dec 3, 2026
6790774
test(review): format the form-want compatibility case
jeremi Dec 3, 2026
5eec64c
chore(breg): format lifecycle artifact imports
jeremi Dec 3, 2026
527aeec
fix(identifiers): refresh Draft B catalog and authoring schemas
jeremi Dec 3, 2026
e2eb621
fix(casework): refresh the TypeScript review context contract
jeremi Dec 3, 2026
d869077
fix(breg): refresh Proposal event and explain artifacts
jeremi Dec 3, 2026
d621d8a
docs(breg): align Proposal event reference with the native schema
jeremi Dec 3, 2026
06bbee0
fix(breg): sync native Node Proposal declarations
jeremi Dec 3, 2026
2cd49b3
fix(casework): synchronize the unified Node client facade
jeremi Dec 3, 2026
fe0d1d7
test(breg): expect the claim-based Action Create refusal
jeremi Dec 3, 2026
57f91fb
test(breg): pin revisions for Proposal Problem schemas
jeremi Dec 3, 2026
2decc45
test(breg): cover compatible ask wants while advancing the feed
jeremi Dec 3, 2026
5e18306
fix(breg): stabilize review form citation constraint names
jeremi Dec 3, 2026
702709b
chore(identifiers): refresh the BReg Action contract source digest
jeremi Dec 3, 2026
b104ce7
docs(breg): clarify authority to set Record references
jeremi Dec 3, 2026
1b6466d
fix(breg): scope membership refusal metrics to BReg
jeremi Dec 3, 2026
0a1e2c5
test(breg): cover subject metadata for Proposal readers
jeremi Dec 3, 2026
25f0b9e
fix(breg): restore rehearsal of predecessor reference declarations
jeremi Dec 3, 2026
0248050
fix(breg): enforce Proposal subject-field write validation
jeremi Dec 3, 2026
27bf735
fix(metrics): satisfy pinned rustfmt
jeremi Dec 3, 2026
72be8e4
test(docs): pin the messaged Proposal lifecycle transition
jeremi Dec 3, 2026
3e3f6e8
docs: align refusal label counts with recorder declarations
jeremi Dec 3, 2026
fdc9772
test(adapter): expect only shared refusal labels
jeremi Dec 3, 2026
a316cc3
docs: align BReg refusal counts and release history
jeremi Dec 3, 2026
143cb22
fix(breg): create development package artifacts privately
jeremi Dec 3, 2026
eed451e
chore(breg): refresh ODRL examples for current project revisions
jeremi Dec 3, 2026
34d0c88
fix(breg): refresh canonical facility Proposal contracts
jeremi Dec 3, 2026
04793df
fix(breg): refresh canonical Minimal and journey contracts
jeremi Dec 3, 2026
c2d99dd
docs(breg): clarify Proposal Submit subject-field checks
jeremi Dec 3, 2026
497dac1
chore(identifiers): bind the generated BReg journey schema
jeremi Dec 3, 2026
be2376c
fix(breg): sync example TypeScript clients with canonical OpenAPI
jeremi Dec 3, 2026
325ad23
fix(breg): sync the required-attachment OpenAPI example
jeremi Dec 3, 2026
207ceac
fix(typescript): encode live audit keys for text secret providers
jeremi Dec 3, 2026
7729497
fix(breg): refresh Evidence source export provenance
jeremi Dec 3, 2026
e597206
fix(breg): admit additive Action response members
jeremi Dec 2, 2026
4bf1aa4
fix(breg): admit Proposal callers before reporting request faults
jeremi Dec 3, 2026
05eefb3
fix(breg): admit native reads before refusing retired paging
jeremi Dec 3, 2026
6c1da8e
fix(review): project applicant Form responses across SDKs
jeremi Dec 3, 2026
ccc8341
test(casework): pin applicant Form response postconditions
jeremi Dec 3, 2026
a0f6860
fix(casework): enforce applicant Form response postconditions
jeremi Dec 3, 2026
3cb7c25
test(review): reject misplaced Form selectors in ask fixtures
jeremi Dec 3, 2026
48c1280
feat(breg): carry explicit access reasons through Batch and ingestion
jeremi Dec 3, 2026
c8a59b5
chore: regenerate the CLI catalog and Node client facades
jeremi Dec 3, 2026
043d1d2
test(breg): pin effective request and selected metadata contracts
jeremi Dec 3, 2026
e07dd69
fix(breg): publish effective request and selected metadata contracts
jeremi Dec 3, 2026
b08acf8
fix(breg): consume canonical List and Patch contracts in TypeScript
jeremi Dec 3, 2026
e41aa37
test(breg): exercise optional as-of OpenAPI input in TypeScript
jeremi Dec 3, 2026
cc4ce9b
test(breg): preserve the unlocated refusal for mis-cased filter
jeremi Dec 3, 2026
7d5b6a6
test(breg): cover additive Batch and ingestion replies across SDKs
jeremi Dec 3, 2026
16114ac
fix(breg): read additive flat Batch results and bare ingestion receipts
jeremi Dec 3, 2026
226dd87
test(breg): read a reason-aware bare receipt through the SDK
jeremi Dec 3, 2026
e2b398d
test(breg): distinguish Review policy selectors from task pins
jeremi Dec 3, 2026
77e7bf9
fix(breg): publish the current Review response policy schema
jeremi Dec 3, 2026
7176e65
fix(breg): tolerate additive Proposal and Review replies
jeremi Dec 3, 2026
821ee32
test(breg): pin canonical query problem locations
jeremi Dec 3, 2026
808f122
fix(breg): retire legacy paging names from problem locations
jeremi Dec 3, 2026
9abf220
test(breg): format the query catalogue assertions
jeremi Dec 3, 2026
fc7909c
docs: describe additive SDK responses and Problem handling
jeremi Dec 3, 2026
f440365
docs(breg): align the SDK Problem capability table
jeremi Dec 3, 2026
1e4722e
docs: document exact Discovery and Review compatibility
jeremi Dec 3, 2026
01154f6
test(breg): inventory synthetic Proposal Problem identifiers
jeremi Dec 3, 2026
2dd3416
docs(breg): list the native development-peer error kind
jeremi Dec 3, 2026
b0129f6
docs(breg): specify omitted Review context status members
jeremi Dec 3, 2026
fd0ee45
chore(breg): regenerate reviewed schemas and client surfaces
jeremi Dec 3, 2026
6442a45
test(breg): pin Python Proposal message error kind
jeremi Dec 3, 2026
b872cf0
fix(breg): classify unexpected Python Proposal replies as protocol er…
jeremi Dec 3, 2026
fb652d0
chore(breg): refresh the Action contract identifier digest
jeremi Dec 3, 2026
9b491fb
docs: clarify the Discovery server compatibility line
jeremi Dec 3, 2026
090afb0
test(breg): cover unknown Python Proposal message outcome
jeremi Dec 3, 2026
782f066
fix(breg): mark unexpected Python Proposal message outcome unknown
jeremi Dec 3, 2026
e61c4bf
test(typescript): enforce generated Contact Patch input
jeremi Dec 3, 2026
d503cac
test(breg): align temporal metadata with first-page requirement
jeremi Dec 3, 2026
775da57
test(breg): pin effective workspace Patch capabilities
jeremi Dec 3, 2026
ce9b887
test(adapter): add current turn to Proposal read fixtures
jeremi Dec 3, 2026
2705d7a
test(coordinator): align Proposal Start mocks with HTTP 201
jeremi Dec 3, 2026
4ed011b
test(breg): use a neutral additive Review want member
jeremi Dec 3, 2026
0d95c39
test(breg): pin revisions for effective PATCH schemas
jeremi Dec 3, 2026
bd0c71f
chore(breg): refresh Facility explain revisions
jeremi Dec 3, 2026
4adf923
chore(breg): refresh the Minimal ODRL coverage revision
jeremi Dec 3, 2026
5220329
fix(breg-mcp): include current Proposal turn in mock reads
jeremi Dec 3, 2026
2e00e43
chore(breg): refresh Evidence source export provenance
jeremi Dec 3, 2026
91d9526
fix(breg-review): include current Proposal turn in mock reads
jeremi Dec 3, 2026
b2c65bc
fix(reference): bound browser authorization header checks
jeremi Dec 3, 2026
37794bb
fix(casework): use the SDK response budget for paired BReg reads
jeremi Dec 3, 2026
bc6dcd6
test(casework): guard the paired BReg response budget
jeremi Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ jobs:
# of this feature set.
- name: Base Registry Engine schema-gated tests
if: matrix.lane == 'contracts'
run: cargo test --locked -p registry-breg --features runtime,tooling,schema --lib --test action_evidence_compiler --test proposal_hooks --test value_type_consistency
run: cargo test --locked -p registry-breg --features runtime,tooling,schema --lib --test action_evidence_compiler --test proposal_additional_forms --test proposal_hooks --test value_type_consistency

- name: BReg client contract consistency
if: matrix.lane == 'contracts'
Expand Down
43 changes: 40 additions & 3 deletions clients/typescript/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,16 @@ const bregPatchValue = new RegExp(
'u',
)

const bregPatchOperationValue = new RegExp(
'^/paths/~1v1~1records~1' + record +
'(?:~1\\{record_id\\}/patch/requestBody/content/application~1json-patch\\+json/schema/items' +
'|(?::batch|~1ingestion-runs~1\\{run_id\\}~1chunks)/post/requestBody/content/application~1json/schema' +
'/properties/items/items/oneOf/[01]/properties/patch/items)' +
'/oneOf/[0-3]/properties/value$',
'u',
)
const bregAsOfRoute = new RegExp('^/v1/records/' + record + ':as-of$', 'u')

const isJson = (media: string) => /(?:\/json|\+json)(?:;|$)/u.test(media)
const members = (value: Node | undefined): [string, any][] => Object.entries(value ?? {})
const identifier = (value: string) => value.replace(/[^a-zA-Z0-9_]/gu, '_')
Expand Down Expand Up @@ -287,6 +297,22 @@ export function generate(source: string, settings: Settings = {}): string {
lookup(target)
return target
}
function allowsBregPatchValue(pointer: string): boolean {
if (bregPatchValue.test(pointer)) return true
if (!bregPatchOperationValue.test(pointer)) return false
const branchPointer = pointer.slice(0, -'/properties/value'.length)
const batchEnd = branchPointer.indexOf('/properties/patch/items/')
if (batchEnd !== -1) {
const item = lookup(branchPointer.slice(0, batchEnd))
if (item.properties?.operation?.const !== 'patch'
|| !Array.isArray(item.required) || !item.required.includes('operation')) return false
}
const branch = lookup(branchPointer)
const operation = branch.properties?.op?.const
return (operation === 'add' || operation === 'replace' || operation === 'test')
&& branch.properties?.path?.type === 'string'
&& Array.isArray(branch.required) && ['op', 'path', 'value'].every(name => branch.required.includes(name))
}
function audit(schema: Node | boolean, pointer: string): void {
if (rules.has(pointer)) return
if (schema === false) { rules.set(pointer, false); return }
Expand All @@ -300,7 +326,7 @@ export function generate(source: string, settings: Settings = {}): string {
}
}
if (!keys.some(key => keywords.has(key))) {
if (!allowed.has(pointer) && !(breg && bregPatchValue.test(pointer))) {
if (!allowed.has(pointer) && !(breg && allowsBregPatchValue(pointer))) {
fail(pointer, 'unconstrained schema is outside the reviewed allowlist')
}
used.add(pointer)
Expand Down Expand Up @@ -613,10 +639,14 @@ export function generate(source: string, settings: Settings = {}): string {
parameterMap.set(value.in + ':' + value.name, { value, pointer: at })
})
}
const exclusiveAsOf = breg && method === 'get' && bregAsOfRoute.test(path)
&& parameterMap.has('query:asOf') && parameterMap.has('query:cursor')
const args: Node = {}
let requiredOptions = false
for (const [location, group] of [['path', 'path'], ['query', 'query'], ['header', 'headers']] as const) {
const fields: string[] = []
const continuationFields: string[] = []
const asOfQuery = exclusiveAsOf && location === 'query'
let required = false
for (const { value, pointer: at } of parameterMap.values()) {
if (value.in !== location) continue
Expand All @@ -629,12 +659,19 @@ export function generate(source: string, settings: Settings = {}): string {
}
const declaredType = describe(value.schema, child(at, 'schema'))
const profileType = breg && value.name === 'accessProfile' && profiles?.length ? profile : undefined
const requiredParameter = value.required === true && !(location === 'query' && value.name === 'accessProfile')
fields.push(quote(value.name) + (requiredParameter ? '' : '?') + ': ' + (profileType ?? declaredType))
const field = quote(value.name)
const type = profileType ?? declaredType
const requiredParameter = (asOfQuery && value.name === 'asOf') ||
(value.required === true && !(location === 'query' && value.name === 'accessProfile'))
fields.push(asOfQuery && value.name === 'cursor' ? field + '?: never'
: field + (requiredParameter ? '' : '?') + ': ' + type)
if (asOfQuery) continuationFields.push(value.name === 'cursor' ? field + ': ' + type
: field + '?: ' + (value.name === 'accessProfile' ? type : 'never'))
required ||= requiredParameter
}
if (fields.length) {
args[group] = '{ ' + fields.join('; ') + ' }'
if (asOfQuery) args[group] += ' | { ' + continuationFields.join('; ') + ' }'
inputs.push('{ ' + group + (required ? '' : '?') + ': ' + args[group] + ' }')
requiredOptions ||= required
}
Expand Down
88 changes: 46 additions & 42 deletions clients/typescript/generated/breg-facility.ts

Large diffs are not rendered by default.

42 changes: 22 additions & 20 deletions clients/typescript/generated/breg-minimal.ts

Large diffs are not rendered by default.

Loading
Loading