Skip to content

docs(spec): SPEC-007 linked (editable) sources - #70

Merged
nmccready merged 1 commit into
mainfrom
spec/007-linked-sources
Jul 7, 2026
Merged

docs(spec): SPEC-007 linked (editable) sources#70
nmccready merged 1 commit into
mainfrom
spec/007-linked-sources

Conversation

@nmccready-tars

Copy link
Copy Markdown
Contributor

Draft spec for issue #69 — an npm link / go mod replace mode for .agents/ artifacts.

Core decision (per Nick): paths are relative file: — never absolute — because sources.lock is git-tracked and an absolute /Users/... path breaks on clone. Symlinks are created relative too.

Design highlights

  • Reuses the existing Override struct (add link field, ⊕ pin_sha); upstream owner/repo stays in sources for identity/re-pin.
  • Two link modes: --link <path> <entry> (checkout you own) and bare --link <entry> (managed clone under .agents/.sources/, scanned once via SPEC-005).
  • pull/update skip the fetcher for links; index follows the symlink; detach freezes a link into a vendored copy.
  • Linked local checkouts are trusted by default (no per-sync quarantine); only remote first contact (managed clone) is scanned — matches the ClawHub supply-chain posture.

This PR is spec only — no implementation. Review the design here; implementation lands in a follow-up PR against #69.

Closes: none (tracking issue #69 stays open through implementation)

🤖 Generated with Claude Code

…for .agents artifacts

Relative file: scheme (never absolute — sources.lock is git-tracked), reuses
Override struct (add link field), symlink into live checkout, managed-clone
mode scanned once via SPEC-005, detach = freeze link into vendored copy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🤖 AI Code Review Complete

Review performed on changed files. Check inline comments for specific findings.

Severity Levels:

  • 🔴 Critical: Must fix (bugs, security, data loss)
  • 🟡 Warning: Should fix (performance, maintainability)
  • 🔵 Suggestion: Nice to have (style, alternatives)
  • Nit: Optional (cosmetic)

@nmccready
nmccready merged commit 13d53e7 into main Jul 7, 2026
6 checks passed
@nmccready
nmccready deleted the spec/007-linked-sources branch July 7, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants