agent-session-format-check
Skill941 starsChanged 9 days agoMITView on GitHub
Verify agent session format compatibility for Agent Sessions. Use when any agent CLI updates, when monitoring flags drift, or when bumping max verified versions (fixtures + docs + tests). Covers session schema, usage/limits tracking, storage backends, and discovery path contracts for all supported agents.
In this repository9 other files it gives its agents.
- agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-session-format-checkSkill
- deploy-agent-sessionsSkill
- deploySkill
- release-notesSkill
- add-agent-supportSkill
- agent-support-matrixSkill
- sc-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 5 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Never print credential files: inspect key names and value types only.
- Distinctive: line 15
Run in this order:
- Very specific: line 18
Run --mode weekly for the initial snapshot.
- Very specific: line 19
Update every installed stable CLI behind upstream with --mode update.
- Very specific: line 21
Run --mode prebump --agent NAME --keep-sandbox for every driver, including held agents.
- Distinctive: line 26
Run gated real-session replay and verify official prices for every table provider.
- Very specific: line 31
Run a final weekly. Write matrix, ledger, tracking log and append-only finding tracker from that report only.
- Very specific: line 33
Run final Python/Xcode checks, final weekly and git status --short.
- Very specific: line 57
Do not change parsers/fixtures/docs without explicit user approval.
- Very specific: line 106
Use production discovery, full parsers and usage code for replay.
- Very specific: line 114
No real-store edits or session deletion.
- Very specific: line 116
Use --allow-real-home for configured real-home drivers.
- Very specific: line 121
Use patches for code. Add Swift files with scripts/xcode_add_file.rb.
- Very specific: line 125
Read rebuild reports before --emit.
- Distinctive: line 127
Do not infer handled from tolerance: cite a read path and a behavior test.
- Distinctive: line 131
Read the relevant reference before making a claim:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Session Format Check
Runbook: update format check
An explicit "update format check" authorizes stable CLI updates, real-home prebumps, redacted fixtures, tests, driver fixes, parser fixes for proven defects, and records. It does not authorize commits, pushes, tags, releases, sign-in, purchases, or beta installs. Never print credential files: inspect key names and value types only.
Run in this order:
./scripts/agent_watch.py --mode preflight. Collect owner actions once; continue with other agents while sign-ins are pending. Credential presence does not prove auth.- Run
--mode weeklyfor the initial snapshot; readSTEWARDS.mdfor ownership. - Update every installed stable CLI behind upstream with
--mode update; update Codex last. Re-read PATH after each update. Do not install absent steward agents or chase Qwen. - Run
--mode prebump --agent NAME --keep-sandboxfor every driver, including held agents. Add--allow-real-homeforreal_home_sessionagents. Keep failed direct reports. Confirm a real tool call and non-zerobaseline_type_countfor fresh sessions. - Triage every new key/type as handled, noise, watch or candidate (§1e). Handled needs
a read path and a behavior test. Candidates belong in
docs/backlog.md. - Run gated real-session replay and verify official prices for every table provider.
- Fix proven defects; add positive and negative cases for each changed usage/parsing rule. Treat the first fix as a draft. Run Python and stable Xcode tests.
- Recheck upstream after all updates; if a stable version moved, repeat update/prebump for that agent once. Install the weekly LaunchAgent after updates (PATH is baked in).
- Run a final weekly. Write matrix, ledger, tracking log and append-only finding tracker
from that report only. Set
as_of_committogit rev-parse --short HEAD. - Run final Python/Xcode checks, final weekly and
git status --short; report from--summary REPORT.json, adding evidence-backed app changes and holds.
Done means every driver has current real evidence or a dated hold and reason; every new
field has a value bucket; replay has no unexplained failure; recent model slugs are priced;
tests pass without an unexplained count decrease; only intended paths changed.
Propose separate commits as path lists: tooling, app fixes, then records. Do not commit.
Records are written last, after review of fixes; as_of_commit names the audited baseline.
CHANGELOG Bug Fixes names defects in a released build only; workflow hardening is Maintenance.
Final report: per-agent table (agent, tier, old -> new version, format change, app change, held/blocked, what clears it); proposal item status and corrected claims; replay/prices; test totals and final report path; proposed commit paths; one list of required owner actions.
Answer one precise question for every supported agent:
Can current Agent Sessions code support the latest available session/storage/usage format from the latest available agent build?
The answer must be layered. Do not collapse version checks, stale samples, schema fingerprints, discovery contracts, and usage probes into a vague severity label.
Evidence-first:
- Gather a report + sample paths first.
- Do not change parsers/fixtures/docs without explicit user approval.
Related skill: agent-support-matrix — maintains the matrix YAML, ledger, and
update-checklist workflow. This skill focuses on detection and evidence collection;
agent-support-matrix focuses on recording and gating version bumps.
Process doc: docs/agent-support/monitoring.md — defines the compatibility verdicts,
legacy severity model, cadence, and escalation workflow that feed into this skill.
Question and verdicts
Can current Agent Sessions read the latest available agent's session, storage and usage formats? Treat schema, usage, discovery, sample freshness and version identity separately.
supports_latest: latest known build is covered byevidence.fresh_evidence_source == "latest_prebump_report"andcompatibility.latest_real_session_evidence == truewithcompatibility.latest_status == "current_fetch_known". This verdict is not a clean bill by itself: also require the currentweekly.schema_diff.unknown_types == [],weekly.schema_diff.unknown_keys == {}, healthy probes, and a passing discovery contract. The compatibility layer can reuse an older clean prebump report while a newer weekly sample has already drifted; in that case report and investigate the current drift rather than repeatingsupports_latest.supports_installed_only: installed build is covered by non-stale real local evidence, but latest is newer, cached from a prior report, unknown, or lacks fresh real-session proof.latest_unknown: no configured/reachable latest source or no real-session driver exists; do not claim latest support. CheckSTEWARDS.mdbefore calling this a finding — for a steward-verified agent not installed here, this verdict is the expected output and the agent belongs to its steward, not to you (§1g).blocked_stale_sample: evidence predates the installed CLI; run prebump before claiming support.blocked_no_fresh_evidence: a version changed but no fresh matching sample proves support.format_drift_detected: unknown schema/storage/usage fields appeared; update fixtures/parsers.blocked_thin_sample: the sample was both narrow and tiny, so it evidenced nothing either way (§5). Generate a session that actually uses tools — not a one-line prompt.monitoring_broken: latest source, usage probe, or discovery contract failed.real_session_auth_failedin blockers: the real-session driver ran but the sandboxed agent was not authenticated; re-auth or provide the configured env token, then rerun prebump.
Evidence and safety
A read-only check gathers reports first and changes nothing without explicit authority. An authorized update sweep uses the authority above; no extra approval is needed for its specified fixes, fixtures or records. Never expand that into external publication.
Use production discovery, full parsers and usage code for replay. Run:
AS_REAL_SESSION_REPLAY=1 ./scripts/xcode_test_stable.sh -only-testing:AgentSessionsTests/RealSessionReplayTests.
The normal suite skips real stores. Output is counts plus schema-discriminator histogram
keys in scripts/probe_scan_output/replay/counts.json: no text, paths, IDs or names.
The replay launches scripts/replay_watchdog.py: a separate process kills the test host
after 180 seconds even if a parser blocks. Counts are saved between sessions so a timeout
keeps partial evidence. Finish Codex, Claude and OpenCode first; report omitted sources.
No real-store edits or session deletion. SQLite reads use read-only mode. Never print
credential files; list key names and value types only. Presence is not proof of sign-in.
Use --allow-real-home for configured real-home drivers. Keep their sandbox cwd and
workspace flags; repository status and content changes fail as sandbox_breach, including
rewrites of existing dirty or untracked files. A breach stops model fallback.
Fallback models are tried only for model_unavailable, never for auth, quota or timeout.
Use patches for code. Add Swift files with scripts/xcode_add_file.rb. Run one xcodebuild at a time; use the stable wrapper and xcresult totals. Restore System appearance after any QA that forces Dark. Positive and negative cases precede every usage/parsing fix.
Read rebuild reports before --emit. Put redacted verified drift in normal fixtures; speculative adversarial shapes stay outside the baseline. Preserve the old key superset. Do not infer handled from tolerance: cite a read path and a behavior test.
References and records
Read the relevant reference before making a claim:
- Drivers, auth, installs and latest claims
- Fingerprint, discovery, value pass and fixture guardrails
- Per-agent storage and usage notes
- Prices, all tables and official-source checks
- Steward ownership and communication
- Incidents and unavailable agents
Section map gives every original ## section a home. Historical instructions in references yield to the current runbook and explicit user scope.
The matrix holds current ceilings, holds and a short note. The ledger holds claim, scope and evidence paths, with at most three sentences of notes. The tracking log gets one format-change paragraph. Append one finding row to agent-format-tracker.jsonl with bucket and confidence; retain historical rows unchanged. See record ownership. All four derive from the final weekly after the last update. A structured hold records version, reason and since, and is retried next sweep. Records never substitute for fresh native evidence.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

