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

    Function writeTransformAttestation

    • Parameters

      • params: {
            createdByUser: string;
            evidenceLinks?: string[];
            files?: string[];
            plan?:
                | {
                    baseline: {
                        indices: Record<string, number>;
                        integrityIndex: number;
                        layers: Record<string, number>;
                        overall: number;
                        runId: string;
                        trustLabel: string;
                        value: { EconomicSignificanceIndex: number; ValueScore: number };
                    };
                    createdTs: number;
                    phases: {
                        fourC: ("Concept" | "Culture" | "Capabilities" | "Configuration")[];
                        id: string;
                        taskIds: string[];
                        title: string;
                    }[];
                    planId: string;
                    renewalCadence: "weekly"
                    | "biweekly";
                    scope: { agentId?: string; nodeId?: string; type: "AGENT" | "NODE" };
                    summary: {
                        by4C: {
                            Capabilities: number;
                            Concept: number;
                            Configuration: number;
                            Culture: number;
                        };
                        next3Tasks: string[];
                        percentDone: number;
                        topBlockers: string[];
                    };
                    target: {
                        mode: "SIGNED_EQUALIZER"
                        | "EXCELLENCE_5"
                        | "CUSTOM";
                        questionTargets: Record<string, number>;
                    };
                    tasks: {
                        createdFrom: { interventionId: string; mapVersion: number };
                        description: string;
                        effort: number;
                        evidenceCheckpoints: { kind: string; [key: string]: unknown }[];
                        evidenceRefs: {
                            artifacts: { kind: string; sha256: string }[];
                            eventHashes: string[];
                            receipts: string[];
                        };
                        fourC: "Concept"
                        | "Culture"
                        | "Capabilities"
                        | "Configuration";
                        fromLevel: number;
                        impact: {
                            indices: Record<string, number>;
                            value: Record<string, number>;
                        };
                        owners: {
                            primaryRole: "OWNER"
                            | "AUDITOR"
                            | "APPROVER"
                            | "OPERATOR"
                            | "AGENT";
                            secondaryRoles: (
                                "OWNER"
                                | "AUDITOR"
                                | "APPROVER"
                                | "OPERATOR"
                                | "AGENT"
                            )[];
                        };
                        phase: string;
                        priority: number;
                        questionIds: string[];
                        recommendedActions: string[];
                        status: "ATTESTED"
                        | "BLOCKED"
                        | "NOT_STARTED"
                        | "IN_PROGRESS"
                        | "DONE";
                        statusReason: string;
                        taskId: string;
                        title: string;
                        toLevel: number;
                    }[];
                    v: 1;
                    windowDays: number;
                }
                | null;
            role: "OWNER"
            | "AUDITOR";
            scope:
                | { agentId: string; type: "AGENT" }
                | { nodeId: string; type: "NODE" };
            statement: string;
            taskId: string;
            workspace: string;
        }

      Returns {
          attestation: {
              attestationId: string;
              createdByUser: string;
              createdTs: number;
              evidenceLinks: string[];
              hashes: { relatedFiles: { path: string; sha256: string }[] };
              role: "OWNER" | "AUDITOR";
              scope: { agentId?: string; nodeId?: string; type: "AGENT" | "NODE" };
              statement: string;
              taskId: string;
              v: 1;
          };
          path: string;
          sigPath: string;
      }