Context
During nightshift on 2026-05-16, @tobiu reported that Gemini's Google Antigravity harness froze because it kept trying to use temporary folders that Antigravity forbids. The operator clarified this is not blame and not a personal preference; it is an MX friction item that nullified the nightshift.
The durable shape should be an Antigravity-safe scratch-path allowlist rather than a scattered blacklist of forbidden temp paths.
The Problem
Gemini/Antigravity currently lacks a compact, load-bearing rule that tells the agent where temporary or scratch artifacts may be created, or whether the harness must avoid scratch files entirely unless a path is explicitly verified.
Without an allowlist, the agent falls back to generic LLM/tooling priors: use /tmp, OS temp directories, or transient scratch folders. In this harness, that can freeze the session and silently collapse the coordination lane.
This is a systemic workflow gap, not an agent-behavior blame artifact.
The Architectural Reality
Verify-Before-Assert evidence gathered before filing:
ask_knowledge_base(query='Antigravity tmp temporary scratch folder allowlist harness freeze', type='ticket') returned no matching ticket context.
- Repo grep for
Antigravity.*tmp, Antigravity.*scratch, temporary folder, and related allowlist terms found no exact Antigravity scratch-path rule.
.agents/ANTIGRAVITY_RULES.md currently covers identity, architecture constraints, branch workflow, anti-reformatting, and sunset gates, but no scratch/temp path contract.
.agents/skills/debugging-antigravity/SKILL.md routes MCP duplication, sqlite workspace crash, and config-scope debugging; the payload covers MCP duplication, Chroma init deadlocks, sqlite UI crash cleanup, and fresh MCP client isolation, but no temp-folder restriction.
Substrate placement should stay Antigravity-specific. This should not bloat root AGENTS.md unless implementation proves all harnesses share the same constraint.
The Fix
Define and codify an Antigravity-safe scratch-path allowlist contract.
Expected implementation shape:
- Empirically verify which path class Antigravity permits for Gemini scratch artifacts in this repo context, or confirm that the correct contract is "do not create scratch files; use repo-tracked edits and approved tools only."
- Add a compact rule to
.agents/ANTIGRAVITY_RULES.md if it must be loaded for every Gemini/Antigravity turn.
- Add deeper troubleshooting detail to
.agents/skills/debugging-antigravity/references/debugging-guide.md only if the rule needs operational recovery steps.
- If a skill payload changes, preserve Progressive Disclosure: keep the router tiny and place detail in the reference payload.
- Prefer the term
allowlist in new substrate, with whitelist only as a search synonym if needed for legacy references.
Contract Ledger Matrix
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
| Gemini/Antigravity scratch-path rule |
Operator-observed nightshift freeze on 2026-05-16 plus empirical Antigravity verification |
Agent only uses explicitly allowed scratch/work locations, or avoids scratch files if no safe path exists |
Halt and ask/route via A2A rather than guessing /tmp or OS temp folders |
.agents/ANTIGRAVITY_RULES.md and optionally debugging-antigravity payload |
Reproduce/verify in Gemini Antigravity harness; confirm no freeze during a small lifecycle task |
| Antigravity debugging skill payload |
Progressive Disclosure skill authoring contract |
Any extended recovery/debugging detail lives in payload, not SKILL.md router |
Leave SKILL.md unchanged if a one-line always-loaded rule is enough |
.agents/skills/debugging-antigravity/references/debugging-guide.md |
node ai/scripts/lint-skill-manifest.mjs --base origin/dev if skill files change |
Acceptance Criteria
Out of Scope
- Changing legitimate repo runtime/test code that uses
/tmp outside the Antigravity harness context.
- Globalizing the rule to Claude, Codex, or all Neo agents without evidence that those harnesses share the same restriction.
- Creating a new skill unless the existing
debugging-antigravity skill proves structurally insufficient.
- Treating the nightshift failure as individual blame.
Avoided Traps / Gold Standards Rejected
- Trap: blacklist every forbidden temp path. Rejected. A blacklist will miss the next Antigravity-forbidden location. The safe shape is an allowlist of verified permitted locations or an explicit no-scratch contract.
- Trap: put a long Antigravity troubleshooting essay in always-loaded substrate. Rejected. Always-loaded substrate should contain only the rule necessary to prevent recurrence; recovery detail belongs in the skill payload.
- Trap: make this global because
/tmp is a common term. Rejected. The observed constraint is Google Antigravity-specific until proven otherwise.
Related
.agents/ANTIGRAVITY_RULES.md
.agents/skills/debugging-antigravity/
- Nightshift incident reported by @tobiu on 2026-05-16
Retrieval Hint: "Antigravity scratch-path allowlist tmp folder freeze Gemini harness"
Context
During nightshift on 2026-05-16, @tobiu reported that Gemini's Google Antigravity harness froze because it kept trying to use temporary folders that Antigravity forbids. The operator clarified this is not blame and not a personal preference; it is an MX friction item that nullified the nightshift.
The durable shape should be an Antigravity-safe scratch-path allowlist rather than a scattered blacklist of forbidden temp paths.
The Problem
Gemini/Antigravity currently lacks a compact, load-bearing rule that tells the agent where temporary or scratch artifacts may be created, or whether the harness must avoid scratch files entirely unless a path is explicitly verified.
Without an allowlist, the agent falls back to generic LLM/tooling priors: use
/tmp, OS temp directories, or transient scratch folders. In this harness, that can freeze the session and silently collapse the coordination lane.This is a systemic workflow gap, not an agent-behavior blame artifact.
The Architectural Reality
Verify-Before-Assert evidence gathered before filing:
ask_knowledge_base(query='Antigravity tmp temporary scratch folder allowlist harness freeze', type='ticket')returned no matching ticket context.Antigravity.*tmp,Antigravity.*scratch,temporary folder, and related allowlist terms found no exact Antigravity scratch-path rule..agents/ANTIGRAVITY_RULES.mdcurrently covers identity, architecture constraints, branch workflow, anti-reformatting, and sunset gates, but no scratch/temp path contract..agents/skills/debugging-antigravity/SKILL.mdroutes MCP duplication, sqlite workspace crash, and config-scope debugging; the payload covers MCP duplication, Chroma init deadlocks, sqlite UI crash cleanup, and fresh MCP client isolation, but no temp-folder restriction.Substrate placement should stay Antigravity-specific. This should not bloat root
AGENTS.mdunless implementation proves all harnesses share the same constraint.The Fix
Define and codify an Antigravity-safe scratch-path allowlist contract.
Expected implementation shape:
.agents/ANTIGRAVITY_RULES.mdif it must be loaded for every Gemini/Antigravity turn..agents/skills/debugging-antigravity/references/debugging-guide.mdonly if the rule needs operational recovery steps.allowlistin new substrate, withwhitelistonly as a search synonym if needed for legacy references.Contract Ledger Matrix
/tmpor OS temp folders.agents/ANTIGRAVITY_RULES.mdand optionallydebugging-antigravitypayload.agents/skills/debugging-antigravity/references/debugging-guide.mdnode ai/scripts/lint-skill-manifest.mjs --base origin/devif skill files changeAcceptance Criteria
.agents/ANTIGRAVITY_RULES.mdcontains a compact always-loaded rule if the restriction must fire before any tool/file operation.debugging-antigravityreceives a payload-only update; itsSKILL.mdrouter remains within Progressive Disclosure shape.Out of Scope
/tmpoutside the Antigravity harness context.debugging-antigravityskill proves structurally insufficient.Avoided Traps / Gold Standards Rejected
/tmpis a common term. Rejected. The observed constraint is Google Antigravity-specific until proven otherwise.Related
.agents/ANTIGRAVITY_RULES.md.agents/skills/debugging-antigravity/Retrieval Hint: "Antigravity scratch-path allowlist tmp folder freeze Gemini harness"