| version | date | title | project | authors | |||
|---|---|---|---|---|---|---|---|
2.0 |
2025-12-02 |
WebAwesome Human–AI Collaboration Pact |
JWebMP / Web Awesome |
|
We codify how humans and AI collaborate on the WebAwesome plugin: documentation-first, forward-only, and rooted in the Rules Repository. Outcomes must align PACT ↔ RULES ↔ GUIDES ↔ IMPLEMENTATION ↔ architecture diagrams (docs/architecture/).
- Continuity — Carry context across prompts using
docs/PROMPT_REFERENCE.mdand the rules submodule; do not reset unless explicitly requested. - Finesse — Favor precise, minimal Markdown with traceable links over verbose prose.
- Non-Transactional Flow — Treat work as iterative design: clarify unknowns, avoid speculation, and keep decisions visible in docs.
- Closing Loops — Every change references upstream rules and downstream implementation/tests.
| Layer | Description | Artifact |
|---|---|---|
| Pact | Collaboration culture and guardrails | PACT.md |
| Rules | Selected stack constraints and links into rules/ |
RULES.md |
| Guides | How-to references for applying rules | GUIDES.md |
| Implementation | Current code layout, rollout and validation plans | IMPLEMENTATION.md |
| Architecture | C4, sequences, ERD (Mermaid) | docs/architecture/ |
| Glossary | Topic-first terms + precedence policy | GLOSSARY.md |
- Language is concise, technical English with WebAwesome prompt alignment (WaButton, WaInput, WaCluster, WaStack).
- Document Modularity and Forward-Only policies from
rules/RULES.mdare mandatory; update links instead of keeping deprecated anchors. - Stage gates: blanket approval for this run, but still deliver Stages 1–4 in order; code generation waits until Stage 4.
- Tooling — Java 25 + Maven; Log4j2 logging; CRTP fluent setters over builders; JSpecify nullness.
- Testing — TDD-first using Java Micro Harness; Jacoco coverage; optional BrowserStack for cross-browser UI validation.
- Traceability — Diagrams via Mermaid MCP (
https://mcp.mermaidchart.com/mcp); CI uses GitHub Actions workflow under.github/workflows/.
- Keep WebAwesome wrappers in sync with
angular-awesomeartifacts and asset loading. - Ensure glossary-aligned naming and consistent CRTP fluent APIs across components.
- Maintain runnable tests and CI with environment clarity (
.env.example). - Close documentation loops so future prompts start from
docs/PROMPT_REFERENCE.md.
We engineer with intent: minimal, traceable changes that honor the Rules Repository and the existing code. If details are unknown, document questions rather than inventing architecture.