Agents API 1.0: exit criteria
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 6/100
Hướng nghiên cứu
This is a release tracking issue, not a single task, so start by reading the linked issues and pull requests (#486, #489, #587, #560, #526) and the bundled-copy loader that the issue says tokenizes files. Done means every checkbox in the exit criteria is closed or explicitly deferred to 1.1, with the contract inventory published and the smoke suite and PHPStan green on main.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
Ship Agents API 1.0: a stable substrate that consuming plugins (Data Machine first) can pin to a tagged version and bundle safely next to other plugins.
1.0 freezes the public contract: interfaces, abilities and their schemas, hook names, persisted shapes, and loader behavior. Anything that changes a contract lands before 1.0; everything else goes to 1.1.
Exit criteria
1. Security
- #486: unify package artifact-id normalization and reject path traversal (open and mergeable since Aug 3)
- #489 (#594, v0.18.0): derive the pending-action resolver identity from the authenticated execution principal instead of a caller-supplied string
- #587:
agents/ability-calldispatches only abilities that opt into an external surface
2. Loading and packaging
- Newest bundled copy wins (#595 with #560, v0.18.0). Today the first loaded copy registers and later copies tokenize every file to backfill missing symbols, which can mix classes from different versions. Adopt a version registry like Action Scheduler's: every bundled copy registers its version, and only the newest one loads.
- #560: lazy loading through the #526 classmap instead of requiring ~240 files on every request
- Composer package name, repository, and release tags line up, so consumers can require
^1.0instead ofdev-main
3. Contracts to settle before the freeze
- #549: closed set of run lifecycle event types
- #550: run status reports what a blocked run is waiting for
- #551: stable item identity shared by run events and stored transcripts
- #552: resumable event streams (event ids and cursors)
- #325:
session_ownerin theWP_Agent_Conversation_Storeinterface - #407: queryable product scope for conversation sessions
- #564: readonly and destructive annotations on
agents/*abilities - #273: structured pending-action confirmations (decide: in 1.0, or additive in 1.1)
- #77: settle convergence with the parallel extraction, so this repository is the canonical substrate at 1.0
4. Absorb consumer workarounds
These are gaps Data Machine currently covers itself. Each should become substrate behavior so consumers can delete their copies.
- Routine scheduling locks: #588 and #589 fixed the stuck reconcile lock, but neither has been released. Data Machine pins v0.16.1 and keeps its own
FlowScheduleReconciliationLock(Extra-Chill/data-machine#3495). - Runtime (client-executed) tool lifecycle: the default chat handler suspends client tools (#512), but timeout scheduling, continuation, and recovery are reimplemented by consumers (about 1,100 lines in Data Machine's
conversation-loop.php). Agents API owns the lifecycle; consumers supply only storage throughWP_Agent_Runtime_Tool_Request_Store. - Packages scope: decide whether
Packagesis the canonical bundle format (consumers register artifact types only) or a hashing/adoption primitive only. Data Machine currently keeps a parallel manifest, schema, directory model, and rebase layer (Extra-Chill/data-machine#3459). - #277: sandbox principal, runtime tools, and package import contracts that WP Codebox compensates for today
5. Release
- Contract inventory published in docs: interfaces, abilities with their schemas, hooks, persisted option and table shapes
- Smoke suite and PHPStan green on main
- Data Machine pinned to the 1.0 tag, with its workarounds from section 4 deleted
Deferred to 1.1 (additive)
- #584: first-run timestamp anchor for interval routines
- #448: conversation session read-state ability
- #94: consume the Abilities API lifecycle filters once they ship in core
- #326: align the guidelines substrate with the upstream Knowledge rename (revisit if core lands the rename before 1.0)
AI disclosure: drafted by Claude (Anthropic) running in the Pi coding agent through a Roadie session at the maintainer's direction. The agent audited open issues and PRs, the loader, and Data Machine's use of the substrate on current main; the maintainer reviews and owns the scope.
- Ngôn ngữ chính
- PHP
- Star
- 36
- Fork
- 10
- Merge trung bình
- 14 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/agents-api
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Automattic/agents-api#564 ·
-
ability-search: expose full input schemas (optional fields) for selected abilitiesCó thể đã có người làm @chubes4 đã nhận 4 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Automattic/agents-api#592 · 2 bình luận ·
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 48/100
Automattic/agents-api#587 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Automattic/agents-api#584 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Automattic/agents-api#552 ·
Tất cả issue của Automattic/agents-api
Issue tương tự
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpĐang mởenhancement feature: settings good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
nextcloud/integration_openai#480 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
omeka/plugin-Contribution#84 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
recca0120/vscode-phpunit#620 ·
Maintainer thường phản hồi trong vòng 1 ngày