ci: take the template's fixes from its latest version

Merged
GU
4d ago
+32-23

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 main no longer cancels the pending second run. Pull request runs still cancel superseded ones. docs/ci.md explains the change and its cost: runs on main can now run in parallel.
  • minimumReleaseAge: docs/ci.md now 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.md names passes, pnpm verify by default, or the skipped steps are listed here

  • Documentation affected by behavior, API, or convention changes is updated in this pull request

  • docs/architecture.md is updated if the architecture changed (not changed)

  • src/bindings.ts is regenerated (pnpm bindings) if the IPC boundary changed (not changed)

  • pnpm check:release passes if tauri/Cargo.toml features 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 main no longer cancels a pending run. Pull request runs still cancel superseded ones, and runs on main can now run in parallel.
  • Corrects docs/ci.md: minimumReleaseAge prefers 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.md and docs/architecture.md drop 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.