Skip to content

chore: align CI to the hardened canon, add AGENTS.md#2

Merged
Unisay merged 1 commit into
mainfrom
chore/agents-md-and-canon-ci
Jun 14, 2026
Merged

chore: align CI to the hardened canon, add AGENTS.md#2
Unisay merged 1 commit into
mainfrom
chore/agents-md-and-canon-ci

Conversation

@Unisay

@Unisay Unisay commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Brings ngx onto the hardened CI canon and adds the agent instructions.

CI (.github/workflows/ci.yml):

  • Drop accept-flake-config = true (supply-chain risk; caches are already pinned in extra_nix_config).
  • luacheck runs --std lua51 --no-unused-args instead of --std min, keeping --globals ngx for the nginx global the FFI relies on.
  • Run the test step as bash ./scripts/test.

AGENTS.md + CLAUDE.md: AGENTS.md is the single agent instruction file (its lint line keeps --globals ngx); CLAUDE.md is a one-line @AGENTS.md import.

Also bumps the pslua pin to current main (the #56/#49/#61 fixes). The fork's existing treefmt.toml / lua-format setup is left as is.

Tooling and docs only, no src/ change.

Verification

nix develop -c ./scripts/build writes dist/Lua.Ngx*.lua and luacheck with --std lua51 --no-unused-args --globals ngx -- src/ is clean locally.

CI: drop accept-flake-config, luacheck --std lua51 --no-unused-args (keeping
--globals ngx), test via bash. Add AGENTS.md + CLAUDE.md. Bump pslua pin to
current main. Tooling and docs only, no src/ change.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s developer/agent documentation and aligns CI/linting with a hardened Nix CI configuration, while refreshing Nix flake input pins (notably the pslua/purescript-lua dependency) to newer revisions.

Changes:

  • Harden CI by removing accept-flake-config = true, switching luacheck to --std lua51 --no-unused-args, and running tests via bash ./scripts/test (when present).
  • Add agent guidance with AGENTS.md as the canonical instruction source and CLAUDE.md as a one-line import.
  • Update flake.lock to newer pinned inputs (including the purescript-lua / pslua pin).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
flake.lock Updates flake input pins, including the purescript-lua (pslua) revision and related Nix ecosystem inputs.
CLAUDE.md Adds a one-line import pointing to AGENTS.md.
AGENTS.md Adds canonical agent/dev instructions, including Lua 5.1 target notes and lint/build commands.
.github/workflows/ci.yml Hardens Nix config usage and updates luacheck/test invocation to match Lua 5.1 + repo conventions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Unisay Unisay merged commit f5b7422 into main Jun 14, 2026
2 checks passed
@Unisay Unisay deleted the chore/agents-md-and-canon-ci branch June 14, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants