Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e393793
feat(scope): add durable organization and bindings
PsiACE Sep 2, 2026
a1d0fb0
feat(migration): register existing runtime scopes
PsiACE Sep 2, 2026
99e4088
feat(artifact): publish exact revisions across scopes
PsiACE Sep 2, 2026
bbd4c4a
refactor(scope): replace project reporting with selections
PsiACE Sep 2, 2026
5cce29b
feat(integrations): resolve server-owned scopes
PsiACE Sep 2, 2026
14278d2
test(scope): verify selection and plugin contracts
PsiACE Sep 2, 2026
5d5b550
docs(scope): explain server-owned organization
PsiACE Sep 2, 2026
605701b
refactor(scope): remove legacy runtime migration
PsiACE Sep 2, 2026
d8a637d
fix(scope): retry bindings without savepoints
PsiACE Sep 2, 2026
325f20d
fix(scope): reject unregistered runtime partitions
PsiACE Sep 2, 2026
f45cc69
fix(scope): serialize hierarchy mutations
PsiACE Sep 2, 2026
056dd9e
fix(codex): guard operations by scope mode
PsiACE Sep 2, 2026
5e35afd
fix(publication): reject incomplete memory copies
PsiACE Sep 2, 2026
83f5235
chore: merge master into scope runtime
PsiACE Sep 2, 2026
3daf855
fix(ci): escape plugin shell variable safely
PsiACE Sep 2, 2026
74abed5
chore: merge latest master into scope runtime
PsiACE Sep 3, 2026
015dc00
chore: merge latest master into scope runtime
PsiACE Sep 3, 2026
befc32f
chore: merge latest master into scope runtime
PsiACE Sep 3, 2026
3a14f3a
fix(runtime): preserve referenced scope recall
PsiACE Sep 3, 2026
a7e5e7b
fix(publication): make delivery atomic
PsiACE Sep 3, 2026
94b388a
docs: use registered scope identifiers
PsiACE Sep 3, 2026
e02e10d
chore: merge latest master into scope runtime
PsiACE Sep 3, 2026
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
Prev Previous commit
Next Next commit
chore: merge latest master into scope runtime
  • Loading branch information
PsiACE committed Sep 3, 2026
commit 74abed5c41f0018566183cea7147f6a6b943c9d0
8 changes: 4 additions & 4 deletions docs/en/docs/reference/integration-capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ candidate_review permits listing and reading candidates only; it never grants de

| ID | Kind | Availability | Profiles | Capabilities |
| --- | --- | --- | --- | --- |
| codex | Agent host | Master only | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review |
| claude-code | Agent host | Master only | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review |
| codex | Agent host | Master only | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review<br>scope_organization<br>artifact_publication<br>persistent_scope_binding |
| claude-code | Agent host | Master only | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review<br>scope_organization<br>artifact_publication<br>persistent_scope_binding |
| dsh | Agent host | Master only | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>handoff<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review<br>external_skill<br>slash_command |
| hermes | Agent host | Master only | minimal, recommended, full | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review<br>external_skill<br>slash_command<br>persistent_workstream_binding |
| hermes | Agent host | Master only | minimal, recommended, full | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review<br>external_skill<br>slash_command<br>persistent_scope_binding |
| openclaw | Agent host | Master only | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>pre_compaction_capture |
| opencode | Agent host | Master only | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>handoff<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review |
| pi | Agent host | Master only | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>handoff<br>pre_compaction_capture<br>slash_command |
| workbuddy | Agent host | Master only | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review |
| workbuddy | Agent host | Master only | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review<br>scope_organization<br>artifact_publication<br>persistent_scope_binding |
| pydantic-ai | Framework adapter | Experimental | — | memory_read<br>memory_write<br>context_injection |
| langchain | Framework adapter | Master only | — | source_capture<br>context_injection |
| langgraph | Framework adapter | Master only | — | memory_read<br>memory_write<br>context_injection |
Expand Down
1 change: 1 addition & 0 deletions docs/en/docs/reference/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Handoff Report is a read-only projection over a Scope selection. `all` includes
listed Scope IDs, and `subtree` includes an organization root and all descendants. Each included Scope contributes its
latest exact Handoff address or an explicit `no_handoff` result; Parent does not imply Context visibility. Codex fixes
ordinary Agent report reads to the current Session Scope. Broader selections belong to host and Dashboard views.
See [Use Handoff Report](../how-to/use-handoff-report.md) for the report UI.

## DeepSeek Harness plugin

Expand Down
8 changes: 4 additions & 4 deletions docs/zh/docs/reference/integration-capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ candidate_review 仅可列举和读取候选材料,不授予决策权限。

| ID | Kind | Availability | Profiles | Capabilities |
| --- | --- | --- | --- | --- |
| codex | Agent 宿主 | 仅 master | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review |
| claude-code | Agent 宿主 | 仅 master | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review |
| codex | Agent 宿主 | 仅 master | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review<br>scope_organization<br>artifact_publication<br>persistent_scope_binding |
| claude-code | Agent 宿主 | 仅 master | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review<br>scope_organization<br>artifact_publication<br>persistent_scope_binding |
| dsh | Agent 宿主 | 仅 master | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>handoff<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review<br>external_skill<br>slash_command |
| hermes | Agent 宿主 | 仅 master | minimal, recommended, full | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review<br>external_skill<br>slash_command<br>persistent_workstream_binding |
| hermes | Agent 宿主 | 仅 master | minimal, recommended, full | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review<br>external_skill<br>slash_command<br>persistent_scope_binding |
| openclaw | Agent 宿主 | 仅 master | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>pre_compaction_capture |
| opencode | Agent 宿主 | 仅 master | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>handoff<br>experience_read_or_generate<br>skill_read_or_generate<br>candidate_review |
| pi | Agent 宿主 | 仅 master | minimal | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>handoff<br>pre_compaction_capture<br>slash_command |
| workbuddy | Agent 宿主 | 仅 master | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review |
| workbuddy | Agent 宿主 | 仅 master | minimal, recommended | memory_read<br>memory_write<br>source_capture<br>context_injection<br>flush_or_checkpoint<br>work_contract<br>handoff<br>acknowledge<br>task_outcome<br>candidate_review<br>scope_organization<br>artifact_publication<br>persistent_scope_binding |
| pydantic-ai | 框架适配器 | 实验性 | — | memory_read<br>memory_write<br>context_injection |
| langchain | 框架适配器 | 仅 master | — | source_capture<br>context_injection |
| langgraph | 框架适配器 | 仅 master | — | memory_read<br>memory_write<br>context_injection |
Expand Down
1 change: 1 addition & 0 deletions docs/zh/docs/reference/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Handoff Report 是 Scope selection 上的只读投影。`all` 包含全部 Scope
包含一个组织根及其全部后代。每个选中 Scope 提供 latest exact Handoff address,或者明确的 `no_handoff`;Parent 不会
隐式授予 Context 可见性。Codex 会把普通 Agent 的报告读取固定为当前 Session Scope;更宽的 selection 由 host 和
Dashboard 使用。
报告 UI 见[使用 Handoff Report](../how-to/use-handoff-report.md)。

## DeepSeek Harness 插件

Expand Down
39 changes: 30 additions & 9 deletions integrations/capabilities.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,26 @@ capabilities = ["handoff"]
id = "get_handoff_report"
capabilities = ["handoff"]
[[toolsets.tools]]
id = "list_handoff_report_known_scopes"
capabilities = ["handoff"]
id = "create_scope"
capabilities = ["scope_organization"]
[[toolsets.tools]]
id = "get_handoff_report_workspace"
capabilities = ["handoff"]
id = "get_scope"
capabilities = ["scope_organization"]
[[toolsets.tools]]
id = "list_scopes"
capabilities = ["scope_organization"]
[[toolsets.tools]]
id = "publish_artifact"
capabilities = ["artifact_publication"]
[[toolsets.tools]]
id = "resolve_scope_binding"
capabilities = ["persistent_scope_binding"]
[[toolsets.tools]]
id = "set_scope_binding"
capabilities = ["persistent_scope_binding"]
[[toolsets.tools]]
id = "clear_scope_binding"
capabilities = ["persistent_scope_binding"]
[[toolsets.tools]]
id = "acknowledge_handoff"
capabilities = ["acknowledge"]
Expand All @@ -112,6 +127,12 @@ non_profile_reason = "Candidate decision authority is outside this capability co
id = "prompt-hooks"
probe = "json_prompt_hook"
[[toolsets.tools]]
id = "codex:SessionStart"
capabilities = ["persistent_scope_binding"]
[[toolsets.tools]]
id = "codex:PreToolUse"
capabilities = ["persistent_scope_binding"]
[[toolsets.tools]]
id = "codex:UserPromptSubmit"
capabilities = ["source_capture", "context_injection", "flush_or_checkpoint"]
[[toolsets.tools]]
Expand Down Expand Up @@ -291,7 +312,7 @@ id = "hermes-command"
probe = "hermes_commands"
[[toolsets.tools]]
id = "pc"
capabilities = ["slash_command", "persistent_workstream_binding"]
capabilities = ["slash_command", "persistent_scope_binding"]
[[toolsets.tools]]
id = "powercontext"
capabilities = ["slash_command"]
Expand Down Expand Up @@ -509,7 +530,7 @@ capabilities = ["flush_or_checkpoint"]
id = "codex"
kind = "agent_host"
availability = "master_only"
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "candidate_review"]
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "candidate_review", "scope_organization", "artifact_publication", "persistent_scope_binding"]
profiles = ["minimal", "recommended"]
toolsets = ["server-mcp", "prompt-hooks"]
[integrations.evidence]
Expand All @@ -521,7 +542,7 @@ tests = ["tests/codex_plugin/test_contract.py", "tests/e2e/test_codex_service_ch
id = "claude-code"
kind = "agent_host"
availability = "master_only"
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "candidate_review"]
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "candidate_review", "scope_organization", "artifact_publication", "persistent_scope_binding"]
profiles = ["minimal", "recommended"]
toolsets = ["server-mcp", "prompt-hooks"]
[integrations.evidence]
Expand All @@ -545,7 +566,7 @@ tests = ["integrations/dsh/plugins/powercontext/tests/plugin-surfaces.spec.ts"]
id = "hermes"
kind = "agent_host"
availability = "master_only"
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "experience_read_or_generate", "skill_read_or_generate", "candidate_review", "external_skill", "slash_command", "persistent_workstream_binding"]
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "experience_read_or_generate", "skill_read_or_generate", "candidate_review", "external_skill", "slash_command", "persistent_scope_binding"]
profiles = ["minimal", "recommended", "full"]
toolsets = ["hermes-operations", "hermes-command"]
[integrations.evidence]
Expand Down Expand Up @@ -593,7 +614,7 @@ tests = ["integrations/pi/plugins/powercontext/tests/extension.spec.ts"]
id = "workbuddy"
kind = "agent_host"
availability = "master_only"
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "candidate_review"]
capabilities = ["memory_read", "memory_write", "source_capture", "context_injection", "flush_or_checkpoint", "work_contract", "handoff", "acknowledge", "task_outcome", "candidate_review", "scope_organization", "artifact_publication", "persistent_scope_binding"]
profiles = ["minimal", "recommended"]
toolsets = ["server-mcp", "prompt-hooks"]
[integrations.evidence]
Expand Down
20 changes: 17 additions & 3 deletions scripts/integration_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ class IntegrationCapability(StrEnum):
EXTERNAL_SKILL = "external_skill"
PRE_COMPACTION_CAPTURE = "pre_compaction_capture"
SLASH_COMMAND = "slash_command"
PERSISTENT_WORKSTREAM_BINDING = "persistent_workstream_binding"
SCOPE_ORGANIZATION = "scope_organization"
ARTIFACT_PUBLICATION = "artifact_publication"
PERSISTENT_SCOPE_BINDING = "persistent_scope_binding"


class SupportProfile(StrEnum):
Expand Down Expand Up @@ -532,7 +534,7 @@ def _python_string_dict_keys(path: Path, dictionary: str) -> set[str]:

def _hermes_command_ids(root: Path) -> set[str]:
source = _read(root, "integrations/hermes/plugins/powercontext/commands.py")
if "POWERCONTEXT_SUBCOMMANDS" not in source or '"workstream"' not in source:
if "POWERCONTEXT_SUBCOMMANDS" not in source or '"scope"' not in source:
raise ValueError("Hermes command surface is incomplete")
return {"pc", "powercontext"}

Expand Down Expand Up @@ -567,13 +569,25 @@ def _prompt_hook_ids(root: Path) -> set[str]:
config_path,
placeholder_roots,
)
if event == "UserPromptSubmit" and any(_is_complete_prompt_hook(script) for script in scripts):
if _is_complete_hook(integration_id, event, scripts):
result.add(f"{integration_id}:{event}")
else:
result.add(f"{integration_id}:{event}:incomplete")
return result


def _is_complete_hook(integration_id: str, event: str, scripts: set[Path]) -> bool:
if event == "UserPromptSubmit":
return any(_is_complete_prompt_hook(script) for script in scripts)
expected_script = {
("codex", "SessionStart"): "session_binding.py",
("codex", "PreToolUse"): "bind_tools.py",
}.get((integration_id, event))
return expected_script is not None and any(
script.is_file() and script.name == expected_script for script in scripts
)


def _registered_hook_scripts(
integration_id: str,
event: str,
Expand Down
7 changes: 6 additions & 1 deletion tests/test_integration_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ def test_prompt_hook_probe_follows_registered_command(
"id": "codex",
"kind": "agent_host",
"availability": "master_only",
"capabilities": ["source_capture", "context_injection", "flush_or_checkpoint"],
"capabilities": [
"source_capture",
"context_injection",
"flush_or_checkpoint",
"persistent_scope_binding",
],
"toolsets": ["prompt-hooks"],
"evidence": {
"implementation": ["integrations/codex/plugins/powercontext/hooks/recall.py"],
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.