Skip to content

Share read-only and digest helpers, and align repository docs - #6

Merged
showxu merged 1 commit into
masterfrom
maintenance
Oct 4, 2026
Merged

showxu merged 1 commit into
masterfrom
maintenance

Conversation

@showxu

@showxu showxu commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Code

  • 15 targets had verbatim copies of validateReadOnly, while CLISafety.rejectDryRunForReadOnly in Utility had no callers. They now call the shared helper. Clipboard's message gains the backticks the others use. Intelligence keeps its own check because it also rejects risk flags with its own failure codes.
  • sha256Hex(String) and sha256Hex(Data) were copied into 17 targets and now live once in Sources/Utility/CLIDigest.swift. Unused CryptoKit imports are removed. Intelligence's file-based sha256Hex(path:) is unchanged.

Release tooling

  • .github/scripts/publish-release moves to Scripts/publish-release; release.yml and the two ReleaseTools tests follow.
  • New Tests/ReleaseTools/test_public_content.py runs Scripts/validate-public-content against a synthetic repository. It checks that a clean tree, including fixture paths under Tests/, passes, and that each finding is reported exactly: local path, missing link, credential pattern, development version and artifact path.

Docs

  • CHANGELOG.md: a 0.1.0-alpha.4 — Unreleased entry covering Improve native target fidelity and framework validation #1, Bump the swift-compatible-updates group with 2 updates #2 and Adopt swift-subprocess 1.0 #5. alpha.1 and alpha.2 now state they were tagged but never published as releases, so "first public alpha" appears only on alpha.3.
  • README and ReleaseGuide install and packaging commands use a VERSION placeholder instead of 0.1.0-alpha.3.
  • AGENTS.md follows the canonical agent guide; repository specifics live under "Repository Guardrails". validate_canonical_target.py passes.
  • Removes Documentation/Proposals/TccTarget.md (no inbound links; ADR 0014 owns the content), .github/Navigation.md, and the .agent clauses in CliContract.md and VersioningAndRelease.md. Rewords a Notes guide sentence the validator flagged. Adds .github/CODEOWNERS.

Validation (local): Scripts/validate-public-content; ReleaseTools unit tests (32); swift build --build-tests; swift test with 1111 tests in 74 suites passing.

Fifteen targets carried verbatim copies of the read-only dry-run check
while CLISafety.rejectDryRunForReadOnly in Utility had no callers; those
targets now call it, and Clipboard reports the same message as the rest.
Intelligence keeps its own check because it also rejects risk flags with
its own failure codes. The SHA-256 hex helper, copied into seventeen
targets, now lives once in Utility.

publish-release moves from .github/scripts to Scripts with the other
release tools. Scripts/validate-public-content gains fixture tests that
cover every finding it reports.

The changelog gains the 0.1.0-alpha.4 entry for the merged changes, and
the alpha.1 and alpha.2 entries state that those tags were never
published as releases. Install and packaging commands use a VERSION
placeholder instead of a fixed release. AGENTS.md follows the canonical
agent guide. The retired TCC proposal stub, the .github navigation page
and the references to local agent directories are removed, and
CODEOWNERS is added.
@showxu
showxu merged commit 93c9077 into master Oct 4, 2026
2 checks passed
@showxu
showxu deleted the maintenance branch October 4, 2026 20:43
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.

1 participant