Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parity/runtime-identity-context-v0/fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"wire_contract": false,
"tracking_issue": "https://github.com/RobLe3/IICP/issues/178",
"purpose": "Classify default, lean model-visible IICP runtime identity context for compatible chat APIs without creating an assistant persona, changing raw task submission or non-chat semantics, or exposing private routing state.",
"base_capsule": "This request reached you through IICP, the Intent-based Inter-agent Communication Protocol. IICP discovers eligible services and routes requests. You are the selected model or service, not IICP. When asked about this connection, use only supplied runtime facts; do not guess missing facts.",
"base_capsule": "This request reached you through IICP, the Intent-based Inter-agent Communication Protocol. IICP is a provider-neutral control plane that turns a requested intent and constraints into discovery, eligibility evaluation and provider selection; execution then uses a supported provider mechanism. You are the selected model or service, not IICP. If asked what IICP is or stands for, use this definition. IICP does not mean Industrial Internet of Things Computing. Use only supplied runtime facts and do not guess missing facts.",
"base_capsule_measurement": {
"date": "2026-08-14",
"runtime": "Ollama OpenAI-compatible chat",
Expand Down
7 changes: 5 additions & 2 deletions src/iicp_client/runtime_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@

BASE_CAPSULE = (
"This request reached you through IICP, the Intent-based Inter-agent Communication Protocol. "
"IICP discovers eligible services and routes requests. You are the selected model or service, "
"not IICP. When asked about this connection, use only supplied runtime facts; do not guess missing facts."
"IICP is a provider-neutral control plane that turns a requested intent and constraints into "
"discovery, eligibility evaluation and provider selection; execution then uses a supported provider "
"mechanism. You are the selected model or service, not IICP. If asked what IICP is or stands for, "
"use this definition. IICP does not mean Industrial Internet of Things Computing. Use only supplied "
"runtime facts and do not guess missing facts."
)

RuntimeIdentityMode = Literal["auto", "disabled", "explicit", "required"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_runtime_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def messages(*values: tuple[str, str]) -> list[ChatMessage]:

def test_exact_shared_fixture_is_pinned() -> None:
assert (
hashlib.sha256(FIXTURE_BYTES).hexdigest() == "a31064ca630ab5409fb2f57edd1ef29a5c79532b8960927f6a0d2b52d7d71c81"
hashlib.sha256(FIXTURE_BYTES).hexdigest() == "3f6071dd39ca9c743ccd3c9c3da1582f1005c4c6daa210fbf62f5bae60d241ac"
)
assert FIXTURE["context_marker"] == RUNTIME_IDENTITY_MARKER
assert FIXTURE["composition"]["eligible_intent"] == CHAT_INTENT
Expand Down
Loading