Commit Graph
19 Commits
Author SHA1 Message Date
Dylan M. Taylor a5fb1f2e5f ci: verify the actions lockfile in CI
Fails the build when .github/workflows/actions.lock stops matching the
workflows, or when a locked pin no longer verifies upstream, so a stale or
tampered lockfile cannot go unnoticed between dependency updates.
2026-11-12 07:22:45 -05:00
Dylan M. Taylor a8ed09e605 ci: lock workflow actions through an actions.lock lockfile
Mutable action tags are a supply-chain risk: a moved tag runs different code
without a diff. Every workflow action is now pinned through
.github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync
or tampered one fails instead of running.
2026-11-12 07:19:31 -05:00
Dylan M. Taylor ca6100634b ci: use StepSecurity's maintained actions (#183)
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
2026-11-11 14:57:14 -05:00
Dylan M. Taylor 046e4a7f3f ci: run Harden-Runner on every job (#181)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:09:26 -05:00
FredAppsandFredApps a7c2c07d58 ci: give runs outside pull requests their own concurrency group (#174)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-10 15:42:11 +01:00
FredAppsandFredApps a9b88264fb ci: save the dependency cache from main only, and bound job times (#172)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-10 14:56:04 +01:00
Dylan M. Taylor 0cbc088b3c Revert "ci: use SonarCloud automatic analysis only (#159)" (#162)
This reverts commit 2aaad3954a.
2026-11-06 07:14:48 -05:00
FredApps 5ab7d54da2 Copy the shared house rules into AGENTS.md. (#160)
The core and Rust blocks come from craft-contrib at dde09ea31e2e457f5b4653a6e76f7cdf55944bdf. The repository notes below them are unchanged. The house-rules workflow checks the copy.
2026-11-06 11:58:20 +01:00
FredAppsandFredApps 2aaad3954a ci: use SonarCloud automatic analysis only (#159)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-06 11:35:03 +01:00
Dylan M. Taylor 95b1e6a41d ci: add SonarCloud scan via shared reusable workflow (#104) 2026-10-30 10:30:15 -04:00
skylar taylor-barrick 0e55340771 Migrate shared AI widgets to egui 0.37 (#105)
* refactor(ai-egui): migrate shared widgets to egui 0.37

* egui037: qualify shared AI widgets and downstream dependency pins

* docs(ai-egui): record the committed migration qualification

* fix(ci): provide Vulkan snapshots and allow pinned fork sources

* test: make cancellation-before-load coverage deterministic
2026-10-25 16:23:02 +00:00
Jeremy e2c23c1c2b path for developer AI suggestions- #103 2026-10-23 20:54:52 +01:00
dependabot[bot] 1759a52660 ci(deps): bump Swatinem/rust-cache
Bumps the actions group with 1 update in the / directory: [Swatinem/rust-cache](https://github.com/swatinem/rust-cache).


Updates `Swatinem/rust-cache` from 2.9.2 to 2.9.3
- [Release notes](https://github.com/swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/swatinem/rust-cache/compare/6323deb102c322ba6fcbdcafc7e3dddab59af2b6...d1527c8f67ef9af357290475d4af4b0fab8f12e0)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-version: 2.9.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-23 15:19:21 +01:00
MexandJeremy 3441cacd12 fix(mutation): redact Unix profile paths from verification logs (#62)
* fix(mutation): scrub Unix profile paths from verification logs

Redact /home and /Users account folders while preserving the path suffix and existing Windows/MSYS behavior.

* test(mutation): cover Unix and Windows log profile redaction

* fix(mutation): redact JSON-escaped Unix profile paths

* test(mutation): cover escaped Unix profile paths

Add test for JSON escaped Unix profiles to ensure suffix is preserved.

* ci: run mutation tooling Python regression tests

Add Python unit tests for mutation testing in CI workflow.

* test(mutation): document conservative profile redaction

Keep the collaborator-reviewed Fedora, WSL and URI redaction policy. Add explicit controls and document the privacy rationale without changing the production regex. All six Python tests and compileall pass.

---------

Co-authored-by: Jeremy <jeremy8776@googlemail.com>
2026-10-21 14:02:24 +01:00
Saadi 954b187ebf test(ai-comfyui): catch the is_file check going missing on Unix (#75)
* ci(mutation): let the workflow run one case by name

The harness already accepts a case-name substring on the command line, but the
Actions workflow only forwarded the group, so checking a single case meant
waiting for the whole group: u3 alone is 72 cases and the job allows 120
minutes. Forward an optional filter and name the step after the group it runs.

This also makes it practical to get per-OS observations for one case, which is
what #6 asks for the Windows-only equivalent entries.

* test(ai-comfyui): catch the is_file check going missing on Unix

The deliberate-bug case input-folder-read survived on ubuntu-latest and
macos-latest: removing the is_file check in read_file left the test green. A
folder is opened on Unix and then fails at the read with the same "could not be
read" refusal, so the folder case cannot tell the two checks apart. Windows only
records it as equivalent because a folder cannot be opened there at all.

A character device is the input the check is really for: it opens like a file
and reads as no bytes, so without the check an empty body is accepted where a
file was expected. /dev/null is that case, Unix only.

The equivalence notes now say what was observed on each system rather than
leaving Linux and macOS unproven.

* fix(mutation): fail a filtered run that names no case

A typo in the case filter made the harness skip every case and exit 0, so a
workflow run would report success after checking nothing. Choose the cases up
front and stop when the filter matches none of them.
2026-10-21 13:52:33 +01:00
dependabot[bot] ea9bbcbc65 ci(deps): bump actions/checkout (#45)
Bumps the actions group with 1 update in the / directory: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4.4.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/11d5960a326750d5838078e36cf38b85af677262...3d3c42e5aac5ba805825da76410c181273ba90b1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-21 11:15:18 +01:00
Jeremy dc96c5674b ci: test on macOS, and a manual job for the deliberate-bug checks (#30)
Issue #6: the suite ran on Windows and, since CI began, Linux, but never on
macOS, whose default filesystem ignores case.

- Add macos-latest to the test matrix.
- Add .github/workflows/mutation.yml, run by hand from the Actions tab for one
  case group on Linux and macOS. It does not run on a schedule or on push.
- mutation_check.py: kill a hung case with proc.kill() off Windows (taskkill
  does not exist there), and treat the two cases recorded as equivalent for
  Windows reasons as equivalent on Windows only, so a miss on Linux or macOS
  shows up as a survivor instead of being excused.

Checked: --dry on group u3 and a syntax check. The workflows run on GitHub.
2026-10-17 10:01:50 +01:00
Jeremy aea912bb55 chore: prepare the repository for transfer to storytold/craft-ai-integrations
- Rename the contract crate ai-model to ai-core (package craft-ai-core), matching the crate
  proposed for craft-libs.
- Port the two fixes already made in the craft-libs copy: consent expiry is per kind of data,
  and models found by a test at a new address survive a save (ConnectionDraft::set_models).
- Take docs/research, the SAM 3 handoff notes and their scripts out of the tree (local paths and
  evidence files). Move the deliberate-bug harness to tools/mutation and repair ten cases that no
  longer matched the source.
- Rewrite the README, add docs/STATUS.md (tested, run for real, not verified), fix LAYOUT,
  PLATFORM-CONTRACT and CONTRIBUTING, add the missing ai-comfyui manifest fields, point the
  repository URL at storytold/craft-ai-integrations, and add a wasm check for craft-ai-features.
- Allow clippy::large_enum_variant on TestTarget, which the larger draft now trips.

Checked on Windows: fmt, clippy --all-targets -D warnings on all 16 crates, 967 tests passed
(15 ignored), wasm check for craft-ai-core and craft-ai-features. Not run: cargo-deny, Linux,
macOS, live services, the real keychain test. The contract stays provisional until craft-libs
review.
2026-10-16 20:25:49 +01:00
Jeremy c90c9466fd ci: fmt, clippy --all-targets, wasm check, tests and cargo-deny; document the secret-store chain (#5)
Same clippy gate as craft-libs. deny.toml's licence list comes from cargo
metadata. README: the encrypted-file store is not in ConnectionManager::standard().

Closes #5
2026-10-13 18:20:53 +01:00