Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 9 additions & 17 deletions .github/scripts/validate_repo_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ require_not_contains() {
echo "Validating root docs presence..."
[[ -f README.md ]] || fail "Missing README.md at repo root."
[[ -f AGENTS.md ]] || fail "Missing AGENTS.md at repo root."
[[ -f LICENSE ]] || fail "Missing PolyForm Noncommercial LICENSE."
[[ -f LICENSE-APACHE-2.0 ]] || fail "Missing historical Apache 2.0 license text."
[[ -f LICENSE ]] || fail "Missing Apache License 2.0 text."
[[ -f NOTICE ]] || fail "Missing NOTICE."
[[ -f COMMERCIAL-USE.md ]] || fail "Missing COMMERCIAL-USE.md."
[[ ! -f LICENSE-APACHE-2.0 ]] || fail "Historical Apache copy is redundant now that LICENSE is Apache 2.0."
[[ ! -f COMMERCIAL-USE.md ]] || fail "COMMERCIAL-USE.md is stale now that the public license is Apache 2.0."

echo "Validating compatibility pointer shape..."
[[ -f ".agents/plugins/marketplace.json" ]] || fail "Missing compatibility marketplace metadata."
Expand All @@ -48,12 +48,13 @@ require_contains "README.md" 'codex plugin marketplace add gaelic-ghost/apple-de
require_contains "README.md" 'codex plugin marketplace upgrade apple-dev-skills'
require_contains "README.md" 'That compatibility marketplace points at the Socket-hosted plugin payload through `.agents/plugins/marketplace.json`.'
require_contains "README.md" 'prefer the Socket entry: `apple-dev-skills@socket`'
require_contains "README.md" 'PolyForm Noncommercial License 1.0.0'
require_contains "README.md" 'Commercial use requires a separate written commercial license from Gale.'
require_contains "README.md" 'mail@galewilliams.com'
require_contains "README.md" 'LICENSE-APACHE-2.0'
require_contains "README.md" 'Apache License 2.0'
require_contains "README.md" '[LICENSE](./LICENSE)'
require_contains "README.md" '[NOTICE](./NOTICE)'
require_not_contains "README.md" 'install-plugin-to-socket'
require_not_contains "README.md" 'licensed under Apache 2.0'
require_not_contains "README.md" 'PolyForm Noncommercial'
require_not_contains "README.md" 'Commercial use requires'
require_not_contains "README.md" 'LICENSE-APACHE-2.0'

echo "Validating AGENTS contract..."
require_contains "AGENTS.md" 'This repository is a compatibility marketplace and README pointer'
Expand All @@ -66,13 +67,4 @@ require_contains "AGENTS.md" 'require reading the relevant Apple documentation b
require_contains "AGENTS.md" 'Keep `explore-apple-swift-docs` as the canonical docs-routing surface'
require_contains "AGENTS.md" "This repository no longer carries skill behavior or pytest-backed payload tests."

echo "Validating commercial-use contract..."
require_contains "COMMERCIAL-USE.md" "Commercial use requires a separate written commercial license"
require_contains "COMMERCIAL-USE.md" "mail@galewilliams.com"
require_contains "COMMERCIAL-USE.md" "contractor, consultant, freelancer"
require_contains "COMMERCIAL-USE.md" "using Apple Dev Skills to do work for an employer"
require_contains "COMMERCIAL-USE.md" "startup using Apple Dev Skills"
require_contains "COMMERCIAL-USE.md" "organization using Apple Dev Skills to provide services"
require_contains "COMMERCIAL-USE.md" "train, evaluate, benchmark, design, or improve"

echo "Apple Dev Skills compatibility repository docs are internally consistent."
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This file is the Apple Dev Skills compatibility-repo override. Follow the root `
- The public README should lead with `codex plugin marketplace add gaelic-ghost/socket` and `codex plugin marketplace upgrade socket` because Socket is the preferred catalog.
- Also document `codex plugin marketplace add gaelic-ghost/apple-dev-skills` and `codex plugin marketplace upgrade apple-dev-skills` for compatibility installs.
- Keep explicit refs scoped to pinned reproducible installs and manual local clone marketplace instructions scoped to development, unpublished testing, or fallback cases.
- Keep README license guidance aligned with Socket's current PolyForm Noncommercial and separate commercial licensing terms.
- Keep README license guidance aligned with Socket's current Apache License 2.0 terms.

## Validation

Expand Down
78 changes: 0 additions & 78 deletions COMMERCIAL-USE.md

This file was deleted.

Loading