antigravity-studio 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. antigravity_studio-0.2.0/.antigravity/agents/cast-guardian.md +16 -0
  2. antigravity_studio-0.2.0/.antigravity/agents/reliability-gatekeeper.md +18 -0
  3. antigravity_studio-0.2.0/.antigravity/agents/studio-director.md +16 -0
  4. antigravity_studio-0.2.0/.antigravity/skills/studio-director/SKILL.md +29 -0
  5. antigravity_studio-0.2.0/.antigravity/workflows/studio-record.md +11 -0
  6. antigravity_studio-0.2.0/.antigravity/workflows/studio-run.md +14 -0
  7. antigravity_studio-0.2.0/.gitignore +16 -0
  8. antigravity_studio-0.2.0/CHANGELOG.md +50 -0
  9. antigravity_studio-0.2.0/CITATION.cff +21 -0
  10. antigravity_studio-0.2.0/CONTRIBUTING.md +45 -0
  11. antigravity_studio-0.2.0/LICENSE +21 -0
  12. antigravity_studio-0.2.0/PKG-INFO +374 -0
  13. antigravity_studio-0.2.0/README.md +313 -0
  14. antigravity_studio-0.2.0/SECURITY.md +34 -0
  15. antigravity_studio-0.2.0/SETUP.md +60 -0
  16. antigravity_studio-0.2.0/docs/README.md +16 -0
  17. antigravity_studio-0.2.0/docs/architecture.md +72 -0
  18. antigravity_studio-0.2.0/docs/creative-hub.md +79 -0
  19. antigravity_studio-0.2.0/docs/diagrams/architecture.png +0 -0
  20. antigravity_studio-0.2.0/docs/diagrams/architecture.svg +106 -0
  21. antigravity_studio-0.2.0/docs/diagrams/movie-pipeline.png +0 -0
  22. antigravity_studio-0.2.0/docs/diagrams/movie-pipeline.svg +69 -0
  23. antigravity_studio-0.2.0/docs/diagrams/reliability-gates.png +0 -0
  24. antigravity_studio-0.2.0/docs/diagrams/reliability-gates.svg +63 -0
  25. antigravity_studio-0.2.0/docs/getting-started.md +59 -0
  26. antigravity_studio-0.2.0/docs/installation.md +77 -0
  27. antigravity_studio-0.2.0/docs/mcp-tools.md +61 -0
  28. antigravity_studio-0.2.0/docs/movie-engine.md +77 -0
  29. antigravity_studio-0.2.0/docs/reliability-gates.md +47 -0
  30. antigravity_studio-0.2.0/docs/shorts-and-reels.md +41 -0
  31. antigravity_studio-0.2.0/docs/troubleshooting.md +22 -0
  32. antigravity_studio-0.2.0/npm/LICENSE +21 -0
  33. antigravity_studio-0.2.0/npm/README.md +21 -0
  34. antigravity_studio-0.2.0/plugin/README.md +14 -0
  35. antigravity_studio-0.2.0/plugin/agents/studio-director.md +20 -0
  36. antigravity_studio-0.2.0/plugin/assets/logo.svg +33 -0
  37. antigravity_studio-0.2.0/plugin/mcp_config.json +8 -0
  38. antigravity_studio-0.2.0/plugin/plugin.json +18 -0
  39. antigravity_studio-0.2.0/plugin/skills/antigravity-studio/SKILL.md +38 -0
  40. antigravity_studio-0.2.0/pyproject.toml +96 -0
  41. antigravity_studio-0.2.0/scripts/setup.sh +62 -0
  42. antigravity_studio-0.2.0/server.json +43 -0
  43. antigravity_studio-0.2.0/src/antigravity_studio/__init__.py +10 -0
  44. antigravity_studio-0.2.0/src/antigravity_studio/__main__.py +8 -0
  45. antigravity_studio-0.2.0/src/antigravity_studio/audio_mix.py +117 -0
  46. antigravity_studio-0.2.0/src/antigravity_studio/captions.py +238 -0
  47. antigravity_studio-0.2.0/src/antigravity_studio/cli.py +475 -0
  48. antigravity_studio-0.2.0/src/antigravity_studio/contracts/__init__.py +1 -0
  49. antigravity_studio-0.2.0/src/antigravity_studio/contracts/gates.report.schema.json +95 -0
  50. antigravity_studio-0.2.0/src/antigravity_studio/contracts/movie.manifest.schema.json +183 -0
  51. antigravity_studio-0.2.0/src/antigravity_studio/contracts/shot.receipt.schema.json +31 -0
  52. antigravity_studio-0.2.0/src/antigravity_studio/contracts/studio.manifest.schema.json +110 -0
  53. antigravity_studio-0.2.0/src/antigravity_studio/derived.py +117 -0
  54. antigravity_studio-0.2.0/src/antigravity_studio/doctor.py +171 -0
  55. antigravity_studio-0.2.0/src/antigravity_studio/downloads.py +205 -0
  56. antigravity_studio-0.2.0/src/antigravity_studio/export.py +231 -0
  57. antigravity_studio-0.2.0/src/antigravity_studio/gates.py +597 -0
  58. antigravity_studio-0.2.0/src/antigravity_studio/hashing.py +195 -0
  59. antigravity_studio-0.2.0/src/antigravity_studio/hyperframes_engine.py +400 -0
  60. antigravity_studio-0.2.0/src/antigravity_studio/manifest.py +386 -0
  61. antigravity_studio-0.2.0/src/antigravity_studio/mcp_server.py +326 -0
  62. antigravity_studio-0.2.0/src/antigravity_studio/media.py +539 -0
  63. antigravity_studio-0.2.0/src/antigravity_studio/movie.py +297 -0
  64. antigravity_studio-0.2.0/src/antigravity_studio/movie_manifest.py +193 -0
  65. antigravity_studio-0.2.0/src/antigravity_studio/movie_mix.py +272 -0
  66. antigravity_studio-0.2.0/src/antigravity_studio/movie_template.py +328 -0
  67. antigravity_studio-0.2.0/src/antigravity_studio/originality.py +275 -0
  68. antigravity_studio-0.2.0/src/antigravity_studio/plugin_install.py +173 -0
  69. antigravity_studio-0.2.0/src/antigravity_studio/provenance.py +381 -0
  70. antigravity_studio-0.2.0/src/antigravity_studio/recordly.py +92 -0
  71. antigravity_studio-0.2.0/src/antigravity_studio/reel.py +249 -0
  72. antigravity_studio-0.2.0/src/antigravity_studio/reviews.py +181 -0
  73. antigravity_studio-0.2.0/src/antigravity_studio/scheduler.py +338 -0
  74. antigravity_studio-0.2.0/src/antigravity_studio/skills_install.py +144 -0
  75. antigravity_studio-0.2.0/src/antigravity_studio/state.py +606 -0
  76. antigravity_studio-0.2.0/src/antigravity_studio/toolpaths.py +75 -0
  77. antigravity_studio-0.2.0/tests/__init__.py +1 -0
  78. antigravity_studio-0.2.0/tests/fixtures/antigravity-plugin.schema.json +156 -0
  79. antigravity_studio-0.2.0/tests/fixtures/mcp-registry-server.schema.json +574 -0
  80. antigravity_studio-0.2.0/tests/helpers.py +182 -0
  81. antigravity_studio-0.2.0/tests/test_studio_pipeline.py +767 -0
  82. antigravity_studio-0.2.0/tests/test_v02_cli_units.py +163 -0
  83. antigravity_studio-0.2.0/tests/test_v02_copyright_gate.py +138 -0
  84. antigravity_studio-0.2.0/tests/test_v02_distribution.py +170 -0
  85. antigravity_studio-0.2.0/tests/test_v02_downloads_export.py +137 -0
  86. antigravity_studio-0.2.0/tests/test_v02_movie.py +163 -0
  87. antigravity_studio-0.2.0/tests/test_v02_reel.py +106 -0
  88. antigravity_studio-0.2.0/tests/test_v02_skills.py +76 -0
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: cast-guardian
3
+ description: "Enforces zero character or hero-prop drift across multi-era AI video shots using Gate 2 evidence strips and bounded retries."
4
+ subagent: true
5
+ mainAgent: false
6
+ tools: [read_file, run_command]
7
+ ---
8
+
9
+ # Agent: Cast Guardian (`cast-guardian`)
10
+
11
+ - **Role:** Enforces zero character or hero-prop drift across multi-era shots (`1996 → 2026`).
12
+ - **Workflow:**
13
+ 1. After each shot receipt is recorded, invoke `studio_check_cast_drift(project_dir, shot_id)`.
14
+ 2. Inspect `verification/cast_drift/<shot_id>_strip.jpg` visually comparing locked `cast/*_master.png` anchors against start/mid/end frames.
15
+ 3. Reject shots where facial geometry, wardrobe continuity, or hero bag hardware mutates unintentionally.
16
+ 4. Respect bounded retry cap (`max_retries_per_shot = 2`); escalate to the human director on attempt 3.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: reliability-gatekeeper
3
+ description: "Independent fail-closed mechanical verifier enforcing all 7 Antigravity Studio reliability gates before release."
4
+ subagent: true
5
+ mainAgent: false
6
+ tools: [read_file, run_command]
7
+ ---
8
+
9
+ # Agent: Reliability Gatekeeper (`reliability-gatekeeper`)
10
+
11
+ - **Role:** Independent mechanical verifier. Runs `studio_verify_all(project_dir)` and refuses release on any failed gate.
12
+ - **7 Non-Negotiable Gates (Gate 7 = YPP copyright & originality):**
13
+ 1. `gate_1_schema_contract` — Manifest Draft 2020-12 schema, cast refs, contiguous order, runtime budget.
14
+ 2. `gate_2_cast_drift` — Start/mid/end keyframe strips + intra-shot stability + locked reference verification.
15
+ 3. `gate_3_seam_flicker` — Zero mid-film black drops, freeze check, HyperFrames parallel-worker flicker lint.
16
+ 4. `gate_4_audio_lufs` — EBU R128 integrated loudness `-14.0 ± 1.0 LUFS`, true peak `<= -1.0 dBTP`.
17
+ 5. `gate_5_duration_tail` — Master duration matches target within tolerance + `>= 3.0s` visual breathing tail.
18
+ 6. `gate_6_contact_sheet` — Renders `exports/gates-sheet.jpg` and validates `exports/gates.json` schema.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: studio-director
3
+ description: "Zero-drift Antigravity Studio film & brand production director driving NotebookLM, Pomelli, Stitch, Flow, Flow Music, Genie, HyperFrames, and 7 Reliability Gates (incl. Gate 7 copyright)."
4
+ subagent: true
5
+ mainAgent: false
6
+ tools: [read_file, edit_file, write_file, run_command, manage_task]
7
+ ---
8
+
9
+ # Agent: Studio Director (`studio-director`)
10
+
11
+ - **Role:** Owns `studio.manifest.json`, resumable `state.json`, and deterministic stage progression via `antigravity-studio` MCP (`studio_next_step`, `studio_record_receipt`, `studio_ingest_downloads`).
12
+ - **Hard Rules:**
13
+ 1. Never skip locked cast/prop reference posters before generating character shots.
14
+ 2. Never modify manifest durations without re-running `studio_validate`.
15
+ 3. Never bypass CAPTCHAs or logins in Chrome CDP — pause cleanly for the human operator.
16
+ 4. Never declare production complete until `reliability-gatekeeper` reports all 7 gates green.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: studio-director
3
+ description: "Zero-drift Antigravity Studio orchestrator controlling NotebookLM, Pomelli, Stitch, Flow, Flow Music, Genie 4, HyperFrames, and 7 Reliability Gates (incl. Gate 7 copyright)."
4
+ ---
5
+
6
+ # Antigravity Studio Director Skill
7
+
8
+ Operate as a **zero-drift film and brand production director**. Never improvise shot order, prompts, or completion status from chat memory — always read state from `agstudio` (`antigravity-studio` MCP or `agstudio` CLI).
9
+
10
+ ## Kickoff: Director Mode (Default) vs Autopilot Mode
11
+ At the start of a new project, ask the user which execution mode they prefer (or switch anytime mid-project via `studio_set_mode(project_dir, "director" | "autopilot")` / `agstudio mode <dir> director|autopilot`):
12
+ - **`director` (default — Interactive Creative Review):** After every produced artifact (brand brief, Pomelli hero, Stitch website, cast posters, each video shot after Gate 2 drift verification, music score, and master commercial), `studio_next_step` pauses with `action: "await_user_review"`. Present the asset (`rel_path` / `abs_path` and cast-drift strip for shots) to the user and ask for approval or creative direction (e.g., bag silhouette, lighting, camera move, wardrobe, music mood).
13
+ - If approved: call `studio_review_step(project_dir, artifact_id=..., approved=True)` (or `agstudio review <dir> --artifact <id> --approve`).
14
+ - If changes are requested: call `studio_review_step(project_dir, artifact_id=..., approved=False, feedback="<user direction>")` (or `agstudio review <dir> --artifact <id> --feedback "..."`). On the next call, `studio_next_step` returns `action: "regenerate_with_feedback"` carrying the user's exact feedback; regenerate that asset, record a fresh receipt, and present the updated result for fresh review (approvals are SHA-256 bound, so any regenerated file automatically requires fresh approval).
15
+ - **`autopilot` (End-to-End Autonomous Run):** `studio_next_step` flows straight through every stage without pausing for per-step user approvals while still enforcing per-shot Gate 2 drift checks and all 7 mechanical reliability gates before completion.
16
+
17
+ ## Mandatory Execution Loop
18
+ 1. Call `studio_doctor` first. Confirm `ffmpeg`, `ffprobe`, Chrome CDP, `notebooklm`, and `stitch` are ready.
19
+ 2. Initialize with `studio_init(project_dir, execution_mode="director" | "autopilot")` (default `"director"`) and call `studio_validate(project_dir)` to verify `studio.manifest.json` passes Draft 2020-12 contract & runtime budget.
20
+ 3. Loop strictly on `studio_next_step(project_dir)`:
21
+ - **`action == "await_user_review"` (Director Mode):** Show the asset to the user, collect approval or creative direction, and record via `studio_review_step` before advancing.
22
+ - **`action == "regenerate_with_feedback"` (Director Mode):** Apply the exact `feedback` returned by `studio_next_step`, regenerate that specific artifact, and record a fresh SHA-256 receipt.
23
+ - **`notebooklm_mcp`**: Query/research in NotebookLM and write `brand/research_brief.md`.
24
+ - **`stitch_mcp`**: Call official Google Stitch MCP (`create_project` → `generate_screen_from_text` → `download_file`) into `website/`.
25
+ - **`chrome_devtools_mcp`**: Open the exact URL (`labs.google.com/u/0/pomelli/`, `flow.google.com/`, `flowmusic.app/`, `labs.google/projectgenie`) in the user's visible signed-in Chrome. Upload locked `cast/` reference sheets via `upload_file`, paste the exact manifest prompt, download output, and call `studio_ingest_downloads`. If login/CAPTCHA appears, pause cleanly for the user — never attempt anti-bot bypasses.
26
+ - **`hyperframes_brand_reveal_local` / `hyperframes_endcard_local`**: Call `studio_render_hyperframes` (`render-brand-reveal` / `render-endcard`) for deterministic brand reveal and endcard rendering.
27
+ 4. After every video shot, immediately call `studio_check_cast_drift(project_dir, shot_id)` and inspect `verification/cast_drift/<shot_id>_strip.jpg`. If cast/prop drift fails, retry bounded up to `max_retries_per_shot` (default 2) before escalating to human review.
28
+ 5. Once all shots & score have SHA-256 receipts (and approvals in Director Mode), call `studio_master_av(project_dir)` then `studio_verify_all(project_dir)`.
29
+ 6. **Completion Law:** Never declare the film done unless `exports/gates.json` reports `"overall_pass": true` across all 7 mechanical gates.
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Arm Recordly.app and capture a clean Antigravity Studio live orchestration session (/studio-record)
3
+ ---
4
+
5
+ # /studio-record
6
+
7
+ 1. Call `studio_record_control(action="status")` to verify `/Applications/Recordly.app` is installed and running.
8
+ 2. Position signed-in Google Chrome cleanly (16:9, bookmarks hidden, zero unrelated tabs).
9
+ 3. Call `studio_record_control(action="open")` to bring Recordly forward, then `studio_record_control(action="toggle")` (or click Start via `macos-computer-use` MCP) to start recording.
10
+ 4. Run the desired `/studio-run` chapter cleanly on screen.
11
+ 5. Call `studio_record_control(action="toggle")` when the chapter completes and verify the saved capture on disk.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: Run Antigravity Studio end-to-end production loop without drift (/studio-run)
3
+ ---
4
+
5
+ # /studio-run
6
+
7
+ 1. Run `studio_doctor` and confirm all binaries and MCPs are green.
8
+ 2. Confirm execution mode with the user at kickoff: **Director Mode** (`director`, default — pauses after every artifact for creative review/feedback) or **Autopilot Mode** (`autopilot` — runs end-to-end without review pauses). Switch anytime via `studio_set_mode` or `agstudio mode <dir> director|autopilot`.
9
+ 3. Run `studio_status(project_dir)` and `studio_next_step(project_dir)`.
10
+ 4. Execute ONLY the exact step returned by `studio_next_step`:
11
+ - In **Director Mode**, when `action == "await_user_review"`, show the produced artifact (`rel_path` / `abs_path`) to the user, ask for approval or creative direction, and record via `studio_review_step` (`agstudio review`). When `action == "regenerate_with_feedback"`, apply the user's feedback, regenerate that asset, and record a new receipt.
12
+ - Otherwise execute the returned production stage (NotebookLM -> Pomelli -> Stitch MCP -> Flow Cast Posters -> Flow 8 Shots + Genie 4 -> Flow Music -> HyperFrames Endcard -> FFmpeg Master -> 7 Mechanical Reliability Gates).
13
+ 5. Record a SHA-256 receipt after every produced file so progress and SHA-256-bound reviews are 100% resumable.
14
+ 6. Finish only when `studio_verify_all` outputs `"overall_pass": true` and `exports/gates-sheet.jpg`.
@@ -0,0 +1,16 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+ dist/
7
+ build/
8
+ *.egg-info/
9
+ .DS_Store
10
+ audits/
11
+ projects/
12
+ .backup/
13
+ npm/*.tgz
14
+ npm/node_modules/
15
+ .coverage
16
+ coverage.xml
@@ -0,0 +1,50 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses semantic versioning.
5
+
6
+ ## [0.2.0] - 2026-12-02
7
+
8
+ ### Added
9
+ - **Universal distribution.** PyPI package with `agstudio` and `antigravity-studio` console scripts (so
10
+ `uvx antigravity-studio ...` works), the npm launcher `@qualixar/antigravity-studio` (zero dependencies,
11
+ silent stdout, pinned to the same version), `python -m antigravity_studio`, and MCP Registry metadata
12
+ (`server.json`).
13
+ - **Native Antigravity plugin** (`plugin/`: `plugin.json`, `mcp_config.json`, skill, director agent), validated
14
+ against Google's published plugin schema, plus `agstudio install-plugin --target antigravity|gemini-app|claude-code|all`
15
+ that writes an absolute launcher for GUI hosts and backs up any previous install.
16
+ - **Companion skills:** `agstudio install-skills brief2mp4 brief2motion` from pinned MIT releases with
17
+ traversal-safe extraction; kept across plugin upgrades.
18
+ - **Downloads intake:** `studio_watch_downloads` / `agstudio watch-downloads` copies (never moves) new Flow,
19
+ Flow Music, Genie and Stitch exports into `assets/`, skips partial downloads, verifies media, rejects zip-slip,
20
+ writes SHA-256 receipts and an idempotent ledger.
21
+ - **9:16 reel engine:** `studio_render_short_reel` / `agstudio render-reel` renders 1080x1920 at 60 fps with a
22
+ split-screen layout, UI-safe captions (Hindi shaped correctly or refused), sidechain-ducked music and two-pass
23
+ -13 LUFS. The avatar voice is never muted or time-stretched.
24
+ - **Multi-scene movie engine:** `movie.manifest.json` schema (2-6 character Cast Vault, scenes, up to 30 shots,
25
+ dialogue lines, SFX cues, camera beats), the original `rudra-monsoon-vigilante` template (long 16:9 and short
26
+ 9:16) with a copy-paste `PROMPTS.md`, `movie status`, a per-character Cast Vault drift gate, and `movie mix`
27
+ (dialogue and SFX placement, ducked Flow Music stems, visual tail, -14/-13 LUFS, per-language `.srt`).
28
+ - **Gate 7 (YPP copyright & originality):** fail-closed scan for franchise IP and unlicensed audio, with
29
+ auditable waivers that need a written reason. `run_all_gates` now reports 7 gates.
30
+ - **Desktop launch package:** `studio_export_desktop` / `agstudio export-desktop` packages a verified master,
31
+ thumbnail, captions, `SEO.md` and `PACKAGE.json`, and refuses unverified or tampered masters.
32
+ - **Self-provisioning FFmpeg:** depends on `imageio-ffmpeg` (FFmpeg inside the wheel) with an ffprobe-free probe
33
+ fallback, so a plain install works with no Homebrew. The full suite passes on a simulated clean machine.
34
+ - Doctor reports version, plugin and Gemini app status, media probe mode and caption-shaping readiness.
35
+
36
+ ### Changed
37
+ - MCP tools: 14 -> 22. Gates report schema 1.0.0 -> 1.1.0 (7 gates); older `gates.json` files are treated as stale.
38
+ - Binary discovery searches well-known install folders, so MCP servers started by GUI apps find their tools.
39
+ - Derived deliverables (reels, movie masters) get receipts in `receipts/derived/`, outside `state.json`, so they
40
+ never invalidate an already-verified brand-film master.
41
+
42
+ ### Fixed
43
+ - Manifest path normalisation used `str.lstrip("./")`, which turned `../x` into `x` and `.cast/x` into `cast/x`.
44
+ The schema pattern caught traversal in v0.1, so no path escaped, but the normaliser now strips only literal
45
+ `./` prefixes and the movie schema rejects `..` as well.
46
+
47
+ ## [0.1.0] - 2026-12-01
48
+
49
+ - First release: Director and Autopilot modes, 14 MCP tools, 6 fail-closed gates, HyperFrames end card and brand
50
+ reveal, two-pass EBU R128 mastering, SHA-256 receipts and resumable state.
@@ -0,0 +1,21 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use Antigravity Studio, please cite it as below."
3
+ type: software
4
+ title: "Antigravity Studio"
5
+ abstract: "A verified AI film, movie and Shorts studio for Google Antigravity, the Gemini app and Claude Code: an MCP server and CLI that orchestrate Google Flow, Flow Music, Genie, Stitch and NotebookLM, render locally with FFmpeg and HyperFrames, and pass every deliverable through 7 fail-closed reliability gates, including a copyright and originality gate."
6
+ authors:
7
+ - family-names: "Bhardwaj"
8
+ given-names: "Varun Pratap"
9
+ affiliation: "Qualixar"
10
+ version: "0.2.0"
11
+ date-released: "2026-12-03"
12
+ license: MIT
13
+ url: "https://github.com/qualixar/antigravity-studio"
14
+ repository-code: "https://github.com/qualixar/antigravity-studio"
15
+ keywords:
16
+ - "AI reliability engineering"
17
+ - "AI video"
18
+ - "model context protocol"
19
+ - "Google Antigravity"
20
+ - "Gemini"
21
+ - "fail-closed verification"
@@ -0,0 +1,45 @@
1
+ # Contributing to Antigravity Studio
2
+
3
+ Thanks for helping. The most useful contributions are, in order: a gate that passed something it should have
4
+ failed (or the reverse), a project that broke the studio (with the manifest and the doctor output), a fix that
5
+ makes a gate catch more, and new original movie templates.
6
+
7
+ ## Report a problem
8
+
9
+ Open an issue with the **Bug** template. Include the command or MCP tool you ran, the full JSON output, your OS,
10
+ the host app, and `agstudio doctor --json`. For gate disputes, attach `exports/gates.json` and the evidence image
11
+ it names (contact sheet, drift strip or seam frame).
12
+
13
+ ## Change the code
14
+
15
+ 1. Fork, then branch from `main`.
16
+ 2. Set up: `uv sync --extra dev`.
17
+ 3. Write the test first. Every gate change needs a test that fails on the old behaviour.
18
+ 4. Run everything before opening a pull request:
19
+ ```bash
20
+ uv run ruff check src tests
21
+ uv run pytest --cov=antigravity_studio --cov-fail-under=80
22
+ node npm/bin/antigravity-studio.js doctor --json
23
+ ```
24
+ 5. Update `CHANGELOG.md` under an "Unreleased" heading, and the matching page in `docs/` if behaviour changed.
25
+ 6. Open a pull request using the template.
26
+
27
+ ## Rules for the codebase
28
+
29
+ - **Fail closed.** A gate that cannot measure something reports FAIL with the reason, never PASS.
30
+ - **Hash before you trust.** New artifacts get SHA-256 receipts; derived deliverables go in `receipts/derived/`
31
+ so they never invalidate a verified master.
32
+ - **Silent stdout in `mcp` mode.** Nothing imported by the server may print.
33
+ - **Never alter a voice.** No filter may mute, replace or time-stretch an avatar's native audio.
34
+ - **Original content only.** Templates, examples and tests must pass Gate 7. No franchise names, logos or
35
+ commercial music.
36
+ - **Small files.** Keep modules under 800 lines and functions focused.
37
+ - **Licences.** Only MIT, Apache-2.0, BSD or similar dependencies. FFmpeg is used as an external program.
38
+ - **No personal data.** No absolute paths from your machine, tokens or private names in commits.
39
+
40
+ ## New movie templates
41
+
42
+ Add a builder next to `src/antigravity_studio/movie_template.py`, register it in `TEMPLATES`, and add a test
43
+ that it validates, stays within 2–6 characters and 30 shots, and passes Gate 7.
44
+
45
+ By contributing you agree that your work is released under the MIT licence of this repository.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Qualixar (Independent AI Reliability Engineering Research Initiative)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.