Skip to content

Update go-v1 driver to spec 0005 vendored exceptions #28

Description

@ivanopcode

Context

curator-spec dce6643 (decisions/0005-vendored-go-boundary-relaxation.md + profiles/manager.md:2.3) documents four vendored exceptions for go-v1 closed pipeline. curator:rc3 124654a (internal/godriver/graph.go) implements narrow allowlists; skill-project-management vendoring x/sys, coder/websocket masks and generators now passes curator skill check + install.

cocoaskills:main (d2db86c, src/csk/builds/go_v1.py:852/1011) still enforces strict profile:

  • SFiles exact reject
  • //go:cgo_import_dynamic exact reject
  • //go:generate as generator
  • Root == GOROOT strict

Proposal

Port the same four vendored exceptions as узкие allowlists (not broad if false):

  1. GOROOT/src/vendor packages with ImportPath prefix vendor/ and Root=="" accepted as trusted when Standard==true && Goroot==true and directory below GOROOT (Go 1.25 quirk)
  2. SFiles allowed only for vendored non-standard packages with no CgoFiles/CFiles/etc/host objects, where every SFiles entry is regular file below build root and package is hashed via curator-build-source-v1 (pure Go assembly, e.g. coder/websocket masks)
  3. //go:cgo_import_dynamic remains rejected except allowlist golang.org/x/sys and golang.org/x/sys/* (zsyscall trampolines)
  4. //go:generate in GoFiles is inert — managers MUST NOT run generators; presence in vendored GoFiles does not fail preflight (go build -mod=vendor never executes it)

Refs: curator-spec:dce6643, curator:124654a / v0.14.0-rc.3, cocoaskills:main src/csk/builds/go_v1.py:784/852/1011. Verify with csk skill check and cached curator install.

Security: exceptions do not add execution during install; artifact never executed, curator-build-source-v1 binds every vendored file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions