You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement CraftingSystem for Epic 4.7 (#135)
* feat: implement CraftingSystem for Epic 4.7
Implements the CraftingSystem that processes active crafting sessions,
determines outcomes using CraftingOutcomeRule, and awards XP.
Changes:
- Add CraftId value object for unique craft identification
- Add ActiveCraft component to track in-progress crafts
- Add CraftingCompletedEvent for craft completion notifications
- Extend Character with ClassProgress and ActiveCraft properties
- Implement CraftingSystem with outcome determination and XP awarding
- Add comprehensive test suite (8 tests) covering:
- System name and empty world scenarios
- Craft completion and event emission
- XP awarding for successful crafts
- Multi-class XP distribution
- Failed craft handling
- Active craft clearing after completion
All 511 tests pass (427 Core + 84 Simulation).
Refs #38
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* docs: update progress tracking for Epic 4.7 completion
Epic 4.7 (CraftingSystem) complete - 7/8 tasks in Epic 4
Refs #38
* docs: add credential verification to prevent account mix-ups
Add automated verification script and workflow checks to ensure git
config and GitHub CLI are using the correct account before commits and PRs.
Changes:
- Add scripts/verify-credentials.sh for automated credential checking
- Script reads from environment variables (no hardcoded account details)
- Update PROMPT.md workflow rules with mandatory verification steps:
- Step 1: Verify credentials before starting work
- Step 8: Re-verify before commits
- Step 10: Re-verify before creating PRs
- Update CLAUDE.local.md with environment variable setup instructions
This closes the loophole where git config was correct (Contributor) but
GitHub CLI was authenticated with the wrong account (Maintainer), causing
PRs to be created with the wrong account.
Refs #38
* refactor: parse credentials from CLAUDE.local.md table
Update verification script to read credentials directly from the
CLAUDE.local.md markdown table instead of requiring environment variables.
This makes the script self-contained and eliminates the need for manual
environment variable setup.
Refs #38
* docs: specify squash merge with conventional commits for auto-merge
Update all auto-merge documentation to specify:
- Use --squash flag for squash commits
- Use --subject for conventional commit format (type: summary)
- Use --body with detailed description, rationale, and issue reference
- Include commit type definitions (feat, fix, refactor, docs, test, chore)
Updated files:
- CLAUDE.md: Added detailed auto-merge example in Code Review Flow
- AGENTS.md: Updated auto-merge step with full command syntax
- docs/roles/tech-lead.md: Added squash merge configuration
- docs/playbooks/workflow-verification.md: Updated CI workflow reference
- CLAUDE.local.md: Added comprehensive Auto-Merge Configuration section
This ensures all squash merge commits follow conventional commit standards
and include proper documentation of changes and rationale.
Refs #38
---------
Co-authored-by: Martin Jarvis <m.c.j@live.co.uk>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: PROMPT.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@
6
6
> - Read CLAUDE.md and AGENTS.md before starting
7
7
> - Never use `--no-verify` to bypass git-hook verifications - always fix the root cause
8
8
> - Never use `--admin` to force the merge of a PR
9
-
> -**Always verify GitHub account before PR operations** - Contributor opens PRs, Maintainer - CLAUDE.local.md for account details
9
+
> -**MANDATORY: Verify BOTH git config AND GitHub CLI account before ANY PR operations**
10
+
> - Run `git config user.email` AND `gh auth status` to verify correct account
11
+
> - Contributor (martincjarvis) opens PRs and commits code
12
+
> - Maintainer (mcj-coder) reviews and merges PRs
13
+
> - See CLAUDE.local.md "CRITICAL: Verify Both Git and GitHub CLI Credentials" section
10
14
> - All changes need to be done via feature branch and merged via PR
11
15
> - Work as `Contributor` implementing code changes and raising PR's. Do not review PR's unless explicitly prompted by the user - just monitor active PR and Issues for comment feedback.
12
16
@@ -104,14 +108,17 @@ See **[docs/plans/rules-engine-design.md](docs/plans/rules-engine-design.md)** f
0 commit comments