Skip to content

Commit 73361f4

Browse files
committed
Add Phase 17 Antigravity plugin bundle skeleton
1 parent 4012239 commit 73361f4

16 files changed

Lines changed: 505 additions & 12 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: ctxt-phase-17-antigravity-plugin-bundle
3+
description: "Skeleton implementation for Antigravity plugin bundles, subcommands, and templates."
4+
summary: "Defines skeleton code and local templates for the Antigravity plugin bundle phase."
5+
---
6+
7+
# Skill: ctxt-phase-17-antigravity-plugin-bundle
8+
9+
## Goal
10+
Establish a skeleton command layer (`ctxt antigravity`) and repo-local templates for plugin packaging.
11+
12+
## Read first
13+
- AGENTS.md
14+
- PROJEKT.md
15+
- docs/ANTIGRAVITY_PLUGIN_BUNDLE.md
16+
17+
## Boundaries
18+
- CompText is deterministic Evidence-Control-Plane.
19+
- Antigravity is Agent Execution Surface.
20+
- No LLM Judge.
21+
- Subagents are advisory only (no PASS/FAIL authority).
22+
- MCP output is treated as untrusted input.
23+
- Hooks policy/audit templates only (no live execution).
24+
- All paths must be repo-relative.
25+
26+
## Allowed
27+
- Modifying `src/cli.rs` and `tests/cli_smoke.rs` to implement the `antigravity` command and its tests.
28+
- Creating the `templates/antigravity` directory and template files.
29+
30+
## Forbidden
31+
- Performing live network calls or using cloud APIs.
32+
- Global installation steps.
33+
- Creating files outside the workspace root.

PROJEKT.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ CompText CLI is an experimental terminal context client for building determinist
1919

2020
### Current State
2121
```text
22-
CURRENT_PHASE: 16
23-
CURRENT_TASK: Agent State Contract Skeleton
24-
LAST_GREEN_PHASE: 16
25-
STATUS: complete
26-
NEXT_ALLOWED_ACTION: Phase 17 planning on feature branch
22+
CURRENT_PHASE: 17
23+
CURRENT_TASK: Antigravity Plugin Bundle Skeleton
24+
LAST_GREEN_PHASE: 17
25+
STATUS: REVIEW-GATE
26+
NEXT_ALLOWED_ACTION: Await review gate confirmation
2727
```
2828

2929
### Autonomy Contract
@@ -92,7 +92,7 @@ git push
9292
| **Phase 14** | Hook/Permission Integration | Hook boundaries, dynamic run approvals | **COMPLETE** |
9393
| **Phase 15** | Cryptographic Provenance Engine | local SHA-256 provenance manifests | **COMPLETE** |
9494
| **Phase 16** | Agent State Contract | Add local agent-state capture/verify/report | **COMPLETE** |
95-
| **Phase 17** | Bounded Execution Monitoring | Planning only on feature branch after Review-Gate approval | **PLANNING** |
95+
| **Phase 17** | Antigravity Plugin Bundle | Implement ctxt antigravity commands, local templates, and docs | **REVIEW-GATE** |
9696

9797
---
9898

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ CompText is for developers who want AI-assisted workflows with stronger boundari
8686

8787
```text
8888
Binary: ctxt
89-
Current phase: Phase 16
90-
Current task: Agent State Contract Skeleton
91-
Last green phase: Phase 16
92-
Status: complete
93-
Next allowed action: Phase 17 planning on feature branch
89+
Current phase: Phase 17
90+
Current task: Antigravity Plugin Bundle Skeleton
91+
Last green phase: Phase 17
92+
Status: REVIEW-GATE
93+
Next allowed action: Await review gate confirmation
9494
```
9595

9696
Completed so far:
@@ -115,12 +115,13 @@ Phase 13 Skill Bundle Registry COMPLETE
115115
Phase 14 Hook/Permission Integration COMPLETE
116116
Phase 15 Cryptographic Provenance Engine COMPLETE
117117
Phase 16 Agent State Contract Skeleton COMPLETE
118+
Phase 17 Antigravity Plugin Bundle Skeleton REVIEW-GATE
118119
```
119120

120121
Next areas:
121122

122123
```text
123-
Phase 17 Bounded Execution Monitoring planning on feature branch
124+
Phase 18 TBD
124125
```
125126

126127
### Review-Gate Operating Rules

docs/ANTIGRAVITY_PLUGIN_BUNDLE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Antigravity Plugin Bundle Specification
2+
3+
This document specifies the architecture, boundaries, and components of the Antigravity Plugin Bundle system in the CompText CLI ecosystem.
4+
5+
## Architectural Principles
6+
7+
1. **Deterministic Control**:
8+
CompText serves as the deterministic Evidence-Control-Plane. Every context pack, state report, and proposal is strictly structured, schema-checked, and local.
9+
10+
2. **Execution Surface**:
11+
Antigravity acts as the Agent Execution Surface. It processes agent commands, imports/exports configurations, and manages local tools/skills.
12+
13+
3. **No LLM Judge**:
14+
There is no LLM-based verification authority. Autonomy and state transition checks must rely purely on deterministic local validations (e.g. check-sum, compilation, pattern matching).
15+
16+
4. **Advisory Subagents**:
17+
Subagents (e.g., in `.agents/`) are advisory-only. They lack the authority to issue PASS/FAIL verdicts. Only local CLI tools verify execution states.
18+
19+
5. **Untrusted Protocol Boundaries**:
20+
MCP outputs, external APIs, and model-provided patches are treated as untrusted input. They must pass validation and audit gates before application.
21+
22+
6. **Hooks Policy Audits**:
23+
Hooks configured in the bundle (e.g. `hooks.json`) are templates used for linting and safety checks. They are not executed live in the CLI engine at runtime.
24+
25+
7. **Repo-Relative and Sandboxed Paths**:
26+
All paths configured or accessed by plugin bundles must be repo-relative. Absolute paths are strictly forbidden to ensure isolation.
27+
28+
## Component Structure
29+
30+
A standard Antigravity Plugin Bundle consists of the following components:
31+
- `plugin_manifest.json`: Root metadata containing dependencies, permissions, and paths.
32+
- `skills/`: Local skill folders with detailed instructions and boundaries (`SKILL.md`).
33+
- `rules/comptext-rules.md`: Bounded execution markdown checklists.
34+
- `hooks/hooks.json`: Interception rules and policy templates.
35+
- `mcp/mcp_config.json`: Configuration for local Model Context Protocol servers.
36+
- `permissions/permissions.template.json`: Declared permissions for actions (e.g. `command`, `write_file`, `read_url`, `mcp`).
37+
- `agents/`: Specifications for advisory subagents.

reports/phase_17_status.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Phase 17 Status Report
2+
3+
- **PHASE**: Phase 17 Antigravity Plugin Bundle
4+
- **STATUS**: success
5+
- **FILES_CHANGED**:
6+
- `src/cli.rs`
7+
- `tests/cli_smoke.rs`
8+
- **COMMANDS_RUN**:
9+
- `cargo check`
10+
- `cargo test`
11+
- **VALIDATION**: All 34 unit tests and 9 integration tests passed. Compilation clean.
12+
- **ARTIFACTS**:
13+
- `templates/antigravity/plugin_manifest.json`
14+
- `templates/antigravity/skills/sample_skill/SKILL.md`
15+
- `templates/antigravity/rules/comptext-rules.md`
16+
- `templates/antigravity/hooks/hooks.json`
17+
- `templates/antigravity/mcp/mcp_config.json`
18+
- `templates/antigravity/permissions/permissions.template.json`
19+
- `templates/antigravity/agents/advisory_agents.json`
20+
- `templates/antigravity/agents/subagents.json`
21+
- `templates/antigravity/README.md`
22+
- `docs/ANTIGRAVITY_PLUGIN_BUNDLE.md`
23+
- `.agent/skills/ctxt-phase-17-antigravity-plugin-bundle/SKILL.md`
24+
- **GIT**: Switched to main and checked out local branch `phase-17-antigravity-plugin-bundle`. Local commit prepared.
25+
- **NETWORK**: offline-only
26+
- **SECRETS**: No credentials accessed or exposed.
27+
- **POLICY_DECISIONS**: All design boundaries respected (no live runtime hooks, advisory-only subagents, MCP treated as untrusted, no LLM judge).
28+
- **RISKS**: None. Skeleton command layer validated via integration tests.
29+
- **NEXT**: Await Review-Gate approval.

0 commit comments

Comments
 (0)