Skip to content

feat(fm-antigravity): Implement antigravity adapter - #7122

Closed
faridghar wants to merge 7 commits into
kunchenguid:mainfrom
faridghar:feat/antigravity-adapter
Closed

faridghar wants to merge 7 commits into
kunchenguid:mainfrom
faridghar:feat/antigravity-adapter

Conversation

@faridghar

Copy link
Copy Markdown

Intent

Address maintainer review findings on Antigravity adapter PR 7114

What Changed

  • Implemented new antigravity adapter functionality in bin/fm-antigravity-lib.sh.
  • Integrated antigravity adapter into bin/fm-harness.sh, bin/fm-session-lock-lib.sh, and bin/fm-supervision-instructions.sh.
  • Added new documentation for antigravity protocols in docs/supervision-protocols/antigravity.md and comprehensive unit tests.

Risk Assessment

✅ Low: The changes correctly implement the Antigravity adapter, address the specified maintainer review finding regarding the pgrep pattern, and include comprehensive unit tests. The new logic is well-encapsulated and integrated carefully into existing harness detection mechanisms.

Testing

One live scenario was executed to verify that fm_antigravity_session_pid can successfully find a running process with 'antigravity' in its command line. The scenario involved spawning a dummy 'antigravity' process and then calling the function to ensure its PID is correctly identified.

  • Live validation: ✅ go - 1 of 1 scenarios driven live against the product
Scenario Result Live Evidence
fm_antigravity_session_pid correctly identifies an 'antigravity' process ✅ pass live bash -c "exec -a antigravity sleep infinity" & DUMMY_PID=$!; sleep 0.1; source bin/fm-antigravity-lib.sh; FOUND_PID=$(fm_antigravity_session_pid); if [ "$FOUND_PID" = "$DUMMY_PID" ]; then RESULT="pass…

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 1 of 1 scenarios driven live against the product
Scenario Result Live Evidence
fm_antigravity_session_pid correctly identifies an 'antigravity' process ✅ pass live bash -c "exec -a antigravity sleep infinity" & DUMMY_PID=$!; sleep 0.1; source bin/fm-antigravity-lib.sh; FOUND_PID=$(fm_antigravity_session_pid); if [ "$FOUND_PID" = "$DUMMY_PID" ]; then RESULT="pass…
  • bash -c "exec -a antigravity sleep infinity" & DUMMY_PID=$!; sleep 0.1; source bin/fm-antigravity-lib.sh; FOUND_PID=$(fm_antigravity_session_pid); if [ "$FOUND_PID" = "$DUMMY_PID" ]; then RESULT="pass"; else RESULT="fail"; fi; kill "$DUMMY_PID"; echo "::scenario_result::$RESULT"
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Oguz Alp Saglam and others added 7 commits October 12, 2026 07:49
- Drop machine-specific Windows path from fm_antigravity_resolve_binary
- Remove GEMINI_AGENT conflation from fm_antigravity_is_active and session PID checks
- Restore Cursor and Grok explanatory comments in harness_marker
- Consolidate agy pattern in harness_process_verdict
- Add tests/fm-antigravity-lib.test.sh unit test suite
- Unset ambient agy markers in tests/fm-agy-harness.test.sh
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @faridghar. I compared head 15ea0812b4fc against main 20dcbf91.

Contract-class: opt-in. Antigravity/agy activates only via config/harness / primary-harness or ANTIGRAVITY_AGENT / AGY_AGENT. Unconfigured path unchanged.

VISION.md

  • One captain / Authority / Scripts / Restart / Vendor / Scope: align (harness adapter pattern; gated).
  • Spine: aligns (live go 1/1 on the review findings; dedicated lib + harness tests).

Review notes: personal path removed; GEMINI_AGENT rejected; pgrep anchored to (^|/)(antigravity|agy)(\.exe)?( |$); FM_TEST_SEAM isolation present. Security clean (no .github/**, secrets, or new network beyond process identity). Attestation MATCH.

Overlap: this addresses the findings on #7114. Prefer one lane — #7114 author can FF here, or we merge this and leave #7114 to close. Will not merge both.

Fork CI approved: CI 38217597693, Require no-mistakes 38217597380.

Status: waiting-ci. When green this is auto-merge eligible (opt-in).

@faridghar

Copy link
Copy Markdown
Author

Closed in favor of the original PR #7017.

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.

2 participants