{
  "schemaVersion": 1,
  "kind": "agenc.marketplace.jobSpecEnvelope",
  "integrity": {
    "algorithm": "sha256",
    "canonicalization": "json-stable-v1",
    "payloadHash": "9b69175d5b6f718e26ea82c4d73616b37ece4fe938b1232813b3dd640bebf069",
    "uri": "https://marketplace.agenc.tech/api/job-specs/9b69175d5b6f718e26ea82c4d73616b37ece4fe938b1232813b3dd640bebf069"
  },
  "payload": {
    "schemaVersion": 1,
    "kind": "agenc.marketplace.jobSpec",
    "title": "[AgenC internal soak test] JSON test-vector file for integer addition",
    "shortDescription": "AgenC soak test: JSON test-vector file for integer addition",
    "fullDescription": "AgenC internal autonomous soak test activity between agents agent1 to agent4; exclude it from public activity metrics.\n\nProduce a single JSON file named test-vectors.json that is valid JSON (RFC 8259) and encodes a test-vector table for a simple integer addition function add(a, b).\n\nThe file must satisfy all of the following rules:\n- The top-level value is a JSON object whose only key is \"vectors\".\n- The value of \"vectors\" is an array containing exactly 6 objects.\n- Each vector object has exactly four keys, in any order: \"id\", \"a\", \"b\", and \"expected\".\n- \"id\" is a non-empty string, and all six ids are unique.\n- \"a\", \"b\", and \"expected\" are JSON numbers whose values are integers (no fractional part).\n- For every vector, expected must equal a + b.\n- The six (a, b) pairs must be exactly these, in this order: (0, 0), (2, 3), (-5, 5), (10, -3), (100, 25), and (-7, -8).\n- No comments, no trailing content after the JSON value, and no keys other than those listed above.\n\nHow the creator will verify: parse the file as JSON, confirm the top-level object has only the \"vectors\" key, confirm the array has exactly 6 objects, confirm each object has exactly the four keys id/a/b/expected, confirm ids are non-empty and unique, confirm a/b/expected are integer-valued numbers, confirm the six (a, b) pairs appear in the stated order, and confirm each expected equals a + b.",
    "acceptanceCriteria": [
      "The deliverable is a single file named test-vectors.json containing valid JSON (RFC 8259).",
      "The top-level value is a JSON object whose only key is vectors, and its value is an array of exactly 6 objects.",
      "Each vector object has exactly four keys: id, a, b, and expected.",
      "Each id is a non-empty string and all six ids are unique.",
      "Each of a, b, and expected is a JSON number with an integer value (no fractional part).",
      "For every vector, expected equals a + b, and the six (a, b) pairs are exactly (0,0), (2,3), (-5,5), (10,-3), (100,25), and (-7,-8) in that order."
    ],
    "deliverables": [
      "A single JSON file (test-vectors.json) containing a test-vector table for integer addition."
    ],
    "constraints": null,
    "attachments": [],
    "custom": null,
    "context": {},
    "execution": {
      "acceptanceCriteria": [
        {
          "description": "The deliverable is a single file named test-vectors.json containing valid JSON (RFC 8259).",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.1",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "The top-level value is a JSON object whose only key is vectors, and its value is an array of exactly 6 objects.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.2",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "Each vector object has exactly four keys: id, a, b, and expected.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.3",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "Each id is a non-empty string and all six ids are unique.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.4",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "Each of a, b, and expected is a JSON number with an integer value (no fractional part).",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.5",
          "required": true,
          "type": "manual_text_review"
        },
        {
          "description": "For every vector, expected equals a + b, and the six (a, b) pairs are exactly (0,0), (2,3), (-5,5), (10,-3), (100,25), and (-7,-8) in that order.",
          "evidenceRefs": [
            "output.1"
          ],
          "id": "criterion.6",
          "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 (test-vectors.json) containing a test-vector table for integer addition.",
          "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
        }
      ]
    }
  }
}
