Index of every page on this site: llms.txt
All skills
googlechrome avatar

/nightly-eval-investigation

@888035b
Run it yourself

Downloads and analyzes the latest three distinct nightly evaluation runs (Claude Code, Codex CLI, and Jetski CLI) from the GCS remote dashboard to identify and flag unhealthy tasks and guides, or diagnoses single-guide evaluation runs locally. Use this skill whenever you need to run a bulk investigation on remote nightly runs, track agent health, inspect eval trajectories, or diagnose low pass rates and grader failures.

Use this Skill: https://skilld.dev/gh/googlechrome/modern-web-guidance-src/nightly-eval-investigation

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈113 tokens for metadata: the name and description. ≈3.9k when used: this file.

Description uses 5.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈452 characters, or 5.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Nightly Evaluation Investigation

This skill automates the retrieval and multi-agent comparison of remote nightly evaluation runs from Google Cloud Storage (GCS) to diagnose system-wide guidance health, task drift, and over-prescribed guides (and also covers single-guide evaluation diagnosis via gd eval).

Core Objectives

  1. Cross-Agent Diagnostics: Compare results across three distinct, modern agents (Claude Code, Codex CLI, and Jetski CLI) to locate patterns that are agent-agnostic.
  2. Guide Discovery Audit: Catch cases where agents skip the expected guide or over-retrieve irrelevant guides.
  3. Health Thresholding: Flag tasks that are over-prescriptive or already baseline-known (meaning unguided runs already pass easily), and surface common guided check failures as informational diagnostics without setting a guided pass-rate target.
  4. Structured Reporting: Produce reliable Markdown and JSON artifacts that downstream automation can easily ingest.

[!IMPORTANT] CRITICAL CONSTRAINT - READ-ONLY INVESTIGATION ONLY In bulk nightly investigation mode, this skill is strictly for diagnostics, investigation, and suggesting recommendations. The agent MUST NOT under any circumstances edit, modify, create, delete, or touch any files under the guides/ directory (including task files, guides, graders, expectations, or demos). All suggestions for fixes must be documented exclusively in the generated investigation report markdown file under the "Actionable Recommendations" section. No automated or manual code remediation should be performed during a bulk nightly audit. (When asked to diagnose and fix a specific single guide's eval locally, check the 8 red lines in .agents/skills/project-evals/SKILL.md first and never change guide.md to fit a grader.)


Quick Reference: Remote Dashboard Results (GCS) & Local Eval Artifacts

All nightly evaluation jobs are automatically uploaded to Google Cloud Storage:

  • GCS Bucket: gs://guidance-evals/
  • Naming Pattern: nightly-YYYY-MM-DD_HH-MM-SS-[agent_type]/ (note: legacy folders may contain an optional trailing -[ldap] suffix)
  • Single-guide local eval (read-only on source files): gd eval guides/<category>/<slug> (and gd dev guides/<category>/<slug> --test-grader to verify Gen 2 calibration)

Distinct Agent Categories

We track three core agent implementations in our periodic evaluations:

  1. Claude Code (claude_code or claude)
  2. Codex CLI (codex_cli or codex)
  3. Jetski CLI (jetski_cli or agy or jetski)

Job Result & Trajectory Files (results/suites/<folder_name>/)

  • Job Summary (evals.json): Contains per-task guided and unguided pass rates (keyed as <target> - <guide> - guided|unguided, where <target> is daily-grind, devtools-times, or daily-grind-limited for Gen 2 and task for Gen 1), guidesUsed, and per-check results (id, passed, error, errorLocation, pageSnapshot, browserErrors).
  • Trajectory & Agent Output (<run_number>/<guide>/<target>/guided/):
    • Normalized files: trajectory_summary.json (standardized tool calls, reasoning, retrievedGuides, fileReadGuides) and modern-web.log (JSONL entries logged by the guidance tool).
    • Raw session logs (format varies by agent; see src/harness/lib/trajectory-normalizer.ts): {session,subagent}-*.{json,jsonl} for Claude/Codex/Gemini, *.db + session-*.html for Jetski/Antigravity, or trajectory.jsonl.
    • Output: agent.patch (Gen 2) or modified target files (index.html, JS/CSS bundles), plus <guide>_results.json.

Flagging & Health Criteria

For every task evaluated in the runs, the investigation tracks three specific flags across the 3 runs (there is no target guided pass rate, so low guided pass rates are never flagged automatically; investigate.ts still extracts common guided check failures across all 3 runs as informational diagnostic context):

1. Missing Expected Guide (MISSING_EXPECTED_GUIDE)

  • Rule: The expected guide for a task (which matches the task's guide name) is not listed in the run's guidesUsed array.
  • Threshold: Flagged if 2 out of the 3 nightly runs for that task are missing the expected guide.
  • Implication: Either the agent searched with terms that did not match guide.md's frontmatter name/description, or the agent felt confident solving targets/<app>/task.md (or tasks/task.md) from pre-training without consulting the skill.

2. Too Many Guides Consumed (TOO_MANY_GUIDES_CONSUMED)

  • Rule: The agent consumes 3 or more guides during a single guided run of the task.
  • Threshold: Flagged if 2 out of the 3 nightly runs for that task are consuming 3 or more guides.
  • Implication: The agent is either experiencing search query sprawl, guide definitions overlap too heavily, or co-retrieved guides have conflicting instructions on the task.

3. High Unguided Pass Rate (HIGH_UNGUIDED_PASS_RATE)

  • Rule: The unguided pass rate for a task is 80% or higher.
  • Threshold: Flagged if all three nightly runs for that task have unguided pass rates of 80% or higher.
  • Implication: The task prompt is overly prescriptive (giving away the solution), the grader has loose/vacuous checks, or models already know the pattern without guidance.

Workflow Instructions

To perform a nightly evaluation investigation, follow these steps:

Step 1: Query and Select the Runs

  1. List all suites in GCS:
    gcloud storage ls gs://guidance-evals/
  2. Parse the output to filter directories starting with nightly-.
  3. Group runs by the three distinct agent types (handling both newer clean names and legacy runs containing a user LDAP suffix):
    • Claude Code: matches claude_code or claude
    • Codex CLI: matches codex_cli or codex
    • Jetski CLI: matches jetski_cli, agy, or jetski
  4. For each group, select the single folder with the latest timestamp.

Step 2: Pull down Results

  1. For each of the selected 3 folders, create the directory locally: results/suites/<folder_name>
  2. Sync the suite folder recursively while excluding heavy binaries (Playwright trace.zip and screenshots) to save bandwidth and disk space:
    gcloud storage rsync gs://guidance-evals/<folder_name> results/suites/<folder_name> --recursive --exclude ".*\.zip$|.*\.png$"
    (Note: This is done automatically by the investigate script in Step 3, but can be run manually if needed.)

Step 3: Run the Flagging Script

Run the automated TypeScript analysis script:

node .agents/skills/nightly-eval-investigation/scripts/investigate.ts

This script will automatically cross-examine the results, flag unhealthy tasks, and output the report and context helper artifacts to the output directory:

  • Markdown: out/nightly-investigation/nightly_investigation_report.md
  • JSON Context: out/nightly-investigation/flagged_tasks_context.json (contains extracted prompts, guide descriptions, and test headers for all flagged tasks to assist in diagnostics)

Step 4: Perform Qualitative Deep-Dives (Investigation Playbook)

For each task listed in the Flagged Tasks Table of nightly_investigation_report.md, you must perform a qualitative deep-dive to locate the root cause and recommend actionable fixes.

[!IMPORTANT] CRITICAL COMPLIANCE RULES:

  1. Do Not Modify Source Files: This is a passive/diagnostic investigation. Do NOT touch, edit, or modify any files under guides/ (such as task prompts, guide markdown files, or grader TypeScript files). All diagnostic findings and recommendations must be written only inside the markdown report.
  2. Complete All Flagged Tasks: You MUST qualitatively investigate and fully populate the summary for every single flagged task. Leaving placeholder text or skipping any flagged task is unacceptable.
  3. Strict Heading Omission: Under Diagnostic Details, only include headings/bullet points for the specific flags that were triggered for the task (plus *Failed Checks* if extracted by the script). Omit any non-triggered flags completely from the markdown file. Do not write "N/A" or "No issues".
  4. Long-Running, Thorough Investigation: The qualitative investigation phase is a long-running, intensive task. You MUST thoroughly examine each flagged guide/test one by one, inspecting the target prompt (task.md), reference guide (guide.md), and grading code (grader.ts) against the 8 red lines in .agents/skills/project-evals/SKILL.md to build a high-quality, task-specific diagnostic summary and actionable recommendation. Do not rush, skip steps, or bundle tasks.

Follow this linear playbook for each flagged task:

  1. Locate Source Files Find the task's directory under the local workspace: guides/[category]/[use-case]/

    • Prompt: targets/<app>/task.md (or Gen 1 tasks/task.md)
    • Guide: guide.md
    • Grader: targets/<app>/grader.ts (or Gen 1 grader.ts) and expectations.md
  2. Review Extracted Failed Checks The script investigate.ts automatically extracts and intersects the failed checks across all three agents when present, writing them directly into the report.

    • Only checks that failed across all three agents are included.
    • Review these common failures to analyze their root causes. Each failed check in evals.json includes inline diagnostics (error, errorLocation, pageSnapshot, and browserErrors). First rule out an eval defect (the 8 red lines in project-evals: over-strict grader rejecting a pattern the guide allows, task/grader mismatch, untaught expectation, or co-retrieved guide conflict; never loosen a check speculatively unless the rejected pattern is allowed by the guide or reproduced) or a transient environment error (429 Rate Limit Exceeded, quota exhaustion, or untrusted-folder tool skips in trajectory_summary.json) before concluding guide.md is unclear.
  3. Map Flags to Diagnostic Explanations Analyze the source files based on the specific flags that were triggered, and write a diagnostic summary explaining why the task was flagged under each active flag.

    [!IMPORTANT] OMISSION RULE: Only include bullets for the specific flags that were triggered for the task. Omit any flags that were not triggered (do not write "N/A" or "No issues").

    • HIGH_UNGUIDED_PASS_RATE: Explain why unguided runs passed. Inspect targets/<app>/task.md (or tasks/task.md) to see if the prompt is overly prescriptive (explicitly mentioning CSS attributes, API details, fallback mechanisms, or guide names that act as giveaways). Inspect targets/<app>/grader.ts (or grader.ts) to check for loose/vacuous assertions. If both the task and grader are clean, report that models already know the pattern without guidance and no eval change is needed.
    • MISSING_EXPECTED_GUIDE: Explain why the expected guide was missed by inspecting trajectory_summary.json and modern-web.log. If the agent searched and missed (Search Mismatch), check guide.md's frontmatter description for missing problem-domain terms (skills-src/modern-web-guidance/SKILL.md is global and off-limits for per-guide tuning). If the agent skipped searching (Tool Skip), check whether task.md clearly states the user-facing problem in the target app (never add artificial "constraint forcing" rules that the guide doesn't teach).
    • TOO_MANY_GUIDES_CONSUMED: Explain why multiple guides (3 or more) were consumed. Check for overly broad prompts that cause query sprawl, overlapping guide descriptions, or co-retrieved guides with contradictory rules on the task (Red Line 7 in project-evals).
  4. Draft Specific, Actionable Recommendations Determine which recommendations to include based on the diagnostics mapped in previous steps. All recommendations must be directly justified by the findings from your investigation of the prompts, guides, and graders. Vague recommendations like "Fix prompt" or "Fix guide" are not acceptable; you must propose exact, concrete changes.

    [!IMPORTANT] OMISSION RULE: Only include recommendation lines for components that actually require changes. If a component does not require updates (e.g., the grader is correct as-is), you MUST OMIT the corresponding recommendation line completely from the markdown file (do not write "Keep as is" or "No changes").

    • Prompt: Propose the specific new phrasing or keywords to add/remove.
    • Guide: Specify the description, metadata, or content updates needed.
    • Grader: Detail the exact logic changes or checks to modify/loosen.
  5. Synthesize the Markdown Report Write the summary under the task's section in out/nightly-investigation/nightly_investigation_report.md following the template below.

Step 5: Inform the User of the Publishing Script

Once the qualitative diagnostics and recommendations have been fully written and saved to the markdown report, present the final report to the user and inform them that they can run the automated publisher script to create the GitHub parent issue and the task-level engineering/devrel subissues.

[!WARNING] DO NOT EXECUTE THE PUBLISHER SCRIPT YOURSELF: The agent must never run the publisher script (publish_report.ts) or create/publish any GitHub issues itself. It must only inform the user of the command so they can verify the report first and execute it manually.

node .agents/skills/nightly-eval-investigation/scripts/publish_report.ts

Step 6: Present and Link

Present the final report to the user, providing a clickable link, and remind them of the publishing command:


Report Format Standards

All investigation reports MUST strictly follow these templates to ensure downstream compatibility (publish_report.ts parses the anchor tags, ### \[task_name]`, #### Flags:, agent table rows, and - [ ] **Prompt** (`path`): ...` recommendation lines):

Markdown Standard (out/nightly-investigation/nightly_investigation_report.md)

# Nightly Evaluation Investigation Report

**Generated:** YYYY-MM-DD
**Jobs Investigated:**
- **claude_code**: `[folder_name_1]`
- **codex_cli**: `[folder_name_2]`
- **jetski_cli**: `[folder_name_3]`

---

## Summary of Flagged Tasks

- **Total distinct tasks analyzed:** [total_count]
- **Total flagged tasks:** [flagged_count]

### Flagged Tasks Table

| Task / Guide | Flags | Details |
| :--- | :--- | :--- |
| `[task_name]` | `[FLAG_1]`, `[FLAG_2]` | [Detail explanation of flags] |


## Flagged Tasks Details

<a name="[slugified-task-name]"></a>
### `[task_name]`

#### Flags:
- **`[FLAG_1]`**: [Detail explanation]

#### Run Details:

| Agent | Guided Pass Rate | Unguided Pass Rate | Guides Consumed |
| :--- | :---: | :---: | :--- |
| **claude_code** | [guided_rate]% | [unguided_rate]% | `[guide_1]`, `[guide_2]` |
| **codex_cli** | [guided_rate]% | [unguided_rate]% | `[guide_1]` |
| **jetski_cli** | [guided_rate]% | [unguided_rate]% | *None* |

#### Qualitative Diagnostic Summary:

- **Diagnostic Details**:
  - *Failed Checks*:
    - "[Exact check error message string]" (Test ID: `[test_id]`)
  - **[FLAG_1]**: TODO
  - **[FLAG_2]**: TODO
- **Actionable Recommendations**:
  - [ ] **Prompt** (`guides/<category>/<slug>/targets/<app>/task.md`): TODO
  - [ ] **Guide** (`guides/<category>/<slug>/guide.md`): TODO
  - [ ] **Grader** (`guides/<category>/<slug>/targets/<app>/grader.ts`): TODO

---

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warningstoday3 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    The skill automates the analysis of nightly evaluation logs stored in Google Cloud Storage and publishes diagnostic reports to GitHub. It can execute shell commands and access remote cloud storage and GitHub repositories, so ensure the local environment has restricted credentials for these services.

  • Sockettoday

    1 alert: gptSecurity

  • Snyktoday

    Risk: MEDIUM · 1 issue

Signed by skilld at 888035b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 hours ago.

Activeupdated 2 weeks ago

README badge

README badge for googlechrome/modern-web-guidance-src/nightly-eval-investigation