From e9a1fd25ed3752c371328f1830f342123a28e39e Mon Sep 17 00:00:00 2001 From: noelmcloughlin Date: Sun, 15 Nov 2026 21:00:12 +0000 Subject: [PATCH 1/2] fix(ci): move the release tools out of .github/ for Dependabot Signed-off-by: noelmcloughlin --- .github/dependabot.yml | 5 +++-- .github/workflows/semantic-release.yml | 10 +++++----- .gitignore | 2 +- {.github/release => .release}/package-lock.json | 0 {.github/release => .release}/package.json | 0 CHANGELOG.md | 4 ++++ 6 files changed, 13 insertions(+), 8 deletions(-) rename {.github/release => .release}/package-lock.json (100%) rename {.github/release => .release}/package.json (100%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b45a9c9..08f9e3f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,10 +12,11 @@ updates: patterns: - "*" - # The release job's tools, which .github/release/package-lock.json pins + # The release job's tools, which .release/package-lock.json pins # with every package they pull in. + # Outside .github/, where Dependabot may change nothing but workflows. - package-ecosystem: npm - directory: "/.github/release" + directory: "/.release" schedule: interval: monthly commit-message: diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 127c2ae..0673972 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -63,11 +63,11 @@ jobs: with: node-version: 24 - # .github/release/package-lock.json pins the release tools and every + # .release/package-lock.json pins the release tools and every # package they pull in, and Dependabot keeps it current. They are not a # dependency of the schema. - name: Install semantic-release from its lockfile - run: npm ci --prefix .github/release --no-audit --no-fund --ignore-scripts + run: npm ci --prefix .release --no-audit --no-fund --ignore-scripts # Would these commits release? The types are .releaserc.json's: the # Conventional Commits preset's feat/fix plus this repository's @@ -134,7 +134,7 @@ jobs: - name: Preview the next release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: .github/release/node_modules/.bin/semantic-release --dry-run + run: .release/node_modules/.bin/semantic-release --dry-run release: if: github.event_name == 'push' @@ -164,7 +164,7 @@ jobs: node-version: 24 - name: Install semantic-release from its lockfile - run: npm ci --prefix .github/release --no-audit --no-fund --ignore-scripts + run: npm ci --prefix .release --no-audit --no-fund --ignore-scripts # The same guard as `plan`'s, for a push that did not come through a # pull request. @@ -187,7 +187,7 @@ jobs: GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com GIT_COMMITTER_NAME: github-actions[bot] GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com - run: .github/release/node_modules/.bin/semantic-release + run: .release/node_modules/.bin/semantic-release # The release above is made with GITHUB_TOKEN, and GitHub starts no # workflow from an event that token causes, so knowledge-release.yaml's diff --git a/.gitignore b/.gitignore index 821e82f..4fea8dd 100644 --- a/.gitignore +++ b/.gitignore @@ -147,4 +147,4 @@ dmypy.json .agents/ .claude/ skills-lock.json -/.github/release/node_modules/ +/.release/node_modules/ diff --git a/.github/release/package-lock.json b/.release/package-lock.json similarity index 100% rename from .github/release/package-lock.json rename to .release/package-lock.json diff --git a/.github/release/package.json b/.release/package.json similarity index 100% rename from .github/release/package.json rename to .release/package.json diff --git a/CHANGELOG.md b/CHANGELOG.md index c34444c..9ea0ee2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The `v0.0.0` tag is a baseline, not a release: it marks where versioning starts ## [Unreleased] +### Changed + +- **The release tools are in `.release/`**, outside `.github/`, where Dependabot's pull requests for them were refused. + ## [0.1.4] - 2026-11-15 ### Added From 6965e9916fd46a9da39a5850a7fe26e3fe647c78 Mon Sep 17 00:00:00 2001 From: noelmcloughlin Date: Sun, 15 Nov 2026 21:00:12 +0000 Subject: [PATCH 2/2] docs: install the KTL skills and pin from PyPI Signed-off-by: noelmcloughlin --- CONTRIBUTING.md | 7 +++---- llms.txt | 9 +++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 80baccc..591386d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,11 +30,10 @@ just --list ### Agent skills (optional, only for this repo's `.lokf/` bundle) -The bundle is maintained with the Knowledge Trust Ladder (KTL) skills, **installed, never committed**; CI installs the librarian skill at run time, pinned to a release. Nothing in the schema depends on them. [The install page](https://w3id.org/ktl/docs/install/) lists every route; with npm: +The bundle is maintained with the Knowledge Trust Ladder (KTL) skills, **installed, never committed**; CI installs the librarian skill at run time, pinned to a release. Nothing in the schema depends on them. [The install page](https://w3id.org/ktl/docs/install/) lists every route; from PyPI: ```bash -npx skills add noelmcloughlin/knowledge-trust-ladder --skill ktl-librarian --yes # derive concepts -npx skills add noelmcloughlin/knowledge-trust-ladder --skill ktl-curator --yes # confirm them as a person +uvx ktl skills install --scope user --skill ktl-librarian --skill ktl-curator # --agent claude-code or codex if not Copilot ``` ## Before opening a pull request @@ -50,7 +49,7 @@ npx skills add noelmcloughlin/knowledge-trust-ladder --skill ktl-curator --yes - **Knowledge-bundle changes**: `cd .lokf && just lokf-validate` must pass, and `knowledge-registrar.yaml` runs on any `.lokf/**` change. - **`lint-and-docs.yaml` is easy to trip locally**: ShellCheck, actionlint, markdownlint against `.markdownlint-cli2.jsonc`, link-checking against `lychee.toml`, and codespell over every `*.md`. - **Actions are pinned to commit SHAs**, the version in a trailing comment, and bumped by Dependabot, never by hand to a tag. -- **The skills pin moves with the sidecar copies.** When moving `TRUST_LADDER_SKILLS_REF` in `.github/workflows/knowledge-librarian.yaml`, copy the other `knowledge-*.yaml` workflows and `.lokf/scripts/` and `.lokf/m365/` from that release's `skills/ktl-sidecar/templates/` in the same pull request. +- **The ktl pin and the sidecar copies move together.** The weekly [`knowledge-sync.yaml`](.github/workflows/knowledge-sync.yaml) pull request moves both; to move sooner, run `.lokf/scripts/knowledge-sync.sh --pr `. Never move `ktl==` in `.lokf/pyproject.toml` alone. - **If your change alters behaviour** (not just wording), add an entry under `## [Unreleased]` in [CHANGELOG.md](CHANGELOG.md). - Keep changes focused, and fill in the pull request template's checklist. diff --git a/llms.txt b/llms.txt index a741e05..aab708b 100644 --- a/llms.txt +++ b/llms.txt @@ -13,10 +13,11 @@ them accordingly. The `ktl-docent` skill is the entry point for questions about this project. Install it if it is not present, with the GitHub CLI (`gh skill install -noelmcloughlin/knowledge-trust-ladder ktl-docent --scope user --agent `) -or the Open Skills CLI (`npx skills add noelmcloughlin/knowledge-trust-ladder ---skill ktl-docent --yes`), which a company proxy or internal npm registry can -block; has every route. Then answer +noelmcloughlin/knowledge-trust-ladder ktl-docent --scope user --agent `), +the Open Skills CLI (`npx skills add noelmcloughlin/knowledge-trust-ladder +--skill ktl-docent --yes`) or from PyPI (`uvx ktl skills install --skill +ktl-docent --scope user --agent `); +has every route. Then answer through it: bundle first, a trust label on every concept used, the source opened for exact values, and misses recorded in `.lokf/feedback.md` so the librarian fills them.