Skip to content

Commit 1bcda69

Browse files
authored
Phase 17: Antigravity Plugin Bundle Skeleton (#3)
* Add Phase 17 Antigravity plugin bundle skeleton * Fix Phase 17 review gate documentation * Resolve Phase 17 review gate feedback * Fix Phase 17 hook verify template
1 parent 4012239 commit 1bcda69

16 files changed

Lines changed: 470 additions & 11 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: 5 additions & 5 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
22+
CURRENT_PHASE: 17
23+
CURRENT_TASK: Antigravity Plugin Bundle Skeleton
2424
LAST_GREEN_PHASE: 16
25-
STATUS: complete
26-
NEXT_ALLOWED_ACTION: Phase 17 planning on feature branch
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
89+
Current phase: Phase 17
90+
Current task: Antigravity Plugin Bundle Skeleton
9191
Last green phase: Phase 16
92-
Status: complete
93-
Next allowed action: Phase 17 planning on feature branch
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
@@ -166,7 +167,7 @@ flowchart LR
166167
P13 --> P14[Hook Integration]
167168
P14 --> P15[Provenance Engine]
168169
P15 --> P16[Agent State Contract]
169-
P16 --> P17[Bounded Execution Monitoring Planning]
170+
P16 --> P17[Antigravity Plugin Bundle]
170171
```
171172

172173
---

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: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Phase 17 Status Report
2+
3+
- **PHASE**: Phase 17 Antigravity Plugin Bundle
4+
- **STATUS**: local-success / review-gate
5+
- **FILES_CHANGED**:
6+
- `.agent/skills/ctxt-phase-17-antigravity-plugin-bundle/SKILL.md`
7+
- `PROJEKT.md`
8+
- `README.md`
9+
- `docs/ANTIGRAVITY_PLUGIN_BUNDLE.md`
10+
- `reports/phase_17_status.md`
11+
- `src/cli.rs`
12+
- `templates/antigravity/README.md`
13+
- `templates/antigravity/agents/advisory_agents.json`
14+
- `templates/antigravity/agents/subagents.json`
15+
- `templates/antigravity/hooks/hooks.json`
16+
- `templates/antigravity/mcp/mcp_config.json`
17+
- `templates/antigravity/permissions/permissions.template.json`
18+
- `templates/antigravity/plugin_manifest.json`
19+
- `templates/antigravity/rules/comptext-rules.md`
20+
- `templates/antigravity/skills/sample_skill/SKILL.md`
21+
- `tests/cli_smoke.rs`
22+
- **COMMANDS_RUN**:
23+
- `cargo fmt --all --check`
24+
- `cargo check`
25+
- `cargo test`
26+
- `cargo clippy -- -D warnings`
27+
- **VALIDATION**: All 34 unit tests and 9 integration tests passed. Compilation clean.
28+
- **ARTIFACTS**:
29+
- `templates/antigravity/plugin_manifest.json`
30+
- `templates/antigravity/skills/sample_skill/SKILL.md`
31+
- `templates/antigravity/rules/comptext-rules.md`
32+
- `templates/antigravity/hooks/hooks.json`
33+
- `templates/antigravity/mcp/mcp_config.json`
34+
- `templates/antigravity/permissions/permissions.template.json`
35+
- `templates/antigravity/agents/advisory_agents.json`
36+
- `templates/antigravity/agents/subagents.json`
37+
- `templates/antigravity/README.md`
38+
- `docs/ANTIGRAVITY_PLUGIN_BUNDLE.md`
39+
- `.agent/skills/ctxt-phase-17-antigravity-plugin-bundle/SKILL.md`
40+
- **GIT**:
41+
- local commits prepared
42+
- remote branch pushed
43+
- PR #3 opened
44+
- merge not performed
45+
- **NETWORK**: offline-only
46+
- **SECRETS**: No credentials accessed or exposed.
47+
- **POLICY_DECISIONS**: All design boundaries respected (no live runtime hooks, advisory-only subagents, MCP treated as untrusted, no LLM judge).
48+
- **RISKS**: None. Skeleton command layer validated via integration tests.
49+
- **NEXT**: Await Review-Gate approval.

0 commit comments

Comments
 (0)