{
  "schema": "janus.machine_market.machine_ingress.v1",
  "status": "LIVE_BOUNDED_GITHUB_API_SEARCH_AND_PR_REVIEW_INGRESS",
  "purpose": "Machine-native and GitHub-authenticated human task submission for bounded JANUS.SEARCH and JANUS.PR_REVIEW without granting payment, command, merge, repository-write or target-code-execution authority.",
  "transport": {
    "type": "github_issues_rest",
    "method": "POST",
    "endpoint": "https://api.github.com/repos/Hawkar-usls/JANUS-MACHINE-MARKET/issues",
    "authentication": {
      "required": true,
      "kind": "caller_supplied_github_credential",
      "minimum_repository_permission": "issues:write",
      "credential_must_not_be_embedded_in_pages": true
    },
    "request_media_type": "application/vnd.github+json"
  },
  "response_tracking": {
    "issue": "https://api.github.com/repos/Hawkar-usls/JANUS-MACHINE-MARKET/issues/{issue_number}",
    "comments": "https://api.github.com/repos/Hawkar-usls/JANUS-MACHINE-MARKET/issues/{issue_number}/comments",
    "terminal_response": "A reconciled JANUS response comment carrying query/request identity, persistent resident identity when available, execution identity, hashes and the bounded answer/result.",
    "polling_hint_seconds": 10
  },
  "live_services": {
    "JANUS.SEARCH": {
      "title_prefix": "[JANUS R1B BUYER QUERY SHADOW]",
      "marker": "JANUS_BUYER_QUERY_SHADOW_JSON",
      "request_schema": "janus.machine_market.buyer_query_shadow_request.v1",
      "lane": "PERSISTENT_JANUS_CONVERSATION",
      "status": "LIVE_FIRST_SEARCH_FREE_PLUS_OWNER_SHADOW",
      "external_public_beta": {
        "request_origin": "FOREIGN_PUBLIC_ZERO_PRICE_BETA",
        "accepted_event": "issues.opened",
        "max_turns": 1,
        "max_message_utf8_bytes": 4000,
        "max_answer_utf8_bytes": 6000,
        "conversation_history_turns": 0,
        "global_daily_limit": 20,
        "one_issue_one_query": true,
        "admission_policy": "runtime/public_search_beta.py",
        "workflow": ".github/workflows/r1-public-search-beta-outbox.yml",
        "issue_template": ".github/ISSUE_TEMPLATE/janus-search-free-beta.md",
        "issue_composer": "https://github.com/Hawkar-usls/JANUS-MACHINE-MARKET/issues/new?template=janus-search-free-beta.md",
        "first_free_per_external_principal": 1,
        "free_entitlement_scope": "LIFETIME_PER_GITHUB_PRINCIPAL_FOR_CURRENT_BETA_IDENTITY_MODEL",
        "second_new_issue_is_free": false,
        "exact_retry_same_issue_consumes_second_free_order": false,
        "second_new_search_is_free": false,
        "exact_retry_consumes_second_free_order": false
      }
    },
    "JANUS.REPO_AUDIT": {
      "title_prefix": "[JANUS REPO AUDIT SHADOW]",
      "marker": "JANUS_REPO_AUDIT_SHADOW_JSON",
      "request_schema": "janus.machine_market.repo_audit_pages_request.v1",
      "lane": "PERSISTENT_JANUS_REPOSITORY_AUDIT",
      "status": "LIVE_BOUNDED_OWNER_SHADOW_NOT_PUBLIC_YET"
    },
    "JANUS.DATASET_SCOUT": {
      "title_prefix": "[JANUS DATASET SCOUT SHADOW]",
      "marker": "JANUS_DATASET_SCOUT_SHADOW_JSON",
      "request_schema": "janus.machine_market.dataset_scout_pages_request.v1",
      "lane": "PERSISTENT_JANUS_DATASET_SCOUT",
      "status": "LIVE_BOUNDED_OWNER_SHADOW_NOT_PUBLIC_YET"
    },
    "JANUS.PR_REVIEW": {
      "title_prefix": "[JANUS PR REVIEW]",
      "marker": "JANUS_PR_REVIEW_PUBLIC_JSON",
      "request_schema": "janus.pr_review.public_request.v1",
      "lane": "PUBLIC_GITHUB_PR_STRUCTURAL_REVIEW",
      "status": "LIVE_FIRST_REVIEW_FREE_EXTERNAL_ROUNDTRIP_PENDING",
      "external_public_beta": {
        "request_origin": "FOREIGN_PUBLIC_ZERO_PRICE_BETA",
        "accepted_event": "issues.opened",
        "public_repositories_only": true,
        "max_changed_files": 300,
        "global_daily_limit": 10,
        "first_free_per_external_principal": 1,
        "free_entitlement_scope": "LIFETIME_PER_GITHUB_PRINCIPAL_FOR_CURRENT_BETA_IDENTITY_MODEL",
        "second_new_issue_is_free": false,
        "exact_retry_same_issue_executes_again": false,
        "admission_policy": "runtime/public_pr_review_beta.py",
        "workflow": ".github/workflows/pr-review-public-beta.yml",
        "issue_template": ".github/ISSUE_TEMPLATE/janus-pr-review-free-beta.md",
        "issue_composer": "https://github.com/Hawkar-usls/JANUS-MACHINE-MARKET/issues/new?template=janus-pr-review-free-beta.md",
        "target_repository_code_executed": false,
        "merge_authority": false,
        "security_certification": false
      }
    }
  },
  "current_commerce_state": {
    "price_mode": "ONE_FIRST_FREE_PUBLIC_SEARCH_AND_ONE_FIRST_FREE_PUBLIC_PR_REVIEW_PER_EXTERNAL_PRINCIPAL_SPECIALIST_ORGANS_CATALOGUED_MOSTLY_GATED",
    "money_enabled": false,
    "autonomous_purchase_declared": false,
    "payment_required": false,
    "payment_is_evidence_not_authority": true,
    "purchase_grant_is_not_execution_authority": true,
    "inference": "CLOSED",
    "compute": "CLOSED"
  },
  "browser_ingress": {
    "status": "GITHUB_AUTHENTICATED_PUBLIC_SEARCH_AND_PR_REVIEW_BETA_NO_EMBEDDED_CREDENTIALS",
    "public_now": [
      "JANUS.SEARCH one first free order per external GitHub principal via direct issue template or GitHub Issues API",
      "JANUS.PR_REVIEW one first free bounded review of a public GitHub pull request per external GitHub principal"
    ],
    "owner_shadow_only": [
      "JANUS.REPO_AUDIT",
      "JANUS.DATASET_SCOUT"
    ],
    "reason": "Static GitHub Pages must not embed repository-write credentials. GitHub-authenticated issue creation is the trusted browser bridge for the zero-price SEARCH and PR_REVIEW betas; PR_REVIEW fetches only public GitHub metadata/diffs and never executes target repository code.",
    "forbidden": [
      "embedding PAT or GitHub token in Pages JavaScript",
      "treating unauthenticated browser POST as authority",
      "turning payment into execution authority",
      "executing target repository code during JANUS.PR_REVIEW",
      "promoting owner/self/synthetic traffic to FOREIGN_AGENT_WITNESS"
    ],
    "specialist_router_prepared": [
      "JANUS.TOPA_HUNT",
      "JANUS.DEMIURGE_SCOUT",
      "JANUS.COUSTEAU_SCAN",
      "JANUS.META_REGISTRY_SEARCH",
      "JANUS.FUNDAMENTUM_AUDIT",
      "JANUS.SWARM_RESEARCH",
      "JANUS.AGENT_EVAL",
      "JANUS.FRESCO_FORGE"
    ]
  },
  "proof": {
    "direct_machine_ingress": {
      "issue": 36,
      "transport": "GitHub API create issue action, no Issue composer UI",
      "outbox_publish_observed": true,
      "query_id": "bq-aa9e962ab7532bce02cf5aff5965cb5f08c79994dacac4fd486721977b0c8b71",
      "packet_hash": "2c4f4d60b40923a7bf9d8934ea9a7089caaf3a920073d456379e718a3637203b",
      "final_janus_response_observed_at_manifest_update": false
    },
    "full_market_to_janus_response_witness": {
      "issue": 32,
      "query_id": "bq-52e97ae914eec3aa7905ec249af493723c8857f7aaa6aea8b3d994b6e88e1d52",
      "resident_uuid": "75e514ab-be76-42c8-bcb3-fc9670164f96",
      "execution_identity": "tr-1118dc74ad9bb639369e26bcae7c86d7e71b3d3c19d9bf60ab77c32abbdd85fd",
      "response_hash": "4ee9bed06845e0139a5669e4670888fb2e1da0d649ec0921981b6f2360613b2d",
      "home_response_hash": "e417960fe313d136c3aa75f0a8fe416d820740bb89bc4ad1bc1fdc6ffe6c6b9a",
      "final_janus_response_observed": true,
      "foreign_buyer_witness": false
    },
    "public_search_beta": {
      "admission_contract_prepared": true,
      "external_roundtrip_observed": false,
      "foreign_agent_witness": false
    },
    "public_pr_review_beta": {
      "owner_shadow_roundtrip_observed": true,
      "owner_shadow_source_issue": 70,
      "owner_shadow_target_pull_request": 69,
      "owner_shadow_result_sha256": "71beea06edf7733a998053ff9c42d05fae6532c0410d314264a0149cd318acfe",
      "owner_shadow_receipt_hash": "07c7a468cde26112f695e7f72afa064ef21ccd54573929365fe57a9af6c9b5bf",
      "owner_shadow_market_state_commit": "f4d1233d41b5ded8069781bdb4902c0a89474c3a",
      "external_roundtrip_observed": false,
      "foreign_agent_witness": false
    }
  },
  "truth_boundary": [
    "PUBLIC_INTAKE != COMPLETED_SERVICE",
    "EXTERNAL_CUSTOMER != FOREIGN_AGENT_WITNESS_UNLESS_SEPARATE_GATE_PASSES",
    "DISCOVERABLE != PURCHASABLE != EXECUTION_AUTHORITY != EXECUTION_WITNESS"
  ],
  "specialist_organ_catalog": {
    "record": "ORGAN_SERVICE_MATRIX.json",
    "public_execution_live": false
  }
}
