Skip to content

feat: incite rebellion comeback mechanic#11

Merged
keanji-x merged 2 commits intomainfrom
feat/incite-rebellion
Apr 5, 2026
Merged

feat: incite rebellion comeback mechanic#11
keanji-x merged 2 commits intomainfrom
feat/incite-rebellion

Conversation

@keanji-x
Copy link
Copy Markdown
Collaborator

@keanji-x keanji-x commented Apr 5, 2026

Summary

  • Eliminated agents (0 hexes) can use incite_rebellion to come back — 50% chance to reduce target hex happiness by 30, captures hex when happiness hits 0, respawns with 200 ore
  • 30s cooldown per hex, reuses attackCooldown mapping, no storage changes
  • Full-stack: contract + MCP tool + agent runner prompts (ELIMINATED phase) + frontend ABI + docs
  • Deployed to Gravity testnet via UUPS upgrade — all proxy addresses unchanged

Test plan

  • forge test -vv — 19/19 tests pass (3 new incite tests)
  • Verified on-chain: INCITE_POWER=30, INCITE_COOLDOWN=30
  • Run agent runner and verify eliminated agent uses incite_rebellion

🤖 Generated with Claude Code

keanji-x and others added 2 commits April 5, 2026 21:46
Agents with 0 hexes can now incite rebellion on enemy hexes (50% chance
to reduce happiness by 30). When happiness hits 0, the hex is captured
and the agent respawns with 200 ore. Includes 30s cooldown per hex.

Changes across all layers:
- Contract: inciteRebellion() + INCITE_POWER/INCITE_COOLDOWN constants
- MCP: chain method + incite_rebellion tool
- Agent runner: ELIMINATED phase in prompts, selfTools update
- Frontend: ABI updated
- Docs: README.md rewritten, CLAUDE.md/skill.md updated

Deployed to Gravity testnet via UUPS upgrade (proxy addresses unchanged).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Anyone can claim rebelled (neutral) hexes for free with claimNeutral().
Eliminated agents should claim_neutral first, then incite_rebellion as
backup. Updated prompts, MCP tools, and all docs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@keanji-x keanji-x merged commit 2bbec52 into main Apr 5, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant