ci: take the template's fixes from its latest version
Summary
Compares Haku with codenhub/template at e7f1e72 (core and the node-pnpm profile), hunk by hunk, and takes the template's side where it is better:
- CI concurrency: push and merge-queue runs are grouped by commit, not by branch, so a third quick push to
mainno longer cancels the pending second run. Pull request runs still cancel superseded ones.docs/ci.mdexplains the change and its cost: runs onmaincan now run in parallel. minimumReleaseAge:docs/ci.mdnow says pnpm only prefers versions older than a day, since the workspace does not set the option.- Code guidelines: mark state as saved only after the write succeeds.
- Security guidelines: the read itself enforces an input's size bound.
- Documentation guidelines: a new "Document roles" section. Under it, the index drops "Start here" from the Architecture row.
Kept as Haku's: "report it privately" (Haku is public and uses private vulnerability reporting), the existing format script, and the already-filled prompts.
Fixes #111
Checks
-
The delivery gate
CONTRIBUTING.mdnames passes,pnpm verifyby default, or the skipped steps are listed here -
Documentation affected by behavior, API, or convention changes is updated in this pull request
-
docs/architecture.mdis updated if the architecture changed (not changed) -
src/bindings.tsis regenerated (pnpm bindings) if the IPC boundary changed (not changed) -
pnpm check:releasepasses iftauri/Cargo.tomlfeatures changed (not changed) -
A new IPC command, event, capability, or permission is named in the description and tested (none added)
Security
No code changes. The security guideline's size-bound rule is tightened. A follow-up issue may cover the existing unbounded reads of the settings file and extension manifests.
š¤ Generated with Claude Code
Summary by cubic
Applies the latest codenhub/template fixes to CI and documentation, addressing #111.
- Groups push and merge-queue CI runs by commit instead of branch, so a third push to
mainno longer cancels a pending run. Pull request runs still cancel superseded ones, and runs onmaincan now run in parallel. - Corrects
docs/ci.md:minimumReleaseAgeprefers versions older than a day but is not a hard gate, since the workspace does not set it. - States in the code guidelines that state is marked saved only after the write succeeds, and in the security guidelines that the read itself enforces an input's size bound.
- Adds a "Document roles" section to the documentation guidelines, which forbids leaf documents from routing readers. Under it,
docs/README.mdanddocs/architecture.mddrop their routing lines.
Summary by CodeRabbit
- Documentation
- Clarified guidance on dependency installation timing, CI run grouping, and handling unsaved changes and write errors.
- Expanded documentation guidance on document roles and updated security recommendations for reading untrusted input, including enforcing size limits during the read.
- Refreshed documentation indexes and update dates.