feat(personal-kits): immutable lineage, structured overlays and conflict-safe foundation rebase
Maintainer thường phản hồi trong vòng 1 ngày
@mrgoonie đang làm issue này rồi.
Từ ngày 14/10/2026.
Đá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
- 18/100
Hướng nghiên cứu
Start by reading packages/contracts, the schema and migration conventions, and the linked SkillX issues #31, #34, and #35 plus AgentKit #2275. The issue proposes beginning with manifest and lineage validation and a deterministic resolver and three-way merge backed by golden fixtures, then adding persistence and APIs in phases. Done means the acceptance criteria pass, including conflict blocking, reproducible locked sync, privacy and license enforcement, and backward compatibility.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Parent / dependencies
Child of SkillX #35; tracked by #31. Depends on immutable full-tree releases from #34 / #54, and cross-repo AgentKit #2275. AK local store/composer is owned in AgentKit #2274; avoid a duplicated Go installer.
Objective
Support cloud-hosted personal kits that inherit immutable foundation packages (especially AgentKit) while allowing user-specific overlays, reproducible locked sync, controlled upstream rebase, semantic collision reporting and privacy/license-aware derivative publishing.
Data/semantics to specify
- Stable
@publisher/kit-namepersonal kit identity; exactextendsreference to upstream@agentkit/...release and base digest, not mutable latest; immutable kit revisions with optimistic concurrency (generation/ETag). - Explicit modes
extend(non-invasive extension points),override(intentional replacement with ownership), andfork(standalone derivative with lineage, no surprise auto-rebase). Preserve ancestry graph and reject cycles/multi-parent ambiguous resolution. - Structured overlays for known configurable metadata/recipes/references; deterministic include/exclude/exposure order. Free-form SKILL.md text uses three-way merge only when appropriate. NEVER blindly append Markdown from different origins or treat semantically conflicting instructions as clean.
- Three-way algorithm: B0 = old upstream, U0 = user's delta, B1 = new upstream, output candidate U1 on B1. Classify: clean disjoint, text overlap, deleted/renamed entrypoint, missing deps, permission/capability escalation, licensing change, modified user-local path, ambiguous precedence. Any security/semantic conflict fails closed; keep old effective revision usable until accepted.
- Concrete conflict presentation with hunks, provenance, base/new digest, a human-reviewed resolution record and re-eval marker. No LLM auto-accept. Deterministic algorithm first, optional agent-generated suggestion second.
- Canonical package/alias conflict: multiple packages can have same display name; runtime exposure must resolve to exactly one provider or reject before activation; no last-writer-wins.
- Versioned lockfile with exact package, release, digest, overlay revision, profile, runtime constraints, resolver/schema version. Machine B locked sync identical or explicit incompatibility. No absolute machine paths/secrets in cloud state.
- Private visibility by default; publisher, license and entitlement provenance inherited. Private or paid foundation derivatives may not be public exports merely because overlay is public; define permitted user-authored patch disclosure and source redistribution.
- Design API endpoints for
preview update,propose rebase,resolve conflict,publish revision,sync --locked, read-only diff. Preserve existingskillx usebehavior; generic SkillX installer planned in #35 may serve non-AK users and must not write AgentKit-owned paths.
Implementation and tests
- First implement manifest/lineage validators, migration and in-memory deterministic resolver/3-way merge with golden fixtures.
- Then persist immutable revisions/optimistic concurrency and conflict records; finally expose preview/apply APIs and CLI test helpers. Coordinate Go/TS schema fixture interop with AK #2275.
- Golden cases: disjoint patch, same hunk, rename/delete, dependency removed, new script permissions, two foundations share alias, cyclic kit, missing entitlement, yanked base, offline locked version, parallel edits, rollback after rebase fails; migration from existing registry records.
- Replay of lock produces same digests across machines; no session/user secrets in payload, no unauthorized public derivatives.
Agent implementation prompt
Read repo instructions, SkillX #31/#34/#35, packages/contracts, schema/migration conventions and AgentKit #2275. Prefer contracts and deterministic functions over AI-driven merging. Write migration and backward compatibility policy before modifying persistent storage. Implement test-first, phase-scoped PRs: (a) schema/golden fixtures (b) lineage/merge resolver (c) persistence/update preview/sync. Human approval is necessary before activating changes to remote scripts/capabilities or resolving conflicting author intent. Include a traceable conflict report and evidence-driven no-data-loss rollback test. Document privacy, license and entitlements as hard invariants.
Acceptance
- Foundation update preserves unmodified user overlays and exact old revision rollback.
- Conflicting changes block effective revision activation; users can inspect/resolve.
- Exact lockfile deterministically restores on second machine or fails with reason.
- Public derivation respects private/paid source license and entitlement.
- Concurrent kit edits detected, no silent overwrite, old
skillx useremains compatible.
- Ngôn ngữ chính
- TypeScript
- Star
- 186
- Fork
- 40
- Merge trung bình
- 10 giờ 12 phút
- Pull request đã merge (30 ngày)
- 16
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 nextlevelbuilder/skillx
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nextlevelbuilder/skillx#65 ·
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 68/100
nextlevelbuilder/skillx#63 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
nextlevelbuilder/skillx#49 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
nextlevelbuilder/skillx#28 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
nextlevelbuilder/skillx#27 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextlevelbuilder/skillx
Issue tương tự
-
afk-ok area:data-quality importer size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
enorm-labs/event-junkie#3301 ·
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 62/100
one-zero-eight/apply-bot#39 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bigbluebutton/bbb-ui-components-react#108 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area: app type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ExpidetGames/code-reviewer#308 ·
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 82/100
Maintainer thường phản hồi trong vòng 1 ngày