Skip to content

Add durable receipt auditing for guarded Antigravity backend dispatch - #1804

Draft
groupthinking with Copilot wants to merge 3 commits into
mainfrom
copilot/add-guarded-antigravity-backend
Draft

Add durable receipt auditing for guarded Antigravity backend dispatch#1804
groupthinking with Copilot wants to merge 3 commits into
mainfrom
copilot/add-guarded-antigravity-backend

Conversation

Copilot AI commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Canonical issue

Linked by automation.

Outcome

Adds an optional, guarded Google Antigravity managed backend path in Agent Factory with durable receipt persistence at orchestration time. MCP/tool guardrails remain strict and audit records capture execution metadata without persisting task context.

Scope

  • Included:
    • Orchestrator durability hook: AgentOrchestrator now accepts an optional audit_store and records a durable entry on execute_antigravity_backend.
    • Receipt-focused audit payload: persists provider/agent/status, receipt/request hash, interaction/environment IDs, budget flag, policy, and token fields.
    • Context redaction guarantee: audit details intentionally exclude execution context payloads.
    • Targeted regression coverage: added a unit test that verifies durable recording semantics and no context leakage.
    • Minimal hygiene in touched files: import-order/type-import cleanup needed by lint in modified files.
  • Explicitly excluded:
    • No change to provider transport wiring, live-call approval policy, or MCP allowlist semantics.
    • No new API endpoints, storage schema changes, or UI updates.

Risk

  • Risk level: low
  • Failure mode: audit store append failures could drop receipt persistence while managed execution still completes.
  • Rollback: revert orchestrator audit_store hook and associated test.

Verification

List exact automated and manual checks, tied to the current head SHA.

  • Focused tests
  • Required CI
  • Review threads resolved

Production evidence

Not applicable: backend orchestration/internal audit-path change only; no production surface or deployment behavior change.

Agent handoff

  • One canonical issue is linked
  • No competing PR implements the same issue
  • Acceptance criteria are satisfied
  • Required checks pass on the current head
  • Human decision is requested only for product, security, irreversible infrastructure, or production approval
# New orchestration durability path (simplified)
orchestrator = AgentOrchestrator(audit_store=audit_store)
receipt = await orchestrator.execute_antigravity_backend(
    backend=backend,
    task="review",
    context={"video_pack_id": "pack-3"},
)
# audit_store receives receipt metadata, not raw context

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Sep 8, 2026 11:04pm UTC

Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
)
)
if self._audit_store is not None:
total_tokens = receipt.usage.get("total_tokens")

@vercel vercel Bot Sep 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Durable audit recording for the Antigravity backend stores usage.total_tokens in the input_tokens field, mislabeling token accounting (input = input+output).

Fix on Vercel

Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
Copilot AI changed the title [WIP] Add guarded Antigravity backend to Agent Factory Add durable receipt auditing for guarded Antigravity backend dispatch Sep 8, 2026
Copilot AI requested a review from groupthinking September 8, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants