Skip to content

feat(pi): add artifact inspection tools - #1604

Merged
Teingi merged 1 commit into
oceanbase:masterfrom
wutongyuonce:feat/pi-artifact-read-tools
Sep 15, 2026
Merged

Teingi merged 1 commit into
oceanbase:masterfrom
wutongyuonce:feat/pi-artifact-read-tools

Conversation

@wutongyuonce

Copy link
Copy Markdown
Contributor

Which issue or RFC does this PR close?

Refs #1338.

Rationale for this change

The Pi integration already supports Memory and Handoff workflows, but it cannot inspect approved Experience or Skill artifacts or the Artifact candidate queue. The Server operations and shared Pi HTTP routing already exist, so exposing the read-only subset closes this host capability gap without adding decision authority or a new transport path.

What changes are included in this PR?

The implementation follows the original plan and keeps the final design within the same boundary:

  • register pc_experience_get and pc_skill_get for exact Artifact references;
  • register pc_review_list and pc_review_get for read-only candidate inspection;
  • route all four tools through the existing Scope resolution and registerOperationTool / invokeScopedOperation path;
  • support status, family, cursor, and bounded limit filters on candidate listing;
  • do not expose generation, approval, rejection, or revision operations;
  • update the Pi capability declaration, generated capability pages, package guidance, and bilingual integration docs;
  • add regression coverage for registration, endpoint selection, payloads, Scope injection, pagination bounds, and the absence of durable-write confirmation.

The final design remains intentionally read-only. candidate_review means list and get only, and does not grant approval, rejection, revision, installation, publication, or execution authority. Pi continues to report the minimal profile because the repository profile contract also requires the Recommended and External Skill capability sets before Full can be claimed.

Are there any user-facing changes?

Yes. Pi users can now inspect exact Experience and Skill artifacts and browse or read Artifact candidates through native pc_* tools. Existing Memory, Handoff, prompt capture, and confirmation behavior is unchanged.

How was this change tested?

  • pnpm test in the Pi package: 13 files, 87 tests passed, including real Pi CLI package loading
  • pnpm run typecheck
  • uv run --frozen python -m pytest tests/test_integration_manifest.py -q: 26 passed
  • uv run --frozen python scripts/generate_integration_manifest_docs.py --check
  • uv run --frozen ty check
  • uv run --frozen ty check integrations/pydantic-ai/src
  • git diff --check
  • independent read-only review with Codex GPT-5.6 Luna: no actionable findings

The non-frozen make integration-manifest-docs and prek ty-check entrypoint could not resolve the current workspace for the Python 3.14 dependency split. The equivalent frozen-lockfile generation, manifest tests, and type checks listed above passed.

AI usage statement

OpenAI Codex with GPT-5.6 Sol was used for planning, implementation, and verification. A separate OpenAI Codex task with GPT-5.6 Luna performed an independent read-only code review.

@Teingi
Teingi merged commit 9ff03ee into oceanbase:master Sep 15, 2026
19 of 21 checks passed
@wutongyuonce
wutongyuonce deleted the feat/pi-artifact-read-tools branch September 15, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant