Interface: ApproveSpec
Defined in: packages/core/src/application/use-cases/approve-spec.ts:26
Records a spec approval, then transitions the change to spec-approved.
Requires the spec approval gate (approvals.spec: true) to be active.
Artifact hashes are computed internally from the change's artifacts on disk,
using schema-defined pre-hash cleanup rules.
Methods
execute()
execute(
input):Promise<Change>
Defined in: packages/core/src/application/use-cases/approve-spec.ts:61
Executes the use case.
Parameters
input
Approval parameters
Returns
Promise<Change>
The updated change
Throws
If the spec approval gate is not enabled
Throws
If no change with the given name exists
Throws
If the change is not in pending-spec-approval state