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
fix(ci): escape plugin shell variable safely
  • Loading branch information
PsiACE committed Sep 2, 2026
commit 3daf855ecd4838c40b3aad2c402f888ae2e2cff6
7 changes: 4 additions & 3 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ jobs:

root = Path(os.environ["PLUGIN_ROOT"])
python_executable = f"python{os.environ['PYTHON_VERSION']}"
plugin_root = "$" + "{PLUGIN_ROOT}"
hooks_path = root / "hooks/hooks.json"
hooks = json.loads(hooks_path.read_text())
hook_scripts = {
Expand All @@ -264,15 +265,15 @@ jobs:
for event, script in hook_scripts.items():
hook = hooks["hooks"][event][0]["hooks"][0]
expected = (
'uv run --frozen --quiet --project "${PLUGIN_ROOT}" '
f'python "${{PLUGIN_ROOT}}/hooks/{script}"'
f'uv run --frozen --quiet --project "{plugin_root}" '
f'python "{plugin_root}/hooks/{script}"'
)
if hook["command"] != expected:
raise SystemExit(f"unexpected Codex {event} command")
hook["command"] = (
'PYTHONPATH="${PLUGIN_ROOT}/vendor" '
+ python_executable
+ f' "${{PLUGIN_ROOT}}/hooks/{script}"'
+ f' "{plugin_root}/hooks/{script}"'
)
hooks_path.write_text(json.dumps(hooks, indent=2) + "\n")

Expand Down
7 changes: 7 additions & 0 deletions tests/codex_plugin/test_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from pydantic import ValidationError

PLUGIN_ROOT = Path(__file__).resolve().parents[2] / "integrations" / "codex" / "plugins" / "powercontext"
REPOSITORY_ROOT = PLUGIN_ROOT.parents[3]


def test_scope_resolver_uses_server_binding_and_fixes_new_session(
Expand Down Expand Up @@ -162,6 +163,12 @@ def test_codex_hooks_fix_session_and_data_plane_bindings() -> None:
assert "bind_tools.py" in pre_tool_use["hooks"][0]["command"]


def test_customer_artifact_workflow_does_not_parse_plugin_root_as_an_actions_expression() -> None:
workflow = (REPOSITORY_ROOT / ".github" / "workflows" / "build-artifacts.yml").read_text()

assert "${{PLUGIN_ROOT}}" not in workflow


def test_powercontext_plugin_advertises_the_one_turn_handoff() -> None:
manifest = json.loads((PLUGIN_ROOT / ".codex-plugin" / "plugin.json").read_text())
prompts = manifest["interface"]["defaultPrompt"]
Expand Down
Loading