Repository navigation
feat(fp): live AI activity feed, decision beacons and staggered mayor turns - #13
Merged
Merged
Conversation
… turns Show the city's AI at work from the street. Every mayor turn, council ruling, Chaos Director pick, Grid Operator order and Gazette front page lands as a card in a feed at the top right. A card names who decided and the model they run on, says whether the answer came live, from a replay, from a fallback after a failed live call or from the offline planner, and shows what they did, why, any votes and where. J cycles the feed between full, brief and hidden. A decision with a place raises a light beacon in the agent's colour and pings the compass and minimap without a toast. Within 30 tiles a beacon gets a floating tag that keeps clear of the HUD. G routes the GPS to the newest decision with a place. On foot the city brain spreads the five mayor turns over the day (scripts/ai/mayor_turns.gd) instead of running them all at dawn. A turn starts only while no sliced tick or spread work is in flight, so its actions never force a synchronous finish, and a turn still waiting when the day ends runs on its own day. The feed's header says who is deciding or who goes next, and saves keep the waiting turns. Prompt text helpers move to scripts/ai/brain_text.gd. Behind the "activity" flag, with fp_activity_test and a staggered-day check in fp_brainspread_test. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Automated reviewNo new findings on the 35 changed files (gdlint, complexity, TODO policy, dead code). Run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Shows the city's AI at work from the street. This is the first of the PRs for the engagement feedback.
scripts/fp/activity/, top right):Jcycles full, brief and hidden. The feed hides under menus and cards (at once under the pause menu), but not under the chat input.ai:<agent>, no toast).Groutes the GPS to the newest decision with a place.scripts/ai/mayor_turns.gd):city_brain.gdtoscripts/ai/brain_text.gd, sincecity_brain.gdwas at the file-length limit.ai_feed(J, keyboard only, since every pad button is taken on foot).Greusessite_waypointon foot.activityflag (on by default).Checks
tools/gate.sh full: PASS (no flaky retries).pre-commit run --all-filesandpython tools/checks/run_all.py: PASS. API docs regenerated.fp_activity_test.fp_brainspread_testadds a staggered-day check driven by the sim's own sliced clock at one job step per frame. The turns land at ticks 0, 1, 1, 2 and 3 with no forced finish.