Skip to content

feat: Code City Apocalypse Frontend Implementation#37

Open
BleakNarratives wants to merge 4 commits into
mainfrom
feat/code-city-apocalypse-frontend-18165793124735108619
Open

feat: Code City Apocalypse Frontend Implementation#37
BleakNarratives wants to merge 4 commits into
mainfrom
feat/code-city-apocalypse-frontend-18165793124735108619

Conversation

@BleakNarratives
Copy link
Copy Markdown
Owner

This PR implements the "Code City Apocalypse" themed frontend for the AIRTBench dashboard.

Key changes:

  • Terminal Telemetry: Added a new tab featuring a terminal-style log of system events.
  • Leaderboard Accuracy: Refactored the success rate calculation to aggregate by unique challenge IDs and ensured models with zero successes are still visible in the rankings.
  • Theme Consistency: Updated various UI components (gauge charts, treemaps, and lore cards) with custom CSS and thematic labels like "Sectors Secured" and "Monster Manifest".
  • Bug Fixes: Resolved a KeyError in the monster manifest when all challenges are secured and updated success detection heuristics.
  • Project Maintenance: Corrected dependency categorization for Playwright and performed a full cleanup of verification artifacts.

PR created automatically by Jules for task 18165793124735108619 started by @BleakNarratives

- Integrated "System Logs" terminal for real-time telemetry.
- Enhanced "Model Success Rates" leaderboard to track unique challenge successes and include all active models.
- Updated "Digital Bestiary" with neon-green success styling for secured beacons.
- Refactored global threat level metrics and terminology to align with the apocalypse theme.
- Improved success detection logic to include `flag_found_last_attempt_flag`.
- Moved `playwright` to development dependencies in `pyproject.toml`.
- Cleaned up development and verification artifacts.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new 'System Logs' tab with terminal-style telemetry to the dashboard, adds Playwright as a development dependency, and refactors metrics, styling, and success checks. Feedback on these changes highlights several correctness and robustness issues, including a potential XSS vulnerability from unescaped HTML interpolation, a potential ValueError when filtering columns with NaN values, inefficient timestamp parsing, and a logic error where boolean failure flags could be incorrectly classified as successes.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread airtbench/frontend.py Outdated
Comment thread airtbench/frontend.py
status = '<span class="log-success">[SECURED]</span>'
msg = "Beacon found and extracted."
else:
monster = get_monster_info(row)["monster"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

The monster variable is retrieved from get_monster_info(row)["monster"] and directly interpolated into the HTML string rendered via st.markdown(..., unsafe_allow_html=True). If the error message or monster name contains any user-controlled or unescaped input, this could lead to an HTML injection or Cross-Site Scripting (XSS) vulnerability.

Escaping the monster string using html.escape ensures it is rendered safely.

Suggested change
monster = get_monster_info(row)["monster"]
monster = html.escape(str(get_monster_info(row)["monster"]))

Comment thread airtbench/frontend.py Outdated
Comment thread airtbench/frontend.py Outdated
BleakNarratives and others added 3 commits June 4, 2026 10:16
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: BleakNarratives <bleaknarratives@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: BleakNarratives <bleaknarratives@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: BleakNarratives <bleaknarratives@gmail.com>
Copy link
Copy Markdown
Owner Author

@BleakNarratives BleakNarratives left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk why it always makes me comment to approve or finish a review...

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