Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function createHandoffPacket

    • Parameters

      • workspace: string
      • params: {
            artifactPaths?: string[];
            constraints?: string[];
            contextHash?: string;
            currentState?: string;
            delegationScope?: string[];
            dependencyStatuses?: {
                dependencyId: string;
                evidenceRefs: string[];
                ownerAgentId: string | null;
                refusalReason: string | null;
                required: boolean;
                status: "satisfied" | "blocked" | "refused" | "pending";
            }[];
            evidenceSnapshot?: string[];
            fromAgentId: string;
            goal: string;
            knownUnknowns?: string[];
            nextAction?: string;
            ownershipTransfer?: Partial<
                {
                    evidenceRefs: string[];
                    fromOwnerAgentId: string;
                    refusalReason: string
                    | null;
                    scope: string[];
                    status: "accepted" | "refused" | "offered";
                    toOwnerAgentId: string;
                    transferReceiptId: string | null;
                },
            >;
            refusalReasons?: (
                Omit<
                    {
                        agentId: string;
                        evidenceRefs: string[];
                        reason: string;
                        refusedAt: string;
                    },
                    "refusedAt",
                > & { refusedAt?: string }
            )[];
            stopConditions?: string[];
            toAgentId: string;
            trustState?: { confidence: number; integrityIndex: number; level: number };
            ttlMs?: number;
        }

      Returns {
          artifactPaths: string[];
          constraints: string[];
          contextHash: string;
          createdTs: number;
          currentState: string;
          delegationScope: string[];
          dependencyStatuses: {
              dependencyId: string;
              evidenceRefs: string[];
              ownerAgentId: string | null;
              refusalReason: string | null;
              required: boolean;
              status: "satisfied" | "blocked" | "refused" | "pending";
          }[];
          evidenceSnapshot: string[];
          expiryTs: number;
          fromAgentId: string;
          goal: string;
          knownUnknowns: string[];
          nextAction: string;
          ownershipTransfer: | {
              evidenceRefs: string[];
              fromOwnerAgentId: string;
              refusalReason: string
              | null;
              scope: string[];
              status: "accepted" | "refused" | "offered";
              toOwnerAgentId: string;
              transferReceiptId: string | null;
          }
          | null;
          packetId: string;
          refusalReasons: {
              agentId: string;
              evidenceRefs: string[];
              reason: string;
              refusedAt: string;
          }[];
          senderReceipt: | {
              agentId: string;
              createdTs: number;
              packetId: string;
              payloadHash: string;
              receiptId: string;
              role: "sender";
              signature: string;
          }
          | null;
          signature: string;
          stopConditions: string[];
          toAgentId: string;
          trustState: | { confidence: number; integrityIndex: number; level: number }
          | null;
      }