Category: spec-conformance Severity: major
Location: src/Messages/Subscriptions/Unsubscribe.php:10-29
Spec: ARCP v1.1 §7.6
What
Spec §7.6 defines wire type job.unsubscribe with {job_id} payload. SDK uses unsubscribe with empty payload and an envelope-level subscription_id.
Evidence
final readonly class Unsubscribe extends MessageType
{
public static function typeName(): string
{
return 'unsubscribe';
}
public function toArray(): array
{
return [];
}
}
Proposed fix
Rename typeName to 'job.unsubscribe' and accept job_id in the payload.
Acceptance criteria
Category: spec-conformance Severity: major
Location:
src/Messages/Subscriptions/Unsubscribe.php:10-29Spec: ARCP v1.1 §7.6
What
Spec §7.6 defines wire type
job.unsubscribewith{job_id}payload. SDK usesunsubscribewith empty payload and an envelope-levelsubscription_id.Evidence
Proposed fix
Rename typeName to 'job.unsubscribe' and accept
job_idin the payload.Acceptance criteria
type: "job.unsubscribe"andpayload: {job_id: ...}.