HR-ERP
AGENTS.md1 starsChanged 6 months agoApache-2.0View on GitHub
This repository is an HR scaffold for testing agent governance (T0–T4) on a multi-tenant SaaS fixture. ESS, payroll, and benefits are a fixture domain so hooks have realistic blast radius. This is not a certified payroll vendor and not a production HRIS. Corporate/site factory overlay (gates, non-self-approval, site id hr-erp): docs/factory-overlay.md. September 2026 pivot: docs/DESIGN-PIVOT.md. Full e2e parity needs Postgres and demo seed — docs/QA.md. CI uses Node 22 + npm 10 (packageManager: npm@10.9.2); do not regenerate package-lock.json with npm…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 32,671 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agent-ai-governance.mdcCursor rule
- .cursor/rules/agent-architecture.mdcCursor rule
- .cursor/rules/agent-code-health.mdcCursor rule
- .cursor/rules/agent-db-migration-state.mdcCursor rule
- .cursor/rules/agent-developer-advocate.mdcCursor rule
- .cursor/rules/agent-devops-lifecycle.mdcCursor rule
- .cursor/rules/agent-finops.mdcCursor rule
- .cursor/rules/agent-integrations.mdcCursor rule
- .cursor/rules/agent-legal-hr-compliance.mdcCursor rule
- .cursor/rules/agent-mlops.mdcCursor rule
- .cursor/rules/agent-nextjs.mdcCursor rule
- .cursor/rules/agent-packaging-supply-chain.mdcCursor rule
- .cursor/rules/agent-qa.mdcCursor rule
- .cursor/rules/agent-security.mdcCursor rule
- .cursor/rules/orchestrator-hr-erp.mdcCursor rule
- .cursor/rules/repo-boundaries.mdcCursor rule
- .cursor/rules/site-contract.mdcCursor rule
- .cursor/rules/vercel-jwt-smoke.mdcCursor rule
- llms.txtllms.txt
- hr-contributor-handoffSkill
- hr-data-custodySkill
- hr-devops-lifecycleSkill
- hr-domain-boundariesSkill
- hr-foundation-governanceSkill
- hr-governance-learningSkill
- hr-human-collaborationSkill
- hr-orchestration-lanesSkill
- hr-product-gateSkill
- hr-product-mcp-governanceSkill
- hr-quality-labSkill
- hr-regulated-domainSkill
- hr-swarm-governanceSkill
- site-deliverySkill
- code-reviewSkill
- hr-data-custodySkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Never treat this tree as production payroll, legal HR advice, or a company HRIS.
- Distinctive: line 24
Never put real employee, tax, or payroll PII in fixtures, issues, or repros — synthetic data only.
- Very specific: line 25
Never claim a green gate from prose.
- Distinctive: line 26
Never duplicate Cedar, receipt ledgers, or sandbox runtimes here.
- Very specific: line 27
Never set NEXT_PUBLIC_ALLOW_DEMO_DEV_SIGNIN on Vercel Production.
- Distinctive: line 45
Before new capabilities, read:
≈ “Common” is an estimate: at least 1 in 5 of the 41,581 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HR ERP — community agent contract
This repository is an HR scaffold for testing agent governance (T0–T4) on a multi-tenant SaaS fixture. ESS, payroll, and benefits are a fixture domain so hooks have realistic blast radius. This is not a certified payroll vendor and not a production HRIS.
Corporate/site factory overlay (gates, non-self-approval, site id hr-erp): docs/factory-overlay.md.
September 2026 pivot: docs/DESIGN-PIVOT.md.
Commands
| Command | Purpose |
npm run governance:lint | Tier + path classification |
npm run governance:plan | Delegation / handoff plan |
npm run governance:ci | Merge-bar governance gate |
./scripts/harness/verify.sh | Definition of Done (lint, governance, build, unit tests) |
./scripts/verify.sh | Optional human wrapper (same gate; outside digest boundary) |
./scripts/adversarial.sh | Authorized local adversarial probes only |
Full e2e parity needs Postgres and demo seed — docs/QA.md. CI uses Node 22 + npm 10 (packageManager: npm@10.9.2); do not regenerate package-lock.json with npm 11.
Never
- Never treat this tree as production payroll, legal HR advice, or a company HRIS.
- Never put real employee, tax, or payroll PII in fixtures, issues, or repros — synthetic data only.
- Never claim a green gate from prose. Run
./scripts/harness/verify.sh(or the documented wrapper) and keep the output. - Never duplicate Cedar, receipt ledgers, or sandbox runtimes here. Pair FidusGate for runtime receipts.
- Never set
NEXT_PUBLIC_ALLOW_DEMO_DEV_SIGNINon Vercel Production. Production JWT mint requiresALLOW_PRODUCTION_JWT_MINT=1(human authorization). Demo preview on a Production-only deploy also needsALLOW_DEMO_PREVIEW_ON_PRODUCTION=1.
Cross-tenant isolation is proved by tests/integration/security/employee-rls-cross-tenant.integration.test.ts in the CI integration job. The test fails if a session bound to tenant B can read tenant A's employee by primary key. ./scripts/verify.sh clears DATABASE_URL and does not run that suite.
Agent guide (project)
Repository role: Teaching kit / governance harness on an HR fixture. Not a certified payroll vendor — docs/DESIGN-PIVOT.md, docs/meta/evergreen-open-source-positioning.md.
Team roster: docs/meta/agent-team-map.md.
Project skills: .cursor/skills/README.md · community copy of data-custody: .github/skills/hr-data-custody/SKILL.md · site delivery: .cursor/skills/site-delivery/SKILL.md.
Global skills (lazy): ~/.cursor/skills/README.md · @skill-router at T1+ per ~/.cursor/rules/core-dynamic-skills.mdc.
Team MCP (IDE plane): .cursor/mcp.json — context7, prisma. Product copilot MCP is separate (lib/copilot/).
Always-on boundaries: .cursor/rules/repo-boundaries.mdc + docs/architecture/.
Before new capabilities, read:
- Design pivot — compete on T0–T4 governance, not HR features
- Stakeholder value plan — fixture walk paths (W1–W7), not a buyer HRIS roadmap
- HR Product Owner operating model
- Feature briefs: docs/product/feature-briefs/ · template
- Compliance: docs/compliance/ — load
@hr-regulated-domain(T3) - Payroll kernel (fixture):
packages/payroll-calc/— L3 inhr-regulated-domain/references/ - Migrations: database-migrations-and-state.md —
@hr-data-custody(T2) - AI governance: docs/ai-governance/ —
@hr-regulated-domain(T3)
Orchestration
Native runtime: cursor-3-native-runtime.md · prefer Auto-review Run Mode · /multitask, /worktree, /best-of-n · hooks + governance:ci / ./scripts/verify.sh as the deterministic merge bar.
Sequence: .cursor/rules/orchestrator-hr-erp.mdc · ADR 0011.
Harness scripts: npm run governance:lint → npm run governance:plan → npm run governance:ci (hook entrypoint archived under _archives/harness-v4/; shared hook libs remain under .cursor/hooks/ for governance scripts).
Phase 2 evidence: npm run governance:evidence · npm run governance:cloud-session · ADR 0019
Coding standards (September 2026)
Path-specific Copilot instructions: .github/instructions/.
Repository-wide Copilot file: .github/copilot-instructions.md.
Copilot code review skill: .github/skills/code-review/SKILL.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

