@piagent/platform 1.7.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +7 -0
- package/CHANGELOG.md +113 -1
- package/README.md +45 -70
- package/README.vi.md +34 -61
- package/architecture/layers.json +16 -3
- package/catalog/capabilities.json +14 -7
- package/catalog/claude-model-additions.json +42 -0
- package/docs/auto-delegation-policy.md +2 -0
- package/docs/command-reference-vietnamese.md +69 -91
- package/docs/context-window-policy.md +5 -5
- package/docs/distribution-standard.md +16 -19
- package/docs/en/architecture.md +9 -1
- package/docs/herdr-workflow.md +2 -3
- package/docs/languages.json +4 -4
- package/docs/managed-local-acceptance.md +403 -0
- package/docs/mcp-and-tools.md +5 -7
- package/docs/memory-policy.md +3 -3
- package/docs/model-options.md +22 -17
- package/docs/oauth-providers.md +1 -1
- package/docs/operator-manual-vietnamese.md +85 -130
- package/docs/package-architecture-notes.md +4 -4
- package/docs/piagent-core-improvement-plan.md +3 -5
- package/docs/piagent-core-plan-checkpoint-2026-09-06.json +2 -13
- package/docs/piagent-runtime-benchmark-execution-plan.md +10 -8
- package/docs/project-adapters.md +3 -3
- package/docs/project-onboarding.md +15 -16
- package/docs/publishing-for-teams.md +3 -1
- package/docs/quality-benchmark.md +2 -0
- package/docs/quickstart-vietnamese.md +24 -25
- package/docs/release-install-policy.md +16 -11
- package/docs/research/harness-next-evidence-review.md +7 -7
- package/docs/runtime-harness-standard.md +2 -0
- package/docs/runtime-policy-design.md +2 -0
- package/docs/runtime-quality-baseline.md +2 -0
- package/docs/subagent-orchestration-capabilities.md +1 -1
- package/docs/subagents-and-multiagent.md +10 -8
- package/docs/task-implementation-contract.md +2 -0
- package/docs/task-lifecycle-vietnamese.md +2 -0
- package/docs/team-onboarding.md +33 -64
- package/docs/usage-observability.md +2 -2
- package/docs/vi/architecture.md +9 -1
- package/docs/workflow-recipes.md +6 -10
- package/docs-site/architecture.html +4 -3
- package/docs-site/assets/docs.css +80 -0
- package/docs-site/benchmark.html +7 -1
- package/docs-site/commands.html +37 -23
- package/docs-site/content/architecture.html +2 -2
- package/docs-site/content/benchmark.html +5 -0
- package/docs-site/content/commands.html +35 -22
- package/docs-site/content/ecosystem.html +144 -0
- package/docs-site/content/en/architecture.html +1 -1
- package/docs-site/content/en/benchmark.html +5 -0
- package/docs-site/content/en/commands.html +30 -13
- package/docs-site/content/en/ecosystem.html +144 -0
- package/docs-site/content/en/index.html +24 -9
- package/docs-site/content/en/quickstart.html +10 -12
- package/docs-site/content/en/runtime.html +1 -1
- package/docs-site/content/en/security.html +1 -1
- package/docs-site/content/en/team.html +2 -2
- package/docs-site/content/en/whats-new.html +89 -1
- package/docs-site/content/en/workflows.html +29 -31
- package/docs-site/content/index.html +24 -9
- package/docs-site/content/quickstart.html +10 -12
- package/docs-site/content/runtime.html +2 -2
- package/docs-site/content/security.html +2 -2
- package/docs-site/content/team.html +2 -2
- package/docs-site/content/whats-new.html +89 -1
- package/docs-site/content/workflows.html +36 -38
- package/docs-site/context-engine.html +2 -1
- package/docs-site/ecosystem.html +283 -0
- package/docs-site/en/architecture.html +3 -2
- package/docs-site/en/benchmark.html +7 -1
- package/docs-site/en/commands.html +32 -14
- package/docs-site/en/context-engine.html +2 -1
- package/docs-site/en/ecosystem.html +283 -0
- package/docs-site/en/index.html +30 -14
- package/docs-site/en/mcp-approval.html +2 -1
- package/docs-site/en/mcp-auth.html +2 -1
- package/docs-site/en/mcp-servers.html +2 -1
- package/docs-site/en/mcp.html +2 -1
- package/docs-site/en/permissions.html +2 -1
- package/docs-site/en/profiles.html +2 -1
- package/docs-site/en/quickstart.html +17 -18
- package/docs-site/en/runtime.html +3 -2
- package/docs-site/en/scope.html +2 -1
- package/docs-site/en/security.html +6 -5
- package/docs-site/en/team.html +4 -3
- package/docs-site/en/whats-new.html +97 -8
- package/docs-site/en/workflows.html +34 -35
- package/docs-site/index.html +30 -14
- package/docs-site/mcp-approval.html +2 -1
- package/docs-site/mcp-auth.html +2 -1
- package/docs-site/mcp-servers.html +2 -1
- package/docs-site/mcp.html +2 -1
- package/docs-site/permissions.html +2 -1
- package/docs-site/profiles.html +2 -1
- package/docs-site/quickstart.html +17 -18
- package/docs-site/runtime.html +4 -3
- package/docs-site/scope.html +2 -1
- package/docs-site/security.html +7 -6
- package/docs-site/team.html +4 -3
- package/docs-site/whats-new.html +97 -8
- package/docs-site/workflows.html +41 -42
- package/evals/fs5-causal-arm.v1.json +2 -2
- package/evals/private-holdout-v1/CURRENT_BOUNDARY.md +17 -0
- package/evals/private-holdout-v1/public-exposure.v2.json +2 -2
- package/package.json +10 -9
- package/packages/piagent-core/README.md +15 -23
- package/packages/piagent-core/docs/context-efficiency-improvement-plan.md +2 -0
- package/packages/piagent-core/extensions/experiment-loop-policy.ts +75 -0
- package/packages/piagent-core/extensions/local-state-path.js +15 -0
- package/packages/piagent-core/extensions/piagent-guard.ts +108 -960
- package/packages/piagent-core/extensions/policy-core.js +2 -2
- package/packages/piagent-core/extensions/source-checkout-paths.ts +54 -0
- package/packages/piagent-core/managed/broker-client.mjs +49 -0
- package/packages/piagent-core/managed/capabilities.mjs +28 -0
- package/packages/piagent-core/managed/compaction.mjs +63 -0
- package/packages/piagent-core/managed/doctor.mjs +107 -0
- package/packages/piagent-core/managed/native-catalog.mjs +42 -0
- package/packages/piagent-core/managed/patch-snapshot.mjs +48 -0
- package/packages/piagent-core/managed/repository-operation.mjs +84 -0
- package/packages/piagent-core/managed/request-stream.mjs +129 -0
- package/packages/piagent-core/managed/resource-loader.mjs +42 -0
- package/packages/piagent-core/managed/review-snapshot-worker.mjs +27 -0
- package/packages/piagent-core/managed/sandbox-diagnostic.mjs +12 -0
- package/packages/piagent-core/managed/search-fallback.mjs +93 -0
- package/packages/piagent-core/managed/session.mjs +472 -0
- package/packages/piagent-core/managed/store.d.mts +3 -0
- package/packages/piagent-core/managed/store.mjs +64 -0
- package/packages/piagent-core/managed/tool-boundary.mjs +243 -0
- package/packages/piagent-core/managed/tool-worker.mjs +36 -0
- package/packages/piagent-core/managed/toolchain.mjs +120 -0
- package/packages/piagent-core/managed/web-fetch.mjs +105 -0
- package/packages/piagent-core/managed/web-search.mjs +96 -0
- package/packages/piagent-core/managed/workflow.mjs +299 -0
- package/packages/piagent-core/package.json +3 -6
- package/packages/piagent-core/policies/base-policy.json +80 -26
- package/packages/piagent-core/runtime/hooks/agent-start-hook.ts +3 -3
- package/packages/piagent-core/runtime/hooks/input-hook.ts +35 -196
- package/packages/piagent-core/runtime/hooks/session-start-hook.ts +2 -0
- package/packages/piagent-core/runtime/inspection/approval-broker.ts +9 -1
- package/packages/piagent-core/runtime/inspection/same-process-bridge-proof.ts +1 -1
- package/packages/piagent-core/runtime/inspection/webui-snapshot.ts +1 -1
- package/packages/piagent-core/runtime/managed-failure.d.mts +10 -0
- package/packages/piagent-core/runtime/managed-failure.mjs +164 -0
- package/packages/piagent-core/runtime/model/model-route-policy.ts +33 -13
- package/packages/piagent-core/runtime/model/model-route-types.ts +10 -6
- package/packages/piagent-core/runtime/orchestration/minimal-delegation-policy.ts +8 -29
- package/packages/piagent-core/runtime/orchestration/owned-work-budget.ts +1 -1
- package/packages/piagent-core/runtime/policy/block-remedy.ts +5 -3
- package/packages/piagent-core/runtime/registration/context-commands.ts +1 -1
- package/packages/piagent-core/runtime/registration/knowledge-tools.ts +7 -7
- package/packages/piagent-core/runtime/registration/policy-tools.ts +2 -2
- package/packages/piagent-core/runtime/registration/session-commands.ts +11 -26
- package/packages/piagent-core/runtime/registration/task-evidence-tools.ts +1 -1
- package/packages/piagent-core/runtime/session/system-prompt.ts +6 -7
- package/packages/piagent-core/runtime/workflows/webui-runtime-command.ts +6 -6
- package/packages/piagent-core/runtime/workflows/webui-workflow.ts +6 -11
- package/packages/piagent-core/security/sensitive-text.js +9 -0
- package/packages/piagent-core/skills/piagent-ops/SKILL.md +8 -10
- package/packages/piagent-core/skills/test-audit/SKILL.md +101 -0
- package/packages/piagent-core/subagents/piagent-planner.md +1 -1
- package/packages/piagent-webui/dist/client/assets/{MarkdownMessage-DGk34zJT.js → MarkdownMessage-Dd9wPk-v.js} +1 -1
- package/packages/piagent-webui/dist/client/assets/index-7I-50Q2U.js +228 -0
- package/packages/piagent-webui/dist/client/assets/{index-DVahUVWy.css → index-DgSmcnP8.css} +1 -1
- package/packages/piagent-webui/dist/client/index.html +2 -2
- package/packages/piagent-webui/extension/piagent-webui.ts +11 -11
- package/packages/piagent-webui/extension/session-stream-adapter.ts +3 -1
- package/packages/piagent-webui/extension/terminal-session-adapter.ts +6 -1
- package/packages/piagent-webui/gateway/company-relay.ts +308 -0
- package/packages/piagent-webui/gateway/control-socket.ts +39 -12
- package/packages/piagent-webui/gateway/gateway-service.ts +109 -28
- package/packages/piagent-webui/gateway/gateway-session-stream.ts +58 -2
- package/packages/piagent-webui/gateway/managed-gateway.mjs +41 -0
- package/packages/piagent-webui/gateway/managed-launch.ts +145 -0
- package/packages/piagent-webui/gateway/managed-projection.ts +20 -0
- package/packages/piagent-webui/gateway/pi-host.ts +22 -4
- package/packages/piagent-webui/gateway/runtime-session-controls.ts +5 -2
- package/packages/piagent-webui/gateway/session-approval-authority.ts +28 -0
- package/packages/piagent-webui/gateway/session-catalog.ts +11 -3
- package/packages/piagent-webui/gateway/session-command-controller.ts +8 -2
- package/packages/piagent-webui/gateway/session-file-facts.ts +25 -0
- package/packages/piagent-webui/gateway/session-inspection-registry.ts +42 -12
- package/packages/piagent-webui/gateway/session-list-cache.ts +68 -0
- package/packages/piagent-webui/gateway/session-runtime-ownership.ts +8 -1
- package/packages/piagent-webui/gateway/session-runtime-supervisor.ts +20 -27
- package/packages/piagent-webui/ownership/managed-terminal-lease.ts +27 -0
- package/packages/piagent-webui/ownership/profile-state.ts +2 -0
- package/packages/piagent-webui/ownership/session-lease-store.ts +22 -1
- package/packages/piagent-webui/server/approval-projection.ts +9 -0
- package/packages/piagent-webui/server/core-inspection-provider.ts +4 -9
- package/packages/piagent-webui/server/loopback-server.ts +37 -1
- package/packages/piagent-webui/server/message-stop-reason.ts +11 -0
- package/packages/piagent-webui/server/tool-call-summary.ts +185 -0
- package/packages/piagent-webui/server/transcript-projection.ts +86 -3
- package/packs/engineering-base/pack.json +4 -0
- package/schemas/piagent-webui/runtime-command-v1.schema.json +1 -2
- package/schemas/piagent-webui/session-catalog-v1.schema.json +8 -0
- package/schemas/piagent-webui/transcript-v1.schema.json +94 -1
- package/scripts/build-docs-site.mjs +23 -12
- package/scripts/check-public-wording.mjs +5 -6
- package/scripts/check-runtime-advisories.mjs +23 -6
- package/scripts/claude-model-additions.mjs +33 -0
- package/scripts/configure-model-scope.sh +36 -8
- package/scripts/configure-subagents.sh +1 -1
- package/scripts/explain-command.mjs +5 -6
- package/scripts/install-global.sh +2 -2
- package/scripts/model-route-evaluation-core.ts +1 -0
- package/scripts/model-scope-prune.mjs +75 -0
- package/scripts/phase-tools-evaluation.mjs +9 -4
- package/scripts/pi-model-route.mjs +1 -1
- package/scripts/piagent-cli.mjs +51 -2
- package/scripts/piagent-dashboard.mjs +27 -4
- package/scripts/piagent-installations.mjs +26 -0
- package/scripts/piagent-studio.mjs +155 -0
- package/scripts/runtime-advisory-exceptions.json +29 -0
- package/scripts/setup.sh +2 -2
- package/scripts/team-doctor.sh +20 -1
- package/scripts/typescript-loader.mjs +6 -0
- package/scripts/verify-local.sh +5 -5
- package/scripts/verify-release-identity.mjs +1 -1
- package/templates/global/settings.json +8 -2
- package/templates/project/.pi/project-context.md +3 -3
- package/templates/project/AGENTS.md +4 -5
- package/docs/piagent-core-reasoning-research-2026-09-06.md +0 -225
- package/docs/piagent-core-research-sources-2026-09-06.json +0 -416
- package/packages/piagent-webui/dist/client/assets/index-DiKRmCEP.js +0 -176
|
@@ -19,16 +19,14 @@ Không có cơ sở để kết luận toàn bộ lõi Piagent đã lỗi thời
|
|
|
19
19
|
|
|
20
20
|
## 2. Cơ sở nghiên cứu và giới hạn
|
|
21
21
|
|
|
22
|
-
Đã đối chiếu
|
|
23
|
-
|
|
24
|
-
Danh mục nguồn, mức đọc, SHA và đối chiếu với Piagent nằm trong [bản nghiên cứu](piagent-core-reasoning-research-2026-09-06.md) và [manifest nguồn](piagent-core-research-sources-2026-09-06.json). Các phần thiết kế bên dưới là tổng hợp đề xuất cho Piagent; kết quả của tác giả khác không phải bằng chứng Piagent sẽ đạt mức tiết kiệm tương tự.
|
|
22
|
+
Đã đối chiếu Pi, tài liệu kỹ thuật của các nhà cung cấp model mà Piagent hỗ trợ và một số mẫu thiết kế coding agent phổ biến. Bốn bài nghiên cứu được dùng ở mức abstract/phạm vi kết luận để kiểm tra giả định, không coi là tái lập thí nghiệm. Các phần thiết kế bên dưới là tổng hợp đề xuất cho Piagent; kết quả công bố ở nơi khác không phải bằng chứng Piagent sẽ đạt mức tiết kiệm tương tự.
|
|
25
23
|
|
|
26
24
|
Các nguồn thay đổi quyết định thiết kế rõ nhất:
|
|
27
25
|
|
|
28
26
|
- Codex giải thích tác động của prefix/tool order lên cache và cách quản lý lịch sử. Piagent cần dùng telemetry ở payload thực tế cùng usage, thay vì suy từ độ dài prompt. [OpenAI, agent loop](https://openai.com/index/unrolling-the-codex-agent-loop/)
|
|
29
27
|
- Anthropic ghi nhận thay đổi effort, mất reasoning khi resume và chỉ dẫn giảm verbosity có thể làm giảm chất lượng. Không mặc định hạ effort, cắt lịch sử hoặc ép trả lời ngắn để đạt chỉ tiêu token. [Postmortem 23/04/2026](https://www.anthropic.com/engineering/april-23-postmortem)
|
|
30
|
-
-
|
|
31
|
-
-
|
|
28
|
+
- Lấy context theo nhu cầu và đánh giá bằng công việc thực tế: Piagent cần nguồn chi tiết có thể đọc lại và ghi nhận phần sửa phải làm lại sau bàn giao.
|
|
29
|
+
- Định dạng sửa code là một biến riêng, và một lõi đơn giản (chỉ shell, lịch sử tuyến tính) vẫn là đối chứng đáng xem xét. Không giả định thêm orchestration luôn tốt hơn.
|
|
32
30
|
|
|
33
31
|
## 3. Điểm xuất phát phải giữ nguyên
|
|
34
32
|
|
|
@@ -28,8 +28,6 @@
|
|
|
28
28
|
"stagedPaths": [],
|
|
29
29
|
"onlyNewDocumentationFiles": [
|
|
30
30
|
"piagent-core-improvement-plan.md",
|
|
31
|
-
"piagent-core-reasoning-research-2026-09-06.md",
|
|
32
|
-
"piagent-core-research-sources-2026-09-06.json",
|
|
33
31
|
"piagent-core-plan-checkpoint-2026-09-06.json"
|
|
34
32
|
],
|
|
35
33
|
"candidateIdentityNote": "New nonignored docs change whole-candidate selection. E14 source/test evidence remains historical and is not rebound by this checkpoint."
|
|
@@ -53,17 +51,8 @@
|
|
|
53
51
|
"path": "docs/piagent-core-improvement-plan.md",
|
|
54
52
|
"sha256": "b8bc53d19e753e40e9f7371248b49049933d0a9227585f6f182d8a32dc37a049",
|
|
55
53
|
"bytes": 38504
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"path": "docs/piagent-core-reasoning-research-2026-09-06.md",
|
|
59
|
-
"sha256": "bb1ce6a8544a8b72c7574226621515d257ec0e1bbd7f311d949edfe5039895d1",
|
|
60
|
-
"bytes": 26595
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "docs/piagent-core-research-sources-2026-09-06.json",
|
|
64
|
-
"sha256": "939bf4e91e916417bf9ee626a10caad39c4be8a42758436089afee3cd82a4654",
|
|
65
|
-
"bytes": 17191
|
|
66
54
|
}
|
|
67
55
|
],
|
|
68
|
-
"nextActionAfterOfflineResume": "C0 preservation and hunk manifest, then C1 exact usage to task report wiring; no provider launch or full suite first."
|
|
56
|
+
"nextActionAfterOfflineResume": "C0 preservation and hunk manifest, then C1 exact usage to task report wiring; no provider launch or full suite first.",
|
|
57
|
+
"laterChange": "2026-10-02: the research record and source manifest that named other agent products were removed; the improvement plan was rewritten to name none, so its digest above is historical."
|
|
69
58
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Plan riêng: ổn định logic Piagent và hoàn tất benchmark 108 phiên
|
|
2
2
|
<!-- language: vi; english-index: docs-site/content/en/benchmark.html -->
|
|
3
3
|
|
|
4
|
+
> **Hồ sơ thiết kế trước bản 1.9.0.** Task contract, command workflow (`/workflow`, `/task`, `/fresh`, `/onboard`) và các tool task/trace/verify mô tả ở đây đã bỏ ngày 2026-09-30; session giờ là freeform và guard chỉ còn kiểm tra path, quyền, xác nhận, context budget và edit trên bản đọc cũ. Tài liệu được giữ để tra cứu lịch sử. Hành vi hiện tại: [README](../README.vi.md).
|
|
5
|
+
|
|
4
6
|
> Plan ID: **PRB-108-2026-09-06** · Version: **1.16** · Ngày: **2026-09-06**
|
|
5
7
|
>
|
|
6
8
|
> Trạng thái: **IMPLEMENTING_A_V2_OFFLINE — Number N/R5/independent verification đã duyệt; chưa qualification/B/paid**.
|
|
@@ -224,7 +226,7 @@ Hai điểm quyết định là đề xuất quy trình, không phải hai appro
|
|
|
224
226
|
- Không bật independent-verifier authority, cài verifier/image hoặc ký cấu hình thay operator.
|
|
225
227
|
- Không giảm an toàn, tắt completion gate, xóa test đỏ hoặc đổi unsupported thành completed để đạt số phiên.
|
|
226
228
|
- Không dùng 108 phiên trả phí làm integration test.
|
|
227
|
-
- Không nâng dependency/model/provider, đổi sang
|
|
229
|
+
- Không nâng dependency/model/provider, đổi sang một harness khác hoặc xây harness mới trong đợt này.
|
|
228
230
|
- Không thêm private holdout, reviewer giả hoặc claim tổng quát. Waiver reviewer vẫn là waiver, `reviewed=false` phải giữ trung thực.
|
|
229
231
|
- Không stash/reset/checkout/discard toàn bộ working tree, tạo worktree mới, push hoặc publish nếu chưa được yêu cầu cụ thể.
|
|
230
232
|
- Workspace `/Users/vtamm/Documents/pi-company-platform` chỉ để đọc hướng dẫn; không triển khai ở đó.
|
|
@@ -233,14 +235,14 @@ Hai điểm quyết định là đề xuất quy trình, không phải hai appro
|
|
|
233
235
|
|
|
234
236
|
Đã khảo sát ngày 06/09/2026; đây là đọc source/CI và release notes, chưa tự chạy toàn bộ test của các repo. Những cách làm sau là gợi ý thiết kế, không phải bằng chứng Piagent đã đạt.
|
|
235
237
|
|
|
236
|
-
|
|
|
238
|
+
| Mẫu thiết kế | Áp dụng vào plan | Không sao chép |
|
|
237
239
|
| --- | --- | --- |
|
|
238
|
-
|
|
|
239
|
-
|
|
|
240
|
-
|
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
|
|
|
240
|
+
| Release gate gom các nhóm kiểm thử | Chia nhóm kiểm thử, gom một release gate; đúng artifact và identity | Toàn bộ CI đa nền tảng, tính năng hoặc toolset mới |
|
|
241
|
+
| Test độ bền phiên | Kiểm tra trạng thái thực được lưu, không chỉ event ở bộ nhớ | Khẳng định ghi vào OS cache là bảo đảm chịu mọi mất điện |
|
|
242
|
+
| Vòng lặp agent có owner rõ | Owner terminal rõ; tách execution/persistence/delivery, wait timeout/run timeout, writer identity | Các fallback/retry làm thay đổi treatment 0 retry |
|
|
243
|
+
| Phân tầng kiểm thử | Tách unit, integration, package, transport, live-provider; targeted trước full | Gọi mock là live proof hoặc coi phát hành thường xuyên là không có lỗi |
|
|
244
|
+
| Chặn vòng lặp lỗi công cụ | Phân biệt lỗi lặp, tiến bộ thật và user abort; test xuyên query loop | Thêm bộ đếm mới khi Piagent đã có budget và progress guard |
|
|
245
|
+
| Test bản đóng gói | Test bản cài/đóng gói, không chỉ source tree | Publish hoặc cài global trong session này |
|
|
244
246
|
|
|
245
247
|
Không tiếp tục khảo sát hàng loạt harness khác trừ khi một failure cụ thể thiếu phương án và nguồn trên không giải quyết được.
|
|
246
248
|
|
package/docs/project-adapters.md
CHANGED
|
@@ -92,7 +92,7 @@ Quy tắc:
|
|
|
92
92
|
- Mọi key project tự khai **thay thế nguyên key** của adapter, không merge từng phần tử. Khai `protectedPaths` nghĩa là project sở hữu list đó và không nhận thay đổi từ adapter nữa.
|
|
93
93
|
- Không khai `extends` thì profile giữ nguyên hành vi cũ, self-contained.
|
|
94
94
|
|
|
95
|
-
`scripts/init-project.sh` và `/
|
|
95
|
+
`scripts/init-project.sh` và `/profile` ghi dạng `extends` khi profile đến từ built-in adapter. Update platform sau đó không cần chạm vào project nào.
|
|
96
96
|
|
|
97
97
|
## Monorepo và workspace
|
|
98
98
|
|
|
@@ -137,7 +137,7 @@ Rule nằm ở `packages/piagent-core/extensions/project-shape.js`. Cả `piagen
|
|
|
137
137
|
Default UX không bắt buộc chạy bash để set profile. Sau global install, vào project chạy:
|
|
138
138
|
|
|
139
139
|
```text
|
|
140
|
-
/
|
|
140
|
+
/profile setup
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
Nếu chưa có `.pi/piagent-profile.json`, onboarding nên dùng select-style setup: chọn profile trước, rồi chọn tech theo role. Native command là:
|
|
@@ -162,7 +162,7 @@ Kết quả ghi:
|
|
|
162
162
|
|
|
163
163
|
Sau khi agent đọc Context7 cho tech tương ứng, chỉ record snapshot ngắn bằng `piagent_profile_tech_context_record`; không lưu nguyên văn docs dài.
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
Lượt onboard (nhờ agent trong chat) cũng tạo `.pi/context-index.json`. Đây là advisory node/edge/citation map cho profile, tech, verify command, docs, risk và memory pointer; không dùng thay thế source hiện tại hoặc guard policy.
|
|
166
166
|
|
|
167
167
|
Đổi profile sau này:
|
|
168
168
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Mục tiêu
|
|
5
5
|
|
|
6
|
-
Lần đầu gắn một project vào Pi Agent Platform,
|
|
6
|
+
Lần đầu gắn một project vào Pi Agent Platform, nên onboard trước khi giao việc implement lớn.
|
|
7
7
|
|
|
8
8
|
Luồng chuẩn là:
|
|
9
9
|
|
|
@@ -12,11 +12,16 @@ cd /path/to/project
|
|
|
12
12
|
pi
|
|
13
13
|
/login
|
|
14
14
|
<select provider/model>
|
|
15
|
-
/
|
|
16
|
-
|
|
15
|
+
/profile setup
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
rồi nhờ agent bằng lời thường (từ bản 1.9.0 không còn `/onboard`):
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
Đọc project này (chỉ đọc) và ghi lại project context.
|
|
17
22
|
```
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
Sau khi profile setup và lượt onboard xong, project có file:
|
|
20
25
|
|
|
21
26
|
```text
|
|
22
27
|
.pi/piagent-profile.json
|
|
@@ -29,7 +34,7 @@ pi
|
|
|
29
34
|
.pi/memory/MEMORY.md
|
|
30
35
|
```
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
Profile và tech stack được chọn bằng select-style flow:
|
|
33
38
|
|
|
34
39
|
```text
|
|
35
40
|
/profile setup
|
|
@@ -42,7 +47,7 @@ Nếu Pi host chưa có native select, command trả card compact và lệnh det
|
|
|
42
47
|
|
|
43
48
|
`.pi/context-index.json` là compact advisory index dạng node/edge/citation cho profile, tech stack, verify command, docs, risk, memory pointer và task handoff đã được duyệt. Nó giúp agent tìm đúng điểm vào repo nhanh hơn, nhưng không phải source of truth hoặc security boundary.
|
|
44
49
|
|
|
45
|
-
Context index là Pi runtime state. Không đọc/ghi raw file này trong workflow thường ngày; dùng `/context`, `piagent_context_index_status`, `piagent_context_index_search`,
|
|
50
|
+
Context index là Pi runtime state. Không đọc/ghi raw file này trong workflow thường ngày; dùng `/context`, `piagent_context_index_status`, `piagent_context_index_search`, lượt onboard hoặc `piagent_context_index_record` để runtime có thể kiểm soát path và sanitize dữ liệu advisory trước khi đưa vào model.
|
|
46
51
|
|
|
47
52
|
Memory markdown là local/private mặc định và bị ignore bởi `.pi/.gitignore`. Chỉ commit memory nếu team quyết định opt-in sau khi review/redact.
|
|
48
53
|
|
|
@@ -52,7 +57,7 @@ Memory markdown là local/private mặc định và bị ignore bởi `.pi/.giti
|
|
|
52
57
|
|
|
53
58
|
Bash setup chỉ biết tạo template và detect marker. Nó không có model reasoning, không biết project purpose, module ownership, domain rule, hay risk boundary.
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
Lượt onboard nên chạy sau login/model selection để chính model sẽ dùng cho task đọc qua project, gợi ý profile, và tạo snapshot.
|
|
56
61
|
|
|
57
62
|
## Profile selection
|
|
58
63
|
|
|
@@ -116,13 +121,7 @@ Mục tiêu là hiểu cấu trúc và policy, không nhồi full repo vào cont
|
|
|
116
121
|
|
|
117
122
|
## Khi nào regenerate
|
|
118
123
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
```text
|
|
122
|
-
/onboard run
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
khi có thay đổi lớn:
|
|
124
|
+
Nhờ agent onboard lại ("Đọc lại project và cập nhật project context") khi có thay đổi lớn:
|
|
126
125
|
|
|
127
126
|
- source layout đổi;
|
|
128
127
|
- framework/runtime đổi;
|
|
@@ -130,8 +129,8 @@ khi có thay đổi lớn:
|
|
|
130
129
|
- API/schema/migration/auth/provider policy đổi;
|
|
131
130
|
- project ownership hoặc domain rule đổi.
|
|
132
131
|
|
|
133
|
-
##
|
|
132
|
+
## Quan hệ với việc hằng ngày
|
|
134
133
|
|
|
135
|
-
|
|
134
|
+
Agent đọc `.pi/project-context.md` như context advisory. Nếu file còn trạng thái `Generated: not yet`, nên nhờ agent onboard trước khi giao việc lớn.
|
|
136
135
|
|
|
137
136
|
Đây là điểm khác với CLI thuần: context bootstrap trở thành một bước có artifact có thể review và tái dùng. `.pi/project-context.md` và `.pi/context-index.json` có thể commit cho team sau khi review; memory markdown thì private-by-default.
|
|
@@ -41,6 +41,8 @@ pi install /path/to/piagent
|
|
|
41
41
|
|
|
42
42
|
## Versioning
|
|
43
43
|
|
|
44
|
+
- `1.9.0`: phiên freeform — bỏ task contract và các command workflow (`/workflow`, `/fresh`, `/onboard`…); khung main/research/review cho tài khoản công ty; redact credential Studio; sửa duyệt trên WebUI.
|
|
45
|
+
- `1.8.0`: Pi 0.87.1, thêm GPT-6 Astra/Sol/Luna vào catalog, WebUI và tier routing opt-in. Không chạy lại 108 phiên hay claim hiệu suất GPT-6.
|
|
44
46
|
- `1.7.1`: Pi 0.86.1, chờ trong phiên đang mở, sửa context/usage và phục hồi; kết quả chạy lại 14 phiên lỗi được giữ riêng, không claim một full108 mới hay tiết kiệm token tổng thể.
|
|
45
47
|
- `1.7.0`: chỉ có annotated tag; macOS tag CI chạm giới hạn 40 phút hai lần nên npm và GitHub Release không được publish. Được thay bằng `1.7.1`.
|
|
46
48
|
- `0.1.x`: local/internal pilot.
|
|
@@ -151,7 +153,7 @@ pi install /path/to/piagent
|
|
|
151
153
|
2. Install the pinned terminal helper and matching Pi package.
|
|
152
154
|
3. Login OAuth provider.
|
|
153
155
|
4. Run `pi` in the target project.
|
|
154
|
-
5.
|
|
156
|
+
5. Ask the agent to inspect the project read-only and record its project context.
|
|
155
157
|
6. Choose/apply a profile inside Pi.
|
|
156
158
|
|
|
157
159
|
Chi tiết: `docs/team-onboarding.md` và `docs/distribution-standard.md`.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Quality benchmark guide
|
|
2
2
|
<!-- language: vi; english-index: docs-site/content/en/benchmark.html -->
|
|
3
3
|
|
|
4
|
+
> **Lưu ý bản 1.9.0.** Các suite và số liệu dưới đây được đo trên Piagent có task contract và command workflow (đến 1.8.x). Hai cơ chế này đã bỏ ngày 2026-09-30; journey/benchmark dựa vào bản ghi task là hồ sơ lịch sử cho tới khi được đo lại trên lượt freeform.
|
|
5
|
+
|
|
4
6
|
## Chạy và chấm tự động bằng một lệnh
|
|
5
7
|
|
|
6
8
|
Từ terminal, chạy:
|
|
@@ -34,7 +34,7 @@ npm install -g @piagent/platform
|
|
|
34
34
|
piagent-setup
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
Chạy `piagent-setup` ngay trong thư mục project. Nó tự cài đúng Pi Coding Agent `0.
|
|
37
|
+
Chạy `piagent-setup` ngay trong thư mục project. Nó tự cài đúng Pi Coding Agent `0.87.1` mà release này pin, cài Pi package, khởi tạo `.pi/`, rồi chạy doctor. Nó cũng cài MCP baseline, subagents, và Herdr Pi integration nếu `herdr` đã có sẵn trên `PATH`; thêm `--no-mcp`, `--no-subagents`, `--no-herdr` nếu không cần, hoặc `--global-only` nếu chưa muốn đụng project nào.
|
|
38
38
|
|
|
39
39
|
Nếu dùng [Herdr](https://herdr.dev/docs/install/) thì cài Herdr **trước** `piagent-setup`:
|
|
40
40
|
|
|
@@ -67,18 +67,22 @@ Sau khi login và chọn model intended cho project understanding:
|
|
|
67
67
|
```text
|
|
68
68
|
/model # hoặc Ctrl+L để chọn model bằng selector của Pi
|
|
69
69
|
/scoped-models # optional, chỉnh danh sách Ctrl+P cycle
|
|
70
|
-
/commands
|
|
71
70
|
/mcp # kiểm tra MCP adapter/server
|
|
72
71
|
/subagents-doctor # health check subagent setup
|
|
73
|
-
/
|
|
74
|
-
/onboard run
|
|
72
|
+
/profile setup
|
|
75
73
|
/context index
|
|
76
74
|
/memory
|
|
77
75
|
```
|
|
78
76
|
|
|
77
|
+
Rồi nhờ agent onboard bằng lời thường (từ bản 1.9.0 không còn `/onboard`):
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
Đọc project này (chỉ đọc) và ghi lại project context.
|
|
81
|
+
```
|
|
82
|
+
|
|
79
83
|
`Ctrl+L` mở model selector, `Ctrl+P` đổi model trong scope, `Shift+Tab` đổi mức thinking. `piagent-setup` đã config sẵn `enabledModels`, MCP baseline preset `core`, và subagents preset `safe` — muốn xem hoặc đổi thì có [model-options.md](model-options.md), [mcp-and-tools.md](mcp-and-tools.md), [subagents-and-multiagent.md](subagents-and-multiagent.md).
|
|
80
84
|
|
|
81
|
-
`/
|
|
85
|
+
Profile/tech (`/profile setup`) và lượt onboard này ghi:
|
|
82
86
|
|
|
83
87
|
```text
|
|
84
88
|
.pi/piagent-profile.json
|
|
@@ -100,7 +104,7 @@ Nếu chưa có profile/tech stack, dùng select-style flow để tránh agent t
|
|
|
100
104
|
|
|
101
105
|
`web-frontend` chọn FE + database optional; `backend-api` chọn BE + database optional; `fullstack` chọn frontend, backend và database. Nếu Pi host chưa có native select, command sẽ trả card ngắn và lệnh deterministic `/profile tech apply ...`.
|
|
102
106
|
|
|
103
|
-
`.pi/project-context.md` là snapshot context cho task sau. `.pi/context-index.json` là bản đồ node/edge/citation compact để tìm đúng điểm vào repo; vẫn phải đọc source hiện tại trước khi sửa. Không đọc/ghi raw file index trong task thường ngày; dùng `/context`,
|
|
107
|
+
`.pi/project-context.md` là snapshot context cho task sau. `.pi/context-index.json` là bản đồ node/edge/citation compact để tìm đúng điểm vào repo; vẫn phải đọc source hiện tại trước khi sửa. Không đọc/ghi raw file index trong task thường ngày; dùng `/context`, lượt onboard hoặc `piagent_context_index_record` để runtime sanitize dữ liệu advisory. Nếu snapshot còn `Generated: not yet` hoặc `/context index` báo pending/stale, nên nhờ agent onboard lại trước task lớn.
|
|
104
108
|
|
|
105
109
|
`/memory` kiểm tra chính sách memory của project. `/memory-policy` vẫn là alias. Mặc định memory là explicit-only: chỉ ghi khi user yêu cầu rõ “remember this”, không tự học transcript nền.
|
|
106
110
|
|
|
@@ -124,40 +128,35 @@ cd <project>
|
|
|
124
128
|
pi --name "ABC-123 Short task name"
|
|
125
129
|
```
|
|
126
130
|
|
|
127
|
-
Rồi mô tả việc cần làm bằng tiếng Việt hoặc tiếng Anh. Nếu quên đặt tên lúc mở Pi, gõ `/name ABC-123 Short task name` hoặc alias ngắn `/setname ABC-123 Short task name` trước khi làm tiếp; Agent Watch sẽ dùng tên session này trong report. Không cần paste checklist
|
|
131
|
+
Rồi mô tả việc cần làm bằng tiếng Việt hoặc tiếng Anh. Nếu quên đặt tên lúc mở Pi, gõ `/name ABC-123 Short task name` hoặc alias ngắn `/setname ABC-123 Short task name` trước khi làm tiếp; Agent Watch sẽ dùng tên session này trong report. Không cần paste checklist hay gõ `/task`/`/workflow` (đã bỏ từ bản 1.9.0): guard tự áp policy cho từng tool call. Muốn chỉ đọc thì nói rõ "chỉ đọc, không sửa", hoặc đổi session sang `/permission read-only`.
|
|
128
132
|
|
|
129
|
-
|
|
130
|
-
thì quay lại đúng session cũ theo name/id. Source task yêu cầu project là Git
|
|
131
|
-
working tree và profile có verify command thật. `/workflow scout` vẫn chạy ở
|
|
132
|
-
read-only mode khi chỉ cần nghiên cứu và không sửa source.
|
|
133
|
+
Nên mở session mới cho việc mới; resume thì quay lại đúng session cũ theo name/id.
|
|
133
134
|
|
|
134
135
|
Muốn chạy nhiều agent song song thì gõ `herdr` thay vì `pi`, rồi mở mỗi pane một vai: implement, review read-only, verify, notes. Herdr chỉ điều phối terminal/session, không phải security boundary — gate vẫn nằm ở Pi extension và OAuth vẫn `/login` trong Pi. Chi tiết: [herdr-workflow.md](herdr-workflow.md).
|
|
135
136
|
|
|
136
137
|
| Gõ | Khi nào |
|
|
137
138
|
|---|---|
|
|
138
|
-
|
|
|
139
|
-
|
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
| `/workflow plan <mục tiêu>` | Muốn có plan trước khi đụng code. |
|
|
143
|
-
| `/workflow review current diff` | Review việc vừa làm. |
|
|
139
|
+
| `<việc cần làm>` | Đã rõ, làm luôn — nói bằng lời thường. |
|
|
140
|
+
| `<việc> … chỉ đọc, không sửa` | Scout/audit, map payment/auth/BE contract. |
|
|
141
|
+
| `Chưa sửa, lập plan cho <mục tiêu>` | Muốn có plan trước khi đụng code. |
|
|
142
|
+
| `Review diff hiện tại` | Review việc vừa làm. |
|
|
144
143
|
| `/name <task/session name>` | Đặt/đổi tên session để resume và report dễ đối chiếu. |
|
|
145
144
|
| `/usage logs` | Xem các capture khi test/build output quá dài và Pi chỉ hiện preview. |
|
|
146
|
-
| `/task-preflight
|
|
147
|
-
| `/piagent-status` | Xem
|
|
145
|
+
| `/task-preflight <việc>` | Xem context và shadow route deterministic trước khi giao việc, không gọi model. |
|
|
146
|
+
| `/piagent-status` | Xem profile, guard, runtime và model đã xác thực. |
|
|
148
147
|
| `/usage efficiency` | Xem context efficiency và task metrics có nguồn; giá trị không đo được là `null`. |
|
|
149
|
-
| `/
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
| `/
|
|
148
|
+
| `/profile be-readonly-fe` rồi nói việc | Backend read-only, làm FE. |
|
|
149
|
+
| `Commit <các file> với message …` | Commit local; không push. |
|
|
150
|
+
| `Tạo draft PR …` | Tạo PR; guard hỏi xác nhận trước khi push. |
|
|
151
|
+
| `/new` | Session đang nặng hoặc tràn context: mở session mới rồi nói lại việc. |
|
|
153
152
|
|
|
154
|
-
|
|
153
|
+
Gõ `/` trong Pi để xem command hiện có. Alias `/context-index`, `/logs` vẫn chạy. Giải thích từng lệnh: [command-reference-vietnamese.md](command-reference-vietnamese.md). Các workflow ép shape rõ (`/parallel-review`, `/review-loop`, `/parallel-research`, `/parallel-context-build`): [subagents-and-multiagent.md](subagents-and-multiagent.md). Runtime gate tools và cách agent tự dùng chúng: [operator-manual-vietnamese.md](operator-manual-vietnamese.md).
|
|
155
154
|
|
|
156
155
|
## Việc user vẫn phải làm thủ công
|
|
157
156
|
|
|
158
157
|
- Login OAuth lần đầu trong browser.
|
|
159
158
|
- Chọn provider/model intended cho project.
|
|
160
|
-
-
|
|
159
|
+
- Nhờ agent onboard lần đầu để tạo `.pi/project-context.md` và `.pi/context-index.json`.
|
|
161
160
|
- Chạy `/memory` nếu muốn kiểm tra hoặc dùng project memory.
|
|
162
161
|
- Approve project trust nếu Pi hỏi. Sau khi hiểu rõ repo, có thể dùng `piagent-auto` hoặc Pi native `--approve` cho từng lần chạy.
|
|
163
162
|
- Approve khi extension guard hỏi destructive/high-risk action.
|
|
@@ -7,6 +7,10 @@ Pi Agent Platform uses explicit release sources for team rollout. Personal machi
|
|
|
7
7
|
|
|
8
8
|
This file is the canonical install, update, rollback, and release checklist. Other docs link here instead of maintaining a second release procedure.
|
|
9
9
|
|
|
10
|
+
## v1.8.0 model-family boundary
|
|
11
|
+
|
|
12
|
+
Pi 0.87.1 adds authenticated GPT-6 Astra, Sol and Luna choices. This release updates the SDK pin, new-session defaults and opt-in routing map, while keeping explicit model pins, prior task state and the frozen 5.6 benchmark evidence intact. Compatibility is checked without paid provider turns. The 108-session v1.7.1 result does not measure GPT-6 quality, latency or token use; a new comparative claim needs a separately approved, paired measurement.
|
|
13
|
+
|
|
10
14
|
## v1.7.1 release boundary
|
|
11
15
|
|
|
12
16
|
The operator closed the paid benchmark cycle on 2026-09-22. This release uses
|
|
@@ -32,12 +36,12 @@ ordinary `release-defaults` treatment.
|
|
|
32
36
|
|
|
33
37
|
## Supported runtime matrix
|
|
34
38
|
|
|
35
|
-
All supported environments require Node.js `>=22.19.0` and Pi Coding Agent `0.
|
|
39
|
+
All supported environments require Node.js `>=22.19.0` and Pi Coding Agent `0.87.1`. The Pi host is installed as a Node CLI; Pi Agent Platform still defines its own release matrix because the terminal helpers and shell policy rely on Bash/POSIX behavior.
|
|
36
40
|
|
|
37
|
-
| Surface | Status for v1.
|
|
41
|
+
| Surface | Status for v1.8.0 | Rollout guidance |
|
|
38
42
|
|---|---|---|
|
|
39
|
-
| macOS Apple Silicon (`darwin/arm64`) + Bash |
|
|
40
|
-
| Linux x64 + Bash |
|
|
43
|
+
| macOS Apple Silicon (`darwin/arm64`) + Bash | Local compatibility and browser checks passed; full PR/tag gate required. | Roll out after the v1.8.0 release gate passes. |
|
|
44
|
+
| Linux x64 + Bash | Full GitHub Actions PR/tag gate required. | Roll out after the v1.8.0 release gate passes. |
|
|
41
45
|
| macOS Intel (`darwin/x64`) + Bash | Supported target; not currently a dedicated release-gate runner. | Run `piagent-doctor` plus the target project's smoke/verify suite before broad rollout. |
|
|
42
46
|
| Linux ARM64 + Bash | Supported target; not currently a dedicated release-gate runner. | Run `piagent-doctor` plus the target project's smoke/verify suite before broad rollout. |
|
|
43
47
|
| Native Windows x64/ARM64 | Not supported for team rollout in this release. | Node is available on Windows, but platform helper scripts and shell parsing assume Bash/POSIX semantics. Use a verified macOS/Linux surface for release-critical work. |
|
|
@@ -129,7 +133,7 @@ These three components are versioned independently. A full install, update, or r
|
|
|
129
133
|
|
|
130
134
|
| Channel | Source shape | Mutability | Use when |
|
|
131
135
|
|---|---|---:|---|
|
|
132
|
-
| `stable` | `git:github.com/Vt-mmm/piagent@<resolved-commit-sha>` from `v1.
|
|
136
|
+
| `stable` | `git:github.com/Vt-mmm/piagent@<resolved-commit-sha>` from `v1.8.0` | Fixed after resolution | Default for team rollout. |
|
|
133
137
|
| `exact` | Tag, reviewed commit, or a tag resolved with `--resolve-tag` | Fixed when using a commit SHA | Pi-package-only roll forward, rollback, or reproduction. |
|
|
134
138
|
| `dev` | `git:github.com/Vt-mmm/piagent` | Moving | Personal machine or sandbox only. |
|
|
135
139
|
| `local` | `/path/to/piagent` | Local workspace | Platform development and dry-run validation. |
|
|
@@ -148,8 +152,8 @@ Use this flow when the team needs both terminal commands and the Pi package:
|
|
|
148
152
|
|
|
149
153
|
```bash
|
|
150
154
|
node --version # >= 22.19.0
|
|
151
|
-
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
152
|
-
npm install -g --ignore-scripts @piagent/platform@1.
|
|
155
|
+
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.87.1
|
|
156
|
+
npm install -g --ignore-scripts @piagent/platform@1.9.0
|
|
153
157
|
piagent-install --stable --dry-run
|
|
154
158
|
piagent-install --stable
|
|
155
159
|
```
|
|
@@ -157,8 +161,8 @@ piagent-install --stable
|
|
|
157
161
|
The stable preview and apply output includes:
|
|
158
162
|
|
|
159
163
|
```text
|
|
160
|
-
currentRelease: v1.
|
|
161
|
-
tag: v1.
|
|
164
|
+
currentRelease: v1.8.0 (helper package version)
|
|
165
|
+
tag: v1.8.0
|
|
162
166
|
resolvedCommit: <40-char-sha>
|
|
163
167
|
source: git:github.com/Vt-mmm/piagent@<40-char-sha>
|
|
164
168
|
```
|
|
@@ -175,7 +179,7 @@ bash scripts/install-global.sh --stable
|
|
|
175
179
|
Use this only when terminal commands are not needed:
|
|
176
180
|
|
|
177
181
|
```bash
|
|
178
|
-
pi install git:github.com/Vt-mmm/piagent@v1.
|
|
182
|
+
pi install git:github.com/Vt-mmm/piagent@v1.9.0
|
|
179
183
|
```
|
|
180
184
|
|
|
181
185
|
Direct `pi install` does not create `piagent-*` commands on `PATH`.
|
|
@@ -240,7 +244,7 @@ Running it from a git checkout is refused rather than replacing that checkout's
|
|
|
240
244
|
The same sequence by hand, which must keep this order because `piagent-install` fails against a host that does not match the version it pins and does not install one itself:
|
|
241
245
|
|
|
242
246
|
```bash
|
|
243
|
-
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.
|
|
247
|
+
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.87.1
|
|
244
248
|
npm install -g --ignore-scripts @piagent/platform@X.Y.Z
|
|
245
249
|
piagent-install --stable --dry-run
|
|
246
250
|
piagent-install --stable
|
|
@@ -471,4 +475,5 @@ Re-running the workflow from a branch instead skips publishing, because the publ
|
|
|
471
475
|
- Do not publish local trust files, OAuth tokens, `auth.json`, sessions, caches, or `.env` files.
|
|
472
476
|
- Review the resolved commit SHA before rollout; tag resolution improves reproducibility but is not signed package provenance by itself.
|
|
473
477
|
- `npm audit --audit-level=high` covers this repository's helper dependency tree. `npm run audit:runtime` separately builds the exact optional Pi host and pinned add-on dependency tree and blocks unaccepted moderate, high, or critical findings so stale or permissive peer resolution cannot hide deployed runtime risk.
|
|
478
|
+
- The only accepted runtime findings are listed in `scripts/runtime-advisory-exceptions.json`. Each entry is an owner decision for one advisory at one package path, with a reason and an end day at most 60 days after the decision. The same advisory elsewhere, any other advisory, and an expired entry still block, and the audit prints every accepted entry. For 1.9.0 (decided 2026-10-02, ends 2026-10-31) these are three denial-of-service advisories in `brace-expansion` 5.0.9, which every published Pi host pins through its npm-shrinkwrap. Remove them when a Pi host carries `brace-expansion` 5.0.12 or later.
|
|
474
479
|
- Run doctor after install, update, or rollback so package source, project profile, protected paths, and share policy are checked together.
|
|
@@ -16,17 +16,17 @@ Numbers below are the authors' reported results under their own models, datasets
|
|
|
16
16
|
|
|
17
17
|
| Source | Evidence or mechanism | What Piagent can transfer; limitation |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
19
|
+
| [Agent–computer interface study, NeurIPS 2024, v3](https://arxiv.org/abs/2405.15793v3) | A purpose-built agent-computer interface; reported pass@1 of 12.5% on SWE-bench and 87.7% on HumanEvalFix. | Treat tool feedback and interface design as measurable interventions. Do not assume its 2024 interface or scores transfer to another model. |
|
|
20
|
+
| [Phase-separated repair without an agent loop, 2024, v2](https://arxiv.org/abs/2407.01489v2) | Localization, repair, and validation as separate phases; reported 32.00% (96 fixes) on SWE-bench Lite at $0.70 per problem. | Keep control flow inspectable and compare against a simpler baseline. More orchestration is not inherently better. Different benchmark from the interface study's full SWE-bench result. |
|
|
21
21
|
| [EvalPlus, 2023, v3](https://arxiv.org/abs/2305.01210v3) | Mutation- and LLM-generated test inputs; HumanEval+ expands tests 80-fold. Across 26 models, the paper reports pass@k reductions up to 19.3–28.9% and changed rankings. | Strengthen independent tests and measure false acceptance, not merely acceptance rate. More cases are useful only with a trustworthy oracle and relevant partitions. |
|
|
22
22
|
| [CEGAR, Clarke et al., 2000](https://web.stanford.edu/class/cs357/cegar.pdf) | Distinguish real counterexamples from artifacts of an abstraction; refine the abstraction for spurious traces. | Preserve `unknown` and route verifier limitations away from blind source repair. The paper's guarantees concern its finite-state model/specification setting, not arbitrary JavaScript or finite random tests. |
|
|
23
23
|
| [fast-check model-based testing](https://fast-check.dev/docs/advanced/model-based-testing/) | Generate stateful command sequences, compare with a simpler model, shrink failures, replay with seed/path. | Exercise verification/recovery histories and save minimal counterexamples. The reference model must not copy the implementation's logic. |
|
|
24
24
|
| [Anthropic agent eval guidance, 2026-01-09](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) | Separate transcript from final environment outcome, calibrate graders, validate tasks with reference solutions, distinguish pass@k from all-trial consistency. | Audit both false positives and false negatives; retain outcome and process metrics separately. This is engineering guidance, not a controlled estimate of Piagent improvement. |
|
|
25
25
|
| [AgentLens, 2026, v3](https://arxiv.org/abs/2605.12925v3) | 2,614 trajectories, eight model backends, 60 SWE-bench Verified tasks; a 1,815-trajectory subset over 47 tasks. Among passing trajectories in that subset, 10.7% were classified as Lucky Passes. | Measure blind retries, regression cycles, and verification ordering in addition to final pass rate. This is a recent preprint; its labels are not proof that a specific Piagent run is bad. |
|
|
26
26
|
| [Pi source README](https://github.com/earendil-works/pi/tree/main/packages/coding-agent) | Minimal extensible harness; default read/write/edit/bash tools, extension-based workflow customization. | Keep reusable enforcement in the extension while letting the model choose implementation structure. Minimalism does not replace project authorization or verification. |
|
|
27
|
-
|
|
|
28
|
-
| [
|
|
29
|
-
|
|
|
27
|
+
| Lean bash-only agent baseline | Bash-only actions, linear message history, independent subprocess execution. | Use an observable lean baseline and avoid hidden recovery state. Do not transplant unrestricted shell access into Piagent's protected-path policy. |
|
|
28
|
+
| [Agent SDK architecture paper, v2](https://arxiv.org/abs/2511.03690v2) | Separate SDK, tools, workspaces, and server; immutable/stateless components and portable execution. | Separate assessment from execution and UI projection; keep backend failures distinct from model failures. No numerical reduction is inferred from the abstract's qualitative production claim. |
|
|
29
|
+
| Workflow-graph checkpointing | Checkpoints and pending writes preserve completed steps; replay after a checkpoint can re-execute external calls. | Store verification receipts and resume only valid bound work. Replay is not automatically free or side-effect-free; preserve the single paid-attempt ledger. |
|
|
30
30
|
| [OpenAI evaluation guidance](https://developers.openai.com/api/docs/guides/evaluation-best-practices) | Task-specific evaluations, production failure datasets, automated scoring calibrated against human judgment. | Maintain a labelled grader audit set and separate quality, safety, and tool-selection checks. Do not add model judges as an uncalibrated completion authority. |
|
|
31
31
|
|
|
32
32
|
[OpenAI's lean-prompt guidance](https://developers.openai.com/api/docs/guides/latest-model#favor-leaner-prompts) reports an internal sample with roughly 10–15% higher eval scores, 41–66% fewer total tokens, and 33–67% lower cost. The page does not establish an equivalent Piagent workload or a fresh-token saving. This is a hypothesis for a later isolated ablation, not a reason to change prompts during a frozen benchmark or advertise those numbers.
|
|
@@ -64,9 +64,9 @@ The accompanying architecture decision and evaluation protocol define how these
|
|
|
64
64
|
|
|
65
65
|
## Follow-up: stateful recovery and replay after admission integration
|
|
66
66
|
|
|
67
|
-
Primary documentation was rechecked on 2026-08-30.
|
|
67
|
+
Primary documentation was rechecked on 2026-08-30. Current workflow-graph checkpointing documentation distinguishes full step checkpoints from completed per-node writes, and explicitly states that replay after a selected checkpoint re-executes later model/API calls. It also distinguishes exit-only, asynchronous, and synchronous durability. Piagent therefore cannot infer “exactly once” from the presence of a checkpoint: completed evidence reuse, pending-attempt reconciliation, and paid-attempt accounting need separate tests.
|
|
68
68
|
|
|
69
|
-
The
|
|
69
|
+
The same documentation's fault-tolerance guidance separates retry policy, per-attempt timeout, and exhausted-error handling. This supports keeping worker failure distinct from a source counterexample. It does not justify importing that library's default retry behavior or raising Piagent's existing ceilings. Our next recovery work must retain the actual executor/unsupported reason instead of collapsing every unavailable admission into a generic missing-proof diagnostic.
|
|
70
70
|
|
|
71
71
|
[fast-check's model-based guide](https://fast-check.dev/docs/advanced/model-based-testing/) compares command histories against a simplified model and warns against reproducing the implementation as the oracle. It provides shrinking plus seed/path/replay-path reproduction. The transferable test design is a small abstract authority/attempt model exercised by histories such as reserve → host death → reopen → reconcile → retry, not merely isolated method assertions. No fast-check dependency or general stateful adapter was installed by this checkpoint.
|
|
72
72
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Runtime harness standard
|
|
2
2
|
<!-- language: vi; english-index: docs-site/content/en/runtime.html -->
|
|
3
3
|
|
|
4
|
+
> **Hồ sơ thiết kế trước bản 1.9.0.** Task contract, command workflow (`/workflow`, `/task`, `/fresh`, `/onboard`) và các tool task/trace/verify mô tả ở đây đã bỏ ngày 2026-09-30; session giờ là freeform và guard chỉ còn kiểm tra path, quyền, xác nhận, context budget và edit trên bản đọc cũ. Tài liệu được giữ để tra cứu lịch sử. Hành vi hiện tại: [README](../README.vi.md).
|
|
5
|
+
|
|
4
6
|
## Mục tiêu
|
|
5
7
|
|
|
6
8
|
Runtime harness là “máy vận hành task” dùng chung cho nhiều project:
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Runtime policy design
|
|
2
2
|
<!-- language: en -->
|
|
3
3
|
|
|
4
|
+
> **Design record from before 1.9.0.** The task contract, workflow commands (`/workflow`, `/task`, `/fresh`, `/onboard`) and task/trace/verify tools described here were retired on 2026-09-30; sessions are freeform and the guard keeps its path, permission, confirmation, context-budget and stale-edit checks. Kept for reference. Current behavior: [README](../README.md).
|
|
5
|
+
|
|
4
6
|
## Mục tiêu
|
|
5
7
|
|
|
6
8
|
Runtime policy là lớp kiểm soát cách agent đọc context, gọi tool, sửa source, chạy verify, và kết thúc task. Tài liệu này mô tả thiết kế trung lập của Pi Agent Platform, không phụ thuộc vào một project cụ thể.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Runtime quality baseline
|
|
2
2
|
<!-- language: vi; english-index: docs-site/content/en/runtime.html -->
|
|
3
3
|
|
|
4
|
+
> **Hồ sơ thiết kế trước bản 1.9.0.** Task contract, command workflow (`/workflow`, `/task`, `/fresh`, `/onboard`) và các tool task/trace/verify mô tả ở đây đã bỏ ngày 2026-09-30; session giờ là freeform và guard chỉ còn kiểm tra path, quyền, xác nhận, context budget và edit trên bản đọc cũ. Tài liệu được giữ để tra cứu lịch sử. Hành vi hiện tại: [README](../README.vi.md).
|
|
5
|
+
|
|
4
6
|
## Mục tiêu
|
|
5
7
|
|
|
6
8
|
Runtime quality baseline định nghĩa bộ kiểm soát để Pi Agent Platform có thể chạy task một cách có kỷ luật cho solo, internal team, và public package.
|
|
@@ -67,7 +67,7 @@ Core decisions:
|
|
|
67
67
|
Daily implementation:
|
|
68
68
|
|
|
69
69
|
```text
|
|
70
|
-
|
|
70
|
+
Implement <task>.
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
The parent performs review, research, planning, implementation, and verification directly. A helper dispatch must expose its runtime estimate and fresh read-only contract; otherwise the telemetry outcome is `skip`.
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
# Subagents và multi-agent workflow
|
|
2
2
|
<!-- language: vi; english-index: docs-site/content/en/workflows.html -->
|
|
3
3
|
|
|
4
|
-
##
|
|
4
|
+
## Bản harness local hiện tại
|
|
5
|
+
|
|
6
|
+
Company runtime dùng hai vai trò nghiên cứu/review do Studio cấp, token theo lượt và tool worker cách ly. Main không phải chứng minh tiết kiệm 30% hoặc hai nhánh độc lập; reviewer có thể kiểm tra patch main vừa tạo. Member chỉ import trong Watch rồi dùng Auto. Cấu hình các package cá nhân bên dưới không cấp quyền chạy trong company runtime.
|
|
7
|
+
|
|
8
|
+
Phần dưới mô tả tích hợp package cá nhân của bản 1.8.0 trước khi đơn giản hóa; những đoạn về workflow/task contract và ngưỡng 30% đã được thay thế trong bản local. Xem [bằng chứng local](managed-local-acceptance.md).
|
|
9
|
+
|
|
10
|
+
## Tài liệu package cá nhân trước đây
|
|
5
11
|
|
|
6
12
|
Pi core không có subagents built-in. Theo design của Pi, subagents là extension/package. Platform này dùng `pi-subagents` làm subagent runtime vì nó hỗ trợ:
|
|
7
13
|
|
|
@@ -149,11 +155,7 @@ Giải nghĩa nhanh:
|
|
|
149
155
|
| `/parallel` | Chạy nhiều agent độc lập | Tốt cho read-only scout/review/test-gap analysis. |
|
|
150
156
|
| `/chain` | Chạy tuần tự | Output agent trước làm input agent sau qua `{previous}`. |
|
|
151
157
|
|
|
152
|
-
Nếu cần bản tổng hợp cho team mới
|
|
153
|
-
|
|
154
|
-
```text
|
|
155
|
-
/commands subagents
|
|
156
|
-
```
|
|
158
|
+
Nếu cần bản tổng hợp cho team mới, xem [command reference](command-reference-vietnamese.md#command-subagent).
|
|
157
159
|
|
|
158
160
|
## Gọi subagent tự nhiên
|
|
159
161
|
|
|
@@ -169,10 +171,10 @@ Run a review loop on this change until reviewers stop finding fixes worth doing,
|
|
|
169
171
|
Run parallel research: external docs, local code context, and practical tradeoffs.
|
|
170
172
|
```
|
|
171
173
|
|
|
172
|
-
Với workflow platform, còn có thể chỉ
|
|
174
|
+
Với workflow platform, còn có thể chỉ nói:
|
|
173
175
|
|
|
174
176
|
```text
|
|
175
|
-
|
|
177
|
+
Implement <task lớn>.
|
|
176
178
|
```
|
|
177
179
|
|
|
178
180
|
Parent agent sẽ tự quyết định:
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Task Implementation Contract v2
|
|
2
2
|
<!-- language: en -->
|
|
3
3
|
|
|
4
|
+
> **Design record from before 1.9.0.** The task contract, workflow commands (`/workflow`, `/task`, `/fresh`, `/onboard`) and task/trace/verify tools described here were retired on 2026-09-30; sessions are freeform and the guard keeps its path, permission, confirmation, context-budget and stale-edit checks. Kept for reference. Current behavior: [README](../README.md).
|
|
5
|
+
|
|
4
6
|
## Muc tieu
|
|
5
7
|
|
|
6
8
|
Contract la state machine cuc bo giup Pi chung minh mot task da doc gi, duoc sua
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Vong doi task trong Pi Agent Platform
|
|
2
2
|
<!-- language: vi; english-index: docs-site/content/en/runtime.html -->
|
|
3
3
|
|
|
4
|
+
> **Hồ sơ thiết kế trước bản 1.9.0.** Task contract, command workflow (`/workflow`, `/task`, `/fresh`, `/onboard`) và các tool task/trace/verify mô tả ở đây đã bỏ ngày 2026-09-30; session giờ là freeform và guard chỉ còn kiểm tra path, quyền, xác nhận, context budget và edit trên bản đọc cũ. Tài liệu được giữ để tra cứu lịch sử. Hành vi hiện tại: [README](../README.vi.md).
|
|
5
|
+
|
|
4
6
|
## Muc tieu
|
|
5
7
|
|
|
6
8
|
Tu `v1.2.11`, mot source task duoc quan ly theo chuoi khép kín:
|