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.
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.
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.
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.
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.
* 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>
* 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.
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.
- 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.
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