github / github/spec-kit

[Bug] Local bundle install can advance records without updating existing components

Đang mở
#4,434 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug-assess bug-fix severity-medium triage-must-have
Ngôn ngữ chính
Python
Star
137k
Fork
12.3k
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
159

Mô tả

### Spec Kit version

Reproduced with `specify 1.0.4` on Windows.

### Reproduction

1. Install a bundle version whose workflow, two extensions, and preset are already present in an initialized project.
2. Point a clean local release directory at a newer version of the same bundle and components.
3. Run:

```powershell
specify bundle install C:\path\to\new-release\bundle.yml --offline --integration codex
```

The command reports success, for example:

```text
Installed 'program-kit' (0 added, 4 already present).
```

It advances `.specify/bundle-records.json` and its contributed-component versions to the new bundle version, but the installed workflow/registry, extension manifests, and preset/registry can remain at the old version. A subsequent component tool can therefore appear current while executing old code.

When components were installed individually before the bundle, the successful local bundle install can instead create a record without the expected contributed-component entries because every primitive is classified as already present.

### Expected behavior

Bundle installation/update should be transactional across its record and primitive installations:

- update every component to the resolved version before advancing the bundle record;
- validate installed manifests and registries against the resolved bundle before returning success;
- retain the previous coherent record or fail if a primitive update fails; and
- serialize writes when multiple extensions share registry/configuration files.

At minimum, an existing component with a different version must not be treated as satisfied solely because its ID is present.

### Impact

The project records a coherent new bundle version while continuing to execute old extension code. In the observed consumer, managed synchronization misleadingly reported all files unchanged until each workflow, extension, and preset was explicitly reinstalled in sequence.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start at the bundle install path handling the offline command and reproduce the update with an existing workflow, extensions, and preset. Inspect how .specify/bundle-records.json and primitive manifests or registries are written; done means version-mismatched components are updated before the record advances, failures preserve the prior coherent record, and shared registry writes are serialized.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.