AGENTS.md 3.0 KB

Prod2U CPLD Final Convergence Rules

This checkout implements the Prod2U door-temperature controller. The active product contract is defined by projects/prod2u-door-temp/project.json, projects/prod2u-door-temp/requirements.zh-CN.md, and docs/prod2u-door-temp-protocol.zh-CN.md. Generated contracts, constraints, source manifests, tests, TD inputs, and packages must derive from that contract.

Coordination and ownership

  • Root builds the dependency graph, freezes interfaces, assigns exclusive paths, integrates changes, stages, commits, and selects the final candidate.
  • Agents may edit only their assigned paths. No agent stages or commits in a shared worktree. A path has one owner at a time; overlapping assignments are rejected.
  • cpld_engineer owns assigned production RTL, generator, build/package/receipt implementation, and production tools/*.py paths.
  • cpld_test_engineer owns assigned tests/**, formal wrappers, cocotb, fixtures, and test receipt logic. A test finding in production tools is reported to Root and fixed by cpld_engineer.
  • Reviewers and explorers are read-only and must verify tracked paths before and after their task.
  • The Harness runs ordinary commands with explicit cwd; it never starts Codex, calls model APIs, or creates agent threads.

Execution and model policy

  • MODEL_POLICY=unconstrained.
  • REASONING_EFFORT_POLICY=unconstrained.
  • MODEL_OR_EFFORT_IS_ACCEPTANCE_GATE=false.
  • Observed model, effort, or selection source may be not_exposed; none is an acceptance gate.
  • Protected repositories and dirty developer worktrees are read-only. All writes, builds, receipts, TD roots, candidate worktrees, and packages use an explicitly assigned isolated worktree or external root.

Product and evidence boundaries

  • UART is 25 MHz, 115200 8N1, 217 clocks/bit, with A5 5A framing and CRC-16/ CCITT-FALSE. Supported types are SET_ALL, GET_TEMPERATURE, and TEMPERATURE_DATA.
  • SET_ALL is 14 bytes: 8 PTC values, 4 FAN values, and X/Y motor commands.
  • PTC/FAN mapping, ADC order, motor, watchdog, PWM, and temperature behavior come only from the project contract. Do not restore legacy protocol or hardware behavior. Host rejects duty values above 100; RTL behavior for 0x65..0xFF is unspecified.
  • Distinguish source, simulation, formal, TD, package, and physical-hardware evidence. fail, blocked, not_run, placeholder, and exploratory evidence are never pass evidence.
  • Receipts bind the run ID, exact full commit, project hash, source-manifest hash, command, tool version, status, and applicable bitstream hash.

Protected operations

  • Never access COM or JTAG, program hardware, install drivers, modify global PATH, or create ChatGPT Adviser artifacts.
  • Never use reset, clean, stash, restore, destructive checkout, silent overwrite, automatic merge, or branch movement on a protected developer repository.
  • Hardware validation is separate from offline verification and remains not_run unless explicitly authorized in a future task.