J Jarvisprotocol examples v0.1.0

Protocol-only examples

Use v0.1 records to prove the collaboration loop.

These examples show protocol records only. They do not implement agent runtime behavior, adapters, wrappers, model routing, tool execution, auth provider, storage backend, UI, billing, scoring, payment, deployment, or host workflow.

Full source examples

Minimal WorkSession record flow

{
  "object_type": "WorkSession",
  "record": {
    "id": "ws-golden-001",
    "protocol_version": "v0.1",
    "created_by_actor_id": "actor-human-golden",
    "objective": "Produce an evidence-backed answer with human review and governed learning.",
    "human_worker_id": "worker-human-golden",
    "agent_worker_id": "worker-agent-golden",
    "policy_id": "policy-golden-bounded",
    "status": "completed",
    "revision": 11,
    "last_event_hash": "hash:event-worksession-completed",
    "event_log_ref": "event-log:ws-golden-001",
    "created_at": "2026-06-16T10:01:00Z",
    "updated_at": "2026-06-16T10:25:00Z",
    "source_ref": "source:golden-path-fixture",
    "context_manifest_ref": "context:task-brief",
    "contribution_ledger_ref": "ledger:ws-golden-001",
    "evidence_manifest_ref": "evidence-manifest-golden",
    "learning_record_refs": [
      "learning-golden-pair"
    ]
  }
}

PolicyDecision before AgentWorker action

{
  "object_type": "PolicyDecision",
  "record": {
    "id": "pd-golden-source-denied",
    "work_session_id": "ws-golden-001",
    "actor_id": "actor-agent-golden",
    "policy_id": "policy-golden-bounded",
    "requested_action": {
      "action": "fetch_external_source",
      "target_ref": "source:external-reference",
      "scope_ref": "scope:external-source"
    },
    "normalized_action_hash": "hash:action-fetch-external-source",
    "risk_class": "medium",
    "result": "deny",
    "reason": "Policy requires HumanWorker review before external source collection.",
    "created_at": "2026-06-16T10:04:00Z",
    "data_sensitivity": "public",
    "denied_grant_refs": [
      "grant:external-source-read"
    ],
    "request_id": "req-golden-source"
  }
}

Scoped Request and Review resolution

{
  "object_type": "Request",
  "record": {
    "id": "req-golden-source",
    "protocol_version": "v0.1",
    "work_session_id": "ws-golden-001",
    "requester_actor_id": "actor-agent-golden",
    "requester_worker_id": "worker-agent-golden",
    "target_human_worker_id": "worker-human-golden",
    "policy_decision_id": "pd-golden-source-denied",
    "type": "permission",
    "blocking_scope": "action",
    "reason_code": "policy_denied",
    "reason_summary": "External source access is outside current Policy until HumanWorker review.",
    "requested_action": {
      "action": "fetch_external_source",
      "target_ref": "source:external-reference",
      "scope_ref": "scope:external-source"
    },
    "requested_outcome": "Approve external source collection for this WorkSession only.",
    "risk_class": "medium",
    "human_decision_needed": "Approve, narrow, deny, correct, or take over the blocked action.",
    "options": [
      {
        "id": "option-approve-current-session",
        "label": "Approve current WorkSession scope",
        "effect": "AgentWorker collects the referenced source for this WorkSession only.",
        "risk_class": "medium",
        "scope_ref": "scope:external-source"
      },
      {
        "id": "option-deny",
        "label": "Deny external collection",
        "effect": "AgentWorker continues with existing evidence and records the limitation.",
        "risk_class": "low",
        "scope_ref": "scope:local-worksession"
      }
    ],
    "default_if_no_response": {
      "action": "continue_with_limited_evidence",
      "reason": "The blocked action remains stopped and the WorkSession records an evidence limitation.",
      "limitation_ref": "limitation:external-source-not-reviewed"
    },
    "status": "approved",
    "created_at": "2026-06-16T10:05:00Z",
    "expires_at": "2026-06-16T10:35:00Z",
    "missing_permission_or_context": "Policy grant for external source collection",
    "policy_refs": [
      "policy-golden-bounded"
    ],
    "data_sensitivity": "public",
    "recommended_option": "option-approve-current-session",
    "resolved_at": "2026-06-16T10:08:00Z",
    "resolved_by_review_id": "review-golden-source-approval"
  }
}
{
  "object_type": "Review",
  "record": {
    "id": "review-golden-source-approval",
    "work_session_id": "ws-golden-001",
    "reviewer_actor_id": "actor-human-golden",
    "reviewer_worker_id": "worker-human-golden",
    "target_ref": "request:req-golden-source",
    "decision": "approve",
    "created_at": "2026-06-16T10:08:00Z",
    "comments": "Approved for the referenced source and current WorkSession only.",
    "approval_scope": {
      "request_id": "req-golden-source",
      "review_id": "review-golden-source-approval",
      "policy_decision_id": "pd-golden-source-denied",
      "request_revision": 3,
      "request_event_hash": "hash:event-request-created",
      "normalized_action_hash": "hash:action-fetch-external-source",
      "approved_action": {
        "action": "fetch_external_source",
        "target_ref": "source:external-reference",
        "scope_ref": "scope:external-source"
      },
      "allowed_scope": {
        "scope_ref": "scope:external-source",
        "grant_refs": [
          "grant:review-approved-external-source"
        ]
      },
      "denied_scope": {
        "scope_ref": "scope:all-other-external-sources"
      },
      "expires_at": "2026-06-16T10:35:00Z",
      "max_uses": 1,
      "applies_to_work_session_id": "ws-golden-001",
      "applies_to_actor_id": "actor-agent-golden"
    }
  }
}

Takeover and reconciliation

{
  "object_type": "Takeover",
  "record": {
    "id": "takeover-final-submission",
    "work_session_id": "ws-takeover-001",
    "requested_by_actor_id": "actor-agent-takeover",
    "controlling_actor_id": "actor-human-takeover",
    "request_id": "req-takeover-final",
    "affected_scope": {
      "blocking_scope": "final_submission",
      "scope_ref": "scope:final-output",
      "normalized_action_hash": "hash:action-final-submission",
      "artifact_refs": [
        "artifact:final-draft"
      ]
    },
    "reason": "HumanWorker completed direct control and returned reconciliation refs.",
    "lock_epoch": 2,
    "state": "resumed",
    "created_at": "2026-06-17T10:12:00Z",
    "resumed_by_actor_id": "actor-human-takeover",
    "reconciliation_notes": "HumanWorker edited final claim and approved AgentWorker continuation inside reconciled scope.",
    "reconciliation_refs": [
      "artifact:final-draft-human-edited",
      "event:event-takeover-resumed"
    ],
    "resolved_at": "2026-06-17T10:12:00Z"
  }
}

Contribution and EvidenceManifest export

{
  "object_type": "Contribution",
  "record": {
    "id": "contribution-golden-shared-answer",
    "work_session_id": "ws-golden-001",
    "contributor_type": "shared",
    "contributor_refs": [
      {
        "worker_id": "worker-human-golden",
        "actor_id": "actor-human-golden",
        "contribution_role": "human"
      },
      {
        "worker_id": "worker-agent-golden",
        "actor_id": "actor-agent-golden",
        "contribution_role": "agent"
      }
    ],
    "contribution_type": "artifact",
    "event_refs": [
      "event-evidence-captured",
      "event-contribution-recorded"
    ],
    "created_at": "2026-06-16T10:16:00Z",
    "artifact_refs": [
      "artifact:reviewed-answer"
    ],
    "review_refs": [
      "review-golden-source-approval"
    ],
    "evidence_refs": [
      "evidence-source-summary"
    ],
    "confidence": 0.92,
    "limitations": [
      "limitation:none-recorded"
    ]
  }
}
{
  "evidence_manifest": {
    "id": "evidence-manifest-golden",
    "work_session_id": "ws-golden-001",
    "generated_by_actor_id": "actor-human-golden",
    "objective": "Produce an evidence-backed answer with human review and governed learning.",
    "event_chain_root": "hash:event-worksession-completed",
    "evidence_item_refs": [
      {
        "id": "evidence-source-summary",
        "work_session_id": "ws-golden-001",
        "source_event_refs": [
          "event-evidence-captured"
        ],
        "captured_by_actor_id": "actor-agent-golden",
        "evidence_type": "source_summary",
        "artifact_ref": "artifact:source-summary",
        "content_hash": "hash:source-summary",
        "trust_label": "reviewed",
        "redaction_state": "redacted",
        "captured_at": "2026-06-16T10:12:00Z",
        "limitation_refs": [
          "limitation:none-recorded"
        ]
      }
    ],
    "policy_decision_refs": [
      "pd-golden-source-denied",
      "pd-golden-source-approved"
    ],
    "request_refs": [
      "req-golden-source"
    ],
    "review_refs": [
      "review-golden-source-approval"
    ],
    "takeover_refs": [],
    "contribution_refs": [
      "contribution-golden-shared-answer"
    ],
    "export_profile": {
      "profile": "portable_evidence_manifest",
      "version": "v0.1",
      "redaction_profile_ref": "redaction:portable-safe"
    },
    "generated_at": "2026-06-16T10:26:00Z",
    "artifact_refs": [
      "artifact:reviewed-answer",
      "artifact:source-summary"
    ],
    "limitation_refs": [
      "limitation:none-recorded"
    ],
    "redaction_refs": [
      "redaction:portable-safe"
    ]
  }
}

OutcomeReport to LearningRecord

{
  "object_type": "OutcomeReport",
  "record": {
    "id": "outcome-report-golden",
    "work_session_id": "ws-golden-001",
    "source_ref": "source:completed-worksession:ws-golden-001",
    "reporter_ref": "reporter:fixture-evaluator",
    "accepted_by_actor_id": "actor-human-golden",
    "outcome": "accepted",
    "learning_record_refs": [
      "learning-golden-pair"
    ],
    "received_at": "2026-06-16T10:30:00Z",
    "external_system_ref": "external:evaluation-system",
    "reporter_actor_id": "actor-human-golden",
    "reason": "Post-session feedback confirms the bounded Request and Review loop improved future source collection.",
    "reviewer_feedback_refs": [
      "feedback:bounded-source-loop-accepted"
    ]
  }
}
{
  "object_type": "LearningRecord",
  "record": {
    "id": "learning-golden-pair",
    "work_session_id": "ws-golden-001",
    "created_by_actor_id": "actor-human-golden",
    "subject_type": "pair",
    "subject_ref": "pair:worker-human-golden+worker-agent-golden",
    "lesson_type": "bounded_external_source_approval",
    "source_event_refs": [
      "event-request-created",
      "event-review-approved",
      "event-evidence-captured"
    ],
    "review_state": "accepted",
    "scope": "scope:future-source-collection",
    "created_at": "2026-06-16T10:18:00Z",
    "proposed_change": {
      "pattern": "Ask for bounded external source approval before collecting evidence outside local context."
    },
    "memory_proposal_refs": [
      "memory-proposal-golden"
    ],
    "skill_proposal_refs": [
      "skill-proposal-golden"
    ]
  }
}

Host boundary

Hosts own UI, auth, storage, runtime behavior, model routing, tool execution, billing, scoring, payment, deployment, monitoring, and host workflow.

Examples show protocol records only.