Files
photocraft/book/src/getting-started/contributing.md
T
1fe689a7bf docs: add mdBook and security documentation foundation (#35)
* docs: add mdBook and security documentation foundation

* docs: point book links at storytold/photocraft; scope the credits entry

The book's repository/edit URLs and source links pointed at the contributor's
fork. The credits entry now describes what this PR contributed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 12:31:18 -04:00

1.5 KiB

Contributing

Read AGENTS.md and the existing contribution guide before editing source. Those files define the clean-room policy, crate layering, command checklist, testing requirements, naming, and visual verification rules.

Important repository invariants include:

  • user-visible behavior is implemented as an engine command unless it is pure shell/view state;
  • public pixel paths cannot assume 8-bit data or sRGB;
  • command execution must return errors for adversarial input rather than panic;
  • format work includes round-trip, malformed-input, and limit tests;
  • L0-L6 changes must continue to compile for WebAssembly;
  • third-party assets need a permissive license, a neighboring license file, and an ATTRIBUTION.md entry.

Security-sensitive contributions

Before changing parsers, file I/O, serialization, automation, MCP, the control server, or command dispatch, read the threat model and trust boundaries. State whether a change adds an implemented control, documents a limitation, or proposes later hardening. Add a regression test for every fixed security defect when a safe test is possible.

Do not include live exploit payloads, secrets, personal files, or unlicensed samples in issues, commits, fixtures, or fuzz corpora. Follow Vulnerability reporting for undisclosed vulnerabilities.