chore(openspec): state the index symlink refusal in the index-resolution spec

Đang mở Phù hợp với người mới
#377 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
74/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc openspec/specs/index-resolution/spec.md và so sánh quá trình duyệt theo kết quả khớp đầu tiên với hành vi từ chối được mô tả trong issue và được phát hành trong #374. Dùng /opsx:propose để thêm các yêu cầu và kịch bản cho đích bên ngoài, liên kết hỏng, phương án dự phòng linked worktree và anchor nghiêm ngặt; thêm dòng Issue: vào proposal.md. Hoàn tất khi đặc tả bao quát mọi lệnh đọc hoặc tạo chỉ mục cùng lỗi khởi động của codegraph serve, khớp với #374.

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

Mô tả

area:query chore needs-triage spec-needed
What kind of chore?

Documentation

What needs doing?

Add requirements and scenarios to openspec/specs/index-resolution/spec.md for the index symlink refusal that #374 ships. This is an OpenSpec proposal with no code change. Run /opsx:propose and add the Issue: line to proposal.md with this issue's number.

The spec still says to use the first .codegraph found on the upward walk. It has no requirement or scenario for these cases:

  • the refusal of a .codegraph or .codegraph/store that resolves outside the directory holding .codegraph
  • the dangling-link case
  • the linked-worktree fallback case
  • the strict anchor: a subdirectory .codegraph that links to the repository root's index is refused

The new requirement must match the behavior in #374. Every command that reads or builds the index refuses such a path. The error names the link, its target and the next step. codegraph serve stops at startup with that error.

Why now?

PR #374 refuses some index links, but the spec still describes the old first-match walk. Without a scenario, no test can trace the refusal to the spec. The impact lane of the suite review of #374 found this gap as IMPACT-1.

Related: #372, #374, #297.

Does this touch anything load-bearing?
  • The release pipeline (release.yml, .goreleaser.yaml, signing)
  • The upgrade identity (internal/upgrade/verify.go)
  • The perf baseline (tools/bench/baseline.json)
  • The graph schema / meta-key layout
  • None of these
Before submitting
  • I searched existing issues and this is not a duplicate
Ngôn ngữ chính
Go
Star
0
Fork
0
Merge trung bình
7 giờ 42 phút
Pull request đã merge (30 ngày)
111

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của seanb4t/codegraph-go

Tất cả issue của seanb4t/codegraph-go

Issue tương tự

Thêm issue về Go

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.