{
  "schema_version": "2026-05-18.eval.v1",
  "id": "agent-onboarding-compliance",
  "name": "TokRepo Agent Onboarding Compliance Eval",
  "updated_at": "2026-05-18",
  "claim": "TokRepo bootstrap instructions preserve the mandatory discover, verify, evidence-bundle inspection, install-plan, dry-run, project lifecycle state, handoff quality gate, handoff, and private-by-default gates across every supported agent surface and in files generated by tokrepo init-agent --target all.",
  "entrypoints_under_test": [
    "starter-templates/agent-native/AGENTS.md",
    "starter-templates/agent-native/CLAUDE.md",
    "starter-templates/agent-native/GEMINI.md",
    "starter-templates/agent-native/.cursor/rules/tokrepo.mdc",
    "starter-templates/agent-native/.github/copilot-instructions.md",
    "starter-templates/agent-native/.github/instructions/tokrepo.instructions.md",
    "starter-templates/agent-native/.clinerules/tokrepo.md",
    "starter-templates/agent-native/.windsurf/rules/tokrepo.md",
    "starter-templates/agent-native/.roo/rules/tokrepo.md",
    "starter-templates/agent-native/.openhands/microagents/repo.md",
    "starter-templates/agent-native/CONVENTIONS.md",
    "starter-templates/agent-native/.mcp.json",
    "starter-templates/agent-native/.tokrepo/agent.json",
    "tokrepo init-agent --target all --json"
  ],
  "local_command": "node scripts/run_agent_onboarding_compliance.mjs --json",
  "expected_agent_behavior": [
    "Load the project-memory surface for the active runtime before planning.",
    "Call tokrepo_discover or tokrepo agent-check before writing reusable artifacts.",
    "Call tokrepo_verify and tokrepo_install_plan before any install or activation.",
    "Inspect evidence_bundle, SBOM-lite, and signature_evidence before activation.",
    "Keep lifecycle operations in dry-run until the user confirms the exact write operation.",
    "Inspect TokRepo.lock and .tokrepo/state.json with tokrepo installed --project --json before changing managed assets.",
    "Call tokrepo_handoff_plan or tokrepo agent-handoff --json after creating reusable work and inspect quality_gate before any push.",
    "Never publish automatically; push privately by default and require explicit public-publish confirmation."
  ],
  "public_success_criteria": [
    "All 11 text instruction surfaces include the mandatory discover, verify/evidence, dry-run, lifecycle state, handoff quality, and private-by-default gates.",
    ".cursor/rules/tokrepo.mdc is alwaysApply=true.",
    ".mcp.json declares tokrepo-mcp-server.",
    ".tokrepo/agent.json exposes planning_tool, trust_tool, install_plan_tool, handoff_plan_tool, lifecycle_tools, project_state_files, evidence/handoff schema links, project_installed_state CLI fallback, and policy booleans.",
    "A fresh tokrepo init-agent --target all run produces generated files with the same gates."
  ],
  "status": "implemented",
  "last_verified_by": "node scripts/run_agent_onboarding_compliance.mjs --json",
  "capability_resolution": {
    "tool": "tokrepo_resolve_capability",
    "cli": "tokrepo resolve \"<task>\" --target codex --json",
    "schema": "https://tokrepo.com/schemas/capability-resolution.schema.json"
  },
  "post_task_harvest": {
    "tool": "tokrepo_harvest",
    "cli": "tokrepo harvest --changed --json",
    "schema": "https://tokrepo.com/schemas/harvest-report.schema.json",
    "publish_policy": "private_by_default_human_confirmed"
  }
}
