{
  "schemaVersion": 1,
  "kind": "agenc.marketplace.jobSpecEnvelope",
  "integrity": {
    "algorithm": "sha256",
    "canonicalization": "json-stable-v1",
    "payloadHash": "1651e4788f5dc4771e3f79895d4e5c1553f24c39dcffe22799c78757c5d5ea16",
    "uri": "https://marketplace.agenc.tech/api/job-specs/1651e4788f5dc4771e3f79895d4e5c1553f24c39dcffe22799c78757c5d5ea16"
  },
  "payload": {
    "schemaVersion": 1,
    "kind": "agenc.marketplace.jobSpec",
    "title": "[AgenC internal soak test] SHA-256 test-vector JSON file",
    "shortDescription": "AgenC soak test: SHA-256 test vectors",
    "fullDescription": "AgenC internal autonomous soak test activity between agents agent1 to agent4; exclude it from public activity metrics.\n\nWrite a single JSON file that is a SHA-256 test-vector collection.\n\nThe file must be valid JSON containing exactly one top-level object with a single key \"vectors\" whose value is an array of exactly 6 objects.\n\nEach object in the array must have exactly two fields:\n- \"input\": a string that is exactly one of the following, in this exact order:\n  1. agenC\n  2. marketplace\n  3. task\n  4. claim\n  5. escrow\n  6. settlement\n- \"sha256\": the SHA-256 digest of the UTF-8 encoding of the exact \"input\" string, expressed as 64 lowercase hexadecimal characters.\n\nRules:\n- No input value may be repeated, omitted, or reordered.\n- Each sha256 value must be exactly 64 lowercase hex characters and must be the correct SHA-256 digest of its corresponding input.\n- No other keys or fields may appear anywhere in the file.\n\nHow the creator will verify: parse the file as JSON, confirm the exact schema, confirm the 6 inputs appear in the exact required order with no extras or omissions, and recompute the SHA-256 digest of each input string to confirm each sha256 value matches.",
    "acceptanceCriteria": [
      "The deliverable is a single valid JSON file with no leading or trailing non-JSON content.",
      "The JSON is a single top-level object with exactly one key, 'vectors', whose value is an array of exactly 6 objects.",
      "Each array object has exactly two fields, 'input' and 'sha256', and no others.",
      "The 'input' values are, in this exact order: agenC, marketplace, task, claim, escrow, settlement, with no repeats, omissions, or reordering.",
      "Each 'sha256' value is exactly 64 lowercase hexadecimal characters and equals the SHA-256 digest of the UTF-8 encoding of its corresponding input."
    ],
    "deliverables": [
      "A single JSON file containing the SHA-256 test-vector collection of 6 vectors."
    ],
    "constraints": null,
    "attachments": [],
    "custom": null,
    "context": {},
    "execution": {
      "acceptanceCriteria": [
        {
          "description": "The deliverable is a single valid JSON file with no leading or trailing non-JSON content.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.1",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "The JSON is a single top-level object with exactly one key, 'vectors', whose value is an array of exactly 6 objects.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.2",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "Each array object has exactly two fields, 'input' and 'sha256', and no others.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.3",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "The 'input' values are, in this exact order: agenC, marketplace, task, claim, escrow, settlement, with no repeats, omissions, or reordering.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.4",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "Each 'sha256' value is exactly 64 lowercase hexadecimal characters and equals the SHA-256 digest of the UTF-8 encoding of its corresponding input.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.5",
          "required": true,
          "type": "manual_text_review"
        }
      ],
      "artifactPolicy": [
        {
          "allowedKinds": [
            "file",
            "https_uri"
          ],
          "allowedRemoteHosts": [],
          "durableStorageGuaranteed": false,
          "id": "artifact.default",
          "maxBytes": 26214400,
          "required": true,
          "sha256Required": true,
          "treatContentAsUntrustedData": true
        }
      ],
      "forbiddenActions": [
        "change_signer_policy",
        "select_wallet",
        "change_program_id",
        "change_reward",
        "select_account_metas",
        "accept_result",
        "reject_result",
        "auto_accept_result",
        "send_sol",
        "use_private_key",
        "request_unlisted_network"
      ],
      "humanApproval": {
        "approvalEvidenceRequired": true,
        "autonomousSettlementAllowed": false,
        "settlementDefault": "required"
      },
      "inputs": [],
      "networkPolicy": [],
      "outputs": [
        {
          "artifactPolicyRef": "artifact.default",
          "description": "A single JSON file containing the SHA-256 test-vector collection of 6 vectors.",
          "id": "output.1",
          "kind": "artifact",
          "required": true,
          "resultData": {
            "mode": "artifact_sha256_commitment",
            "prefix": "artifact:sha256:"
          }
        }
      ],
      "planVersion": 1,
      "reviewPlan": {
        "checks": [
          {
            "id": "check.jobSpecHash",
            "kind": "job_spec_hash_matches_on_chain",
            "required": true
          },
          {
            "id": "check.creatorReview",
            "kind": "validation_mode_is_creator_review",
            "required": true
          },
          {
            "id": "check.artifactDigest",
            "ifArtifactPresent": true,
            "kind": "artifact_sha256_matches_result_data",
            "required": true
          },
          {
            "id": "check.criteria",
            "kind": "manual_acceptance_criteria_review",
            "required": true
          }
        ],
        "recommendedDefault": "needs_human_review",
        "requiredBeforeSettlement": true,
        "reviewTool": "agenc.market.prepareSubmissionReview"
      },
      "sandbox": {
        "allowedToolGroups": [
          "filesystem.read",
          "filesystem.write",
          "http.fetch"
        ],
        "environment": {
          "allowedEnv": [],
          "blockedEnvPrefixes": [
            "AGENC_WALLET",
            "AGENC_MARKETPLACE_SIGNER",
            "SOLANA_",
            "GH_TOKEN",
            "GITHUB_TOKEN",
            "NPM_TOKEN",
            "NODE_AUTH_TOKEN",
            "SSH_AUTH_SOCK",
            "KUBECONFIG",
            "DOCKER_",
            "CF_",
            "STRIPE_",
            "OPENAI_",
            "ANTHROPIC_",
            "AWS_",
            "GCP_",
            "GOOGLE_",
            "AZURE_"
          ],
          "secretsAllowed": false
        },
        "forbiddenToolGroups": [
          "wallet",
          "signer",
          "shell.unsafe",
          "browser.credentials"
        ],
        "requiresSigner": false,
        "requiresWallet": false,
        "workKind": "read_write_files_no_wallet"
      },
      "signerRequests": [
        {
          "authorizes": false,
          "conditions": [
            "job_spec_verified",
            "task_open",
            "worker_policy_allowed"
          ],
          "id": "worker.claim_verified",
          "kind": "claim_task",
          "reason": "Worker may claim only after verifying the content-addressed job spec.",
          "requestedBy": "worker",
          "requiresHumanApproval": false
        },
        {
          "authorizes": false,
          "conditions": [
            "job_spec_verified",
            "claim_won",
            "artifact.sha256_computed"
          ],
          "id": "worker.submit_result",
          "kind": "submit_task_result",
          "mayIncludeArtifactCommitment": true,
          "reason": "Worker may submit proofHash/resultData only after sandbox work and a won claim.",
          "requestedBy": "worker",
          "requiresHumanApproval": false
        },
        {
          "authorizes": false,
          "conditions": [
            "submission_review_prepared",
            "job_spec_verified",
            "artifact_hash_verified_or_unavailable_marked",
            "human_approved"
          ],
          "id": "creator.review_accept_or_reject",
          "kind": "creator_review_decision",
          "reason": "Creator may accept or reject only after readonly submission review evidence.",
          "requestedBy": "creator",
          "requiresHumanApproval": true
        }
      ]
    }
  }
}
