42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
openapi: 3.0.3
|
|
info:
|
|
title: AIOS Branch Repair Lease Fragment
|
|
version: v1
|
|
paths:
|
|
/api/governance/branch-repair-leases:
|
|
post:
|
|
summary: Issue or operate one branch-bound repair lease
|
|
description: >-
|
|
The existing authenticated control plane transports this operation.
|
|
Git ref mutation is delegated to the protected writer handler.
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
required: [operation, owner_identity]
|
|
properties:
|
|
operation:
|
|
type: string
|
|
enum: [issue, attach_existing_branch, authorize_commit, record_commit, recover, renew, complete, revoke]
|
|
owner_identity:
|
|
type: string
|
|
lease_id:
|
|
type: string
|
|
branch:
|
|
type: string
|
|
expected_head_oid:
|
|
type: string
|
|
pattern: '^[0-9a-f]{40}$'
|
|
paths:
|
|
type: array
|
|
items: {type: string}
|
|
responses:
|
|
'200':
|
|
description: Sanitized lease metadata
|
|
'403':
|
|
description: Lease policy rejected
|
|
'409':
|
|
description: Stale or concurrently advanced branch
|