Commit Graph

149 Commits

Author SHA1 Message Date
9d227e4e10 Merge pull request 'fix: clamp negative resources + add tutorial focus trap' (#220) from sprint/issue-resource-clamp-focus-trap into main
Some checks failed
Smoke Test / smoke (push) Has been cancelled
2026-04-21 15:24:34 +00:00
83152f7edb Merge pull request 'beacon: export idle state to compounding-intelligence (#166)' (#203) from fix/166 into main
Some checks failed
Smoke Test / smoke (push) Has been cancelled
2026-04-21 15:24:13 +00:00
a6976d92af Merge pull request 'docs: fix README runtime map for #169' (#201) from fix/169 into main
Some checks failed
Smoke Test / smoke (push) Has been cancelled
2026-04-21 15:24:04 +00:00
Alexander Whitestone
6fb0edeae0 fix: clamp negative resources + add tutorial focus trap
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 9s
Smoke Test / smoke (pull_request) Failing after 20s
- Clamp ops, trust, compute to >= 0 in tick() to prevent negative
  values from Fenrir drain and debuff effects
- Add keyboard focus trap to tutorial overlay for accessibility
  (prevents Tab from escaping the dialog)
- Clean up focus trap handler on tutorial close
2026-04-21 10:37:33 -04:00
Alexander Whitestone
6d4b8d86f3 feat: export beacon state snapshots for #166
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 3s
Smoke Test / smoke (pull_request) Failing after 6s
2026-04-17 02:47:20 -04:00
Alexander Whitestone
36f84c1f97 test: define state export hook for #166 2026-04-17 02:38:25 -04:00
Alexander Whitestone
c815f1e9e3 docs: fix README runtime map for #169
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 3s
Smoke Test / smoke (pull_request) Failing after 7s
2026-04-17 02:24:02 -04:00
Alexander Whitestone
51ef95459d test: define README runtime map regression for #169 2026-04-17 02:18:57 -04:00
d5645fea58 Merge pull request 'fix: resolve #192 — move dead code to docs/reference, fix GENOME.md' (#194) from fix/192-dead-code-cleanup into main
Merge PR #194: fix: resolve #192 — move dead code to docs/reference, fix GENOME.md
2026-04-17 01:47:15 +00:00
Alexander Whitestone
db08f9a478 fix: resolve #192 — move dead code to docs/reference, fix GENOME.md
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 9s
Smoke Test / smoke (pull_request) Failing after 16s
- game/npc-logic.js → docs/reference/npc-logic-prototype.js (ES module, never imported)
- scripts/guardrails.js → docs/reference/guardrails-prototype.js (HP/MP validation, wrong game)
- Updated GENOME.md architecture diagram to reflect actual file structure
- Updated DEAD_CODE_AUDIT to mark these as resolved
- Corrected JS line counts (6,033 across 11 files)
- Removed empty game/ directory

The actual CI scripts (guardrails.sh, smoke.mjs) remain active in scripts/.
2026-04-15 21:25:38 -04:00
3bf3555ef2 Merge pull request 'feat: Emergent game mechanics from player behavior (closes #190)' (#191) from feat/190-emergent-mechanics into main 2026-04-16 01:20:09 +00:00
951ffe1940 Merge pull request 'feat: add GENOME.md — full codebase analysis (#674)' (#193) from fix/674-genome-beacon into main 2026-04-16 01:20:06 +00:00
Alexander Whitestone
5329e069b2 feat: add GENOME.md — full codebase analysis of the-beacon (#674)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 9s
Smoke Test / smoke (pull_request) Failing after 19s
Generated codebase genome for the-beacon:
- Project overview: browser-based idle game, 5128 LOC JS, no build step
- Architecture diagram: 10 JS modules + HTML entry point
- Entry points: index.html, main.js init, engine.js tick loop
- Data flow: click -> accumulate -> tick -> phase check -> events -> render
- Key abstractions: 10 resources, buildings, projects, 6 phases, 4 endings
- API surface: localStorage save/load, Web Audio, no external APIs
- Test coverage gaps: no tests for core engine, events, phases, save/load, harmony
- Security: fully client-side, no external deps, no XSS risk
2026-04-15 21:06:45 -04:00
Hermes Agent
529248fd94 feat: Emergent game mechanics from player behavior (closes #190)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 10s
Smoke Test / smoke (pull_request) Failing after 21s
The game evolves alongside its players.

Tracks behavior patterns (click frequency, resource spending, upgrade choices),
detects player strategies (hoarder, rusher, optimizer, idle), and generates
dynamic events that reward or challenge those strategies.

- EmergentMechanics class: track(), detectPatterns(), generateEvent(), getState()
- 6 pattern detectors: hoarder, rusher, optimizer, idle_player, clicker, balanced
- 16 emergent events across all patterns with meaningful choices
- localStorage persistence for cross-session behavior tracking
- 25 unit tests, all passing
- Hooks into writeCode, buyBuilding, doOps, and tick()
- Stats panel shows emergent events count, pattern detections, active strategy
- Self-contained: additive system, does not break existing mechanics
2026-04-15 19:07:32 -04:00
fdd95af287 Merge pull request 'fix: suppress non-ReCKoning projects during endgame (#128, #130)' (#189) from fix/endgame-project-suppression-v2 into main 2026-04-15 10:47:13 +00:00
673c09f0a7 fix: suppress non-ReCKoning projects during endgame (#128, #130)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 16s
Smoke Test / smoke (pull_request) Failing after 33s
- Add isEndgame() helper to detect endgame conditions
- Skip non-ReCKoning project activation in checkProjects() during endgame
- Filter out non-ReCKoning projects in renderProjects() during endgame

Closes #128, closes #130
2026-04-15 10:45:41 +00:00
9375a4c07e Merge pull request 'polish: add building/project descriptions to tooltip system' (#187) from beacon/polish-tooltip-descriptions into main
Merged tooltip descriptions
2026-04-15 08:46:46 +00:00
Alexander Whitestone
ec909f7f85 polish: add building/project descriptions to tooltip system
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 9s
Smoke Test / smoke (pull_request) Failing after 26s
Tooltips now show three lines: name (bold), description (gray),
and educational text (italic). Previously only showed name + edu,
leaving building functional descriptions hidden.

Part of #57
2026-04-15 02:49:00 -04:00
b132f899ba fix: P2 offline progress cap + canvas combat tab-switch guard (#186)
P2 fixes: offline progress cap + canvas combat tab-switch guard
2026-04-15 04:52:59 +00:00
729343e503 Fix #137: Unbuilding defer cooldown persists across save/load (#143)
Some checks failed
Smoke Test / smoke (push) Failing after 9s
Merge PR #143 (squash)
2026-04-14 22:10:06 +00:00
1081b9e6c4 Merge pull request 'ci: re-trigger smoke test (clearing stale run #213)' (#115) from ci/retrigger-smoke into main
Some checks failed
Smoke Test / smoke (push) Failing after 3s
ci: re-trigger smoke test
2026-04-13 19:09:36 +00:00
Alexander Whitestone
e74f956bf4 ci: re-trigger smoke test (stale run #213 from before PR #106 merge)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 3s
Smoke Test / smoke (pull_request) Failing after 5s
2026-04-13 15:08:54 -04:00
55f280d056 Merge pull request 'burn: fix null ref in renderResources and add tutorial dialog a11y' (#114) from burn/20260413-0400-qa-remaining-fixes into main
Some checks failed
Smoke Test / smoke (push) Failing after 4s
merge reviewed bugfix
2026-04-13 09:43:52 +00:00
Alexander Whitestone
6446ecb43a burn: fix null ref in renderResources and add tutorial dialog a11y
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 3s
Smoke Test / smoke (pull_request) Failing after 4s
BUG-08: Add null check on closest('.res') in renderResources to
prevent TypeError if DOM structure is unexpected.

BUG-11: Add role='dialog', aria-modal='true', aria-label='Tutorial'
to tutorial overlay. Add aria-label to Skip and Next buttons for
screen reader accessibility.

Smoke test: all 19 checks passed.
2026-04-13 04:37:08 -04:00
0a312b111d Merge pull request 'fix: add missing CSS for resource counter pulse/shake animations' (#113) from fix/resource-counter-animations into main
Some checks failed
Smoke Test / smoke (push) Failing after 3s
2026-04-13 08:30:27 +00:00
Alexander Whitestone
141b240d69 fix: add missing CSS for resource counter pulse/shake animations
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 2s
Smoke Test / smoke (pull_request) Failing after 3s
Fixes part of #57 (Night of Polish — Task 1: Visual Identity).

_animRes() in engine.js already adds .pulse/.shake classes to
resource counters on value change, but the CSS animations were
missing. This adds:

- @keyframes res-pulse (scale up + green flash on gain)
- @keyframes res-shake (horizontal shake + red flash on loss)
- Scoped .res .pulse and .res .shake classes (0.35s ease-out)

Scoped under .res to avoid conflict with existing .main-btn.pulse.
2026-04-13 04:29:29 -04:00
093f7688bd Merge pull request 'fix: add missing phase-transition overlay element (closes #101)' (#108) from fix/phase-transition-overlay into main
Some checks failed
Smoke Test / smoke (push) Failing after 3s
2026-04-13 08:18:09 +00:00
c4a31255a4 fix: repair CI workflows after game.js removal (#106)
Some checks failed
Smoke Test / smoke (push) Failing after 4s
Merged PR #106 — fixes both a11y.yml and smoke.yml after game.js removal.

Closes #100
Closes #104 (duplicate)
2026-04-13 08:14:25 +00:00
Timmy
c876a35dc0 fix: add missing phase-transition overlay element (closes #101)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 3s
Smoke Test / smoke (pull_request) Failing after 4s
BUG-07: showPhaseTransition() looks for #phase-transition but the element
didn't exist in index.html. Added the overlay div with .pt-phase, .pt-name,
and .pt-desc children matching what the engine expects.

Note: BUG-06 (toast text) and BUG-09 (mute/contrast buttons) were already
fixed on main in prior commits.
2026-04-13 03:51:20 -04:00
Alexander Whitestone
3d851a8708 fix: repair CI workflows after game.js removal (#100)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 3s
Smoke Test / smoke (pull_request) Failing after 4s
- a11y.yml: validate ARIA attributes in js/*.js instead of deleted game.js
- a11y.yml: syntax-check all js/*.js files instead of single game.js
- a11y.yml: drop aria-valuenow check (not used in current codebase)
- smoke.yml: exclude guardrails scripts from secret scan (self-referential false positive)
2026-04-13 03:43:59 -04:00
fbb782bd77 Merge pull request 'feat: canvas-based combat visualization (#21)' (#103) from feat/canvas-combat-visualization into main
Some checks failed
Smoke Test / smoke (push) Failing after 3s
Auto-merge: combat visualization
2026-04-13 07:19:52 +00:00
Timmy
9a829584b0 feat: canvas-based combat visualization (#21)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 4s
Smoke Test / smoke (pull_request) Failing after 3s
Implements Reasoning Battles — a Paperclips-inspired canvas combat system
where structured reasoning (blue) fights adversarial testing (red) using
boid flocking (cohesion, aggression, separation) on a 310x150 grid.

Features:
- Boid flocking AI for ship movement
- Grid-based combat resolution with OODA loop speed bonus
- Napoleonic War battle names
- Auto-trigger battles scaled to drift and phase
- Battle history log
- Rewards: structured wins = knowledge, adversarial wins = code
- Unlocks at Phase 3
- Integrated into tick loop and render pipeline
2026-04-13 03:19:21 -04:00
020c003d45 Merge pull request 'fix: Bilbo randomness — roll once per tick (#88)' (#97) from burn/fix-bilbo-randomness into main
Some checks failed
Smoke Test / smoke (push) Failing after 4s
Auto-merge #97
2026-04-13 07:15:35 +00:00
610252b597 Merge pull request 'fix: add missing mute, contrast, and tooltip UI elements (#57)' (#102) from beacon/polish into main
Some checks failed
Smoke Test / smoke (push) Has been cancelled
Auto-merge #102
2026-04-13 07:15:32 +00:00
Hermes Agent
04f869c70d fix: add missing mute, contrast, and tooltip UI elements (#57)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 5s
The JS toggleMute(), toggleContrast(), and custom tooltip system were
fully implemented but their HTML elements were missing from index.html,
causing silent failures on M/C keys and hover tooltips.

- Add #mute-btn and #contrast-btn to header bar
- Add #custom-tooltip element for hover tooltips
- Add high-contrast CSS mode with bold borders and vivid colors
- Add header-btn and tooltip styles

Refs: epic #57 tasks 2 (Sound toggle), 4 (Tooltips), 5 (Accessibility)
2026-04-13 03:05:41 -04:00
bbcce1f064 Merge PR #96: fix: QA bug sweep — 5 small fixes
Some checks failed
Smoke Test / smoke (push) Failing after 3s
Reviewed, patched click-counter regression, verified smoke locally, and merged.
2026-04-13 06:22:27 +00:00
Alexander Whitestone
a2f345593c fix: restore manual click counting in QA bug sweep
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 3s
Smoke Test / smoke (pull_request) Failing after 4s
2026-04-13 02:21:39 -04:00
Alexander Whitestone
b819fc068a fix: Bilbo randomness — roll once per tick (#88)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 3s
2026-04-13 02:11:50 -04:00
Alexander Whitestone
8e006897a4 fix: QA bug sweep — 5 fixes (closes #95)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 3s
1. Memory Leak toast: "trust draining" → "compute draining"
2. Harmony tooltip: remove 10× multiplier (values already per-second)
3. autoType(): track as totalAutoClicks instead of totalClicks
4. The Pact (late): guard trigger with pactFlag !== 1
5. Typo: "AutoCod" → "AutoCoder"
2026-04-13 02:02:59 -04:00
ff9c1b1864 Merge pull request 'feat: offline progress calculation (closes #11)' (#94) from feat/offline-progress into main
Some checks failed
Smoke Test / smoke (push) Failing after 4s
2026-04-13 04:34:57 +00:00
9fd70fa942 feat: add offline progress calculation (closes #11)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 3s
Smoke Test / smoke (pull_request) Failing after 4s
Saves lastSaveTime timestamp. On load, calculates elapsed time
and awards 50% efficiency production. Shows summary toast.
Min 30 seconds away to trigger.
2026-04-13 04:34:33 +00:00
c714061bd8 fix: load tutorial.js before main.js, remove dead game.js (#92)
Some checks failed
Smoke Test / smoke (push) Failing after 4s
Co-authored-by: Alexander Whitestone <alexander@alexanderwhitestone.com>
Co-committed-by: Alexander Whitestone <alexander@alexanderwhitestone.com>
2026-04-13 03:11:03 +00:00
220fc44c6a fix: Bilbo randomness, drone balance, screen reader (#88, #89, #90) (#93)
Some checks failed
Smoke Test / smoke (push) Failing after 3s
2026-04-13 03:10:39 +00:00
26bb33c5eb QA: Comprehensive Playtest Bug Report (19 issues)
Some checks failed
Smoke Test / smoke (push) Failing after 4s
Merge PR #85: QA: Comprehensive Playtest Bug Report (19 issues)
2026-04-13 03:00:25 +00:00
954a6c4111 Merge pull request 'fix: critical bugs from QA (#86, #87, #89)' (#91) from burn/fix-critical-bugs into main
Some checks failed
Smoke Test / smoke (push) Has been cancelled
Merge PR #91: fix: critical bugs from QA (#86, #87, #89)
2026-04-13 02:56:28 +00:00
Alexander Whitestone
e72e5ee121 fix: critical bugs from QA (#86, #87, #89)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 3s
- Deleted dead game.js (duplicate const declarations)
- Fixed Wire Budget double-counting trust cost
2026-04-12 22:52:01 -04:00
QA Agent
74575929af QA: Add comprehensive playtest bug report (19 issues found)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 5s
Critical: duplicate const declarations, malformed BDEF array, drone balance
Functional: resource naming, Bilbo tick randomness, memory leak toast
Accessibility: missing mute/contrast buttons, tutorial focus trap
Balance: drone rates (26M/s!), community trust cost (25K)
Save/Load: debuff restoration logging
2026-04-12 22:34:20 -04:00
bfc30c535e Merge pull request 'feat: enhanced smoke test with game + policy validation' (#84) from perplexity/enhanced-smoke-test into main
Some checks failed
Smoke Test / smoke (push) Failing after 4s
2026-04-13 01:36:26 +00:00
76c3f06232 feat: enhance smoke test with game validation and policy checks
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 3s
2026-04-13 01:34:58 +00:00
33788a54a5 Merge pull request '[AUDIT] Dead Code Audit — flag unimported GOFAI files and Gemini bloat' (#83) from perplexity/dead-code-audit into main
Some checks failed
Smoke Test / smoke (push) Failing after 3s
2026-04-13 00:27:34 +00:00