You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ANTIGRAVITY_CLI_INTEGRATION.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,13 @@ flowchart TD
37
37
subagent -->|7. audit proposal| prop
38
38
agent -->|8. apply gate| ctxt
39
39
ctxt -->|9. policy hook validation| policy
40
-
policy -->|10. sandboxed commit| repo
40
+
policy -->|10. sandboxed write execution| repo
41
41
```
42
42
43
43
---
44
44
45
45
## 3. Operational Flow
46
46
47
47
1.**Context Harvesting**: Before launching a task, the Antigravity Orchestrator executes `ctxt context pack --task "<task_description>"`. This harvest sanitizes the repository state, redacting secrets and building a deterministic Context Pack under `.comptext/context_pack.latest.json`.
48
-
2.**Proposal Generation**: When proposing changes, the agent runs `ctxt propose --provider dummy "<prompt>"`. This creates a structured JSON patch proposal under `proposals/` without mutating source files.
48
+
2.**Proposal Generation**: When proposing changes, the agent runs `ctxt propose --provider dummy "<prompt>"`. This creates a structured JSON patch proposal under `proposals/` without mutating source files. Note that `proposals/` contains ignored/generated runtime state and is excluded from Git tracking in the release package baseline.
49
49
3.**Apply and Verification**: To modify the codebase, the agent calls `ctxt apply <proposal_path>`. The CompText control plane intercepts the request, validates that target files lie within allowed write boundaries, prompts for user confirmation (or validation suite success), applies the patches, and runs local tests.
Copy file name to clipboardExpand all lines: docs/ARTIFACT_POLICY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,4 +18,4 @@ This document clarifies the classification, location, and Git tracking rules for
18
18
-**Classification**: Committed audit evidence.
19
19
-**Location**: `reports/` at the repository root.
20
20
-**Git Policy**: **Tracked**. These files serve as permanent evidence of completed developmental milestones, including network constraints and validation command logs.
21
-
-**Purpose**: Documents phase reports and compliance tracking logs (e.g., `reports/phase_*_status.md`).
21
+
-**Purpose**: Documents phase reports and milestone tracking logs (e.g., `reports/phase_*_status.md`).
Hooks are policy-interceptor targets designed to enforce strict safety boundaries before, during, and after agent runs. This document defines the target architecture for interceptor hooks within the CompText workspace.
3
+
Hooks are policy-interceptor targets designed to enforce safety boundaries before, during, and after agent runs. This document defines the target architecture for interceptor hooks within the CompText workspace. Note that these hooks represent a planned target architecture and are not yet locally implemented in the current code execution pipeline.
4
4
5
5
---
6
6
@@ -25,28 +25,28 @@ The target architecture defines four critical interceptor locations:
25
25
```
26
26
27
27
1.**SessionStart**:
28
-
-**Trigger**: Executed when a new agent session or subagent run is initiated.
29
-
-**Verification**: Parses workspace config, verifies CLI version, and checks that `AGENTS.md` and `PROJEKT.md` match remote origin main branches.
28
+
-**Trigger**: Planned trigger when a new agent session or subagent run is initiated.
29
+
-**Verification**: Intended to parse workspace config and verify CLI version. Checks local Git state by default; matching against remote origin main branches is performed only when remote checks are explicitly authorized.
30
30
2.**PreToolUse**:
31
-
-**Trigger**: Executed immediately before any tool (e.g. file read, file write, shell command execution) is run.
32
-
-**Verification**: Evaluates inputs against active policy rules. Fails closed and blocks execution if a violation is detected.
31
+
-**Trigger**: Planned trigger immediately before any tool (e.g. file read, file write, shell command execution) is run.
32
+
-**Verification**: Intended to evaluate inputs against active policy rules, failing closed and blocking execution if a violation is detected.
33
33
3.**PostToolUse**:
34
-
-**Trigger**: Executed immediately after a tool finishes running, before returning the output to the agent's context.
35
-
-**Verification**: Filters and redacts high-entropy secrets, passwords, or credentials from command output and file read buffers.
34
+
-**Trigger**: Planned trigger immediately after a tool finishes running, before returning the output to the agent's context.
35
+
-**Verification**: Intended to filter and redact high-entropy secrets, passwords, or credentials from command output and file read buffers.
36
36
4.**PostPhase**:
37
-
-**Trigger**: Executed when an agent signals completion of a roadmap phase.
38
-
-**Verification**: Runs the **Global Validation Suite** and checks git status to ensure the working tree remains clean before triggering the git push progression pipeline.
37
+
-**Trigger**: Planned trigger when an agent signals completion of a roadmap phase.
38
+
-**Verification**: Intended to run the **Global Validation Suite** and check Git status to ensure the working tree remains clean before triggering the Git push progression pipeline.
The hook governance architecture must actively enforce the following rules:
44
+
The hook governance target architecture is designed for the following intended enforcement policies:
45
45
46
-
-**Block `.env` and Secret Reads**: PreToolUse hooks block attempts to read `.env`, `.env.*`, keyfiles (`*.key`, `*.pem`, `*.p12`, `*.pfx`), or private keys.
47
-
-**Block Environment Variable Printing**: Blocks executing commands like `env`, `printenv`, or `Get-ChildItem Env:` to prevent leakages of system configuration credentials.
48
-
-**Block Network and Provider Calls**: Intercepts socket calls or provider invocations unless the active phase config explicitly permits network access.
49
-
-**Block Out-of-Bounds Writes**: Restricts file modifications to paths inside the repository root. Rejects edits targeting directories outside the workspace.
50
-
-**Block Broad Repository Rereads**: Limits tool executions that read the entire codebase recursively unless justified by a phase transition.
51
-
-**Require Proposal Before Apply**: Enforces that source code modification is only done via the `ctxt apply` flow referencing a verified JSON proposal from `proposals/`.
52
-
-**Require Local Validation**: Blocks marking a phase as complete until all commands in the validation suite pass successfully.
46
+
-**Block `.env` and Secret Reads**: PreToolUse hooks are planned to block attempts to read `.env`, `.env.*`, keyfiles (`*.key`, `*.pem`, `*.p12`, `*.pfx`), or private keys.
47
+
-**Block Environment Variable Printing**: Intended to block executing commands like `env`, `printenv`, or `Get-ChildItem Env:` to prevent leakages of system configuration credentials.
48
+
-**Block Network and Provider Calls**: Intended to intercept socket calls or provider invocations unless the active phase config explicitly permits network access.
49
+
-**Block Out-of-Bounds Writes**: Intended to restrict file modifications to paths inside the repository root, rejecting edits targeting directories outside the workspace.
50
+
-**Block Broad Repository Rereads**: Intended to limit tool executions that read the entire codebase recursively unless justified by a phase transition.
51
+
-**Require Proposal Before Apply**: Intended to enforce that source code modification is only done via the `ctxt apply` flow referencing a verified JSON proposal from `proposals/`.
52
+
-**Require Local Validation**: Intended to block marking a phase as complete until all commands in the validation suite pass successfully.
-**Model/Provider Output Untrusted**: All suggestions, snippets, and patches produced by provider models are treated as untrusted inputs. They are subjected to the apply-time write sandbox and post-apply validation gates.
22
22
-**Network Boundaries (Deny-by-Default)**: Real external network execution is strictly denied unless explicitly authorized. The OpenAI-compatible adapter operates entirely offline in this MVP phase.
Copy file name to clipboardExpand all lines: docs/PERMISSIONS_MODEL.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Permissions Model
2
2
3
-
CompText utilizes a defense-in-depth permissions model to restrict agent actions at the operating system and execution environment level.
3
+
CompText utilizes a defense-in-depth permissions model to restrict agent actions at the orchestrator and runtime execution environment level.
4
4
5
5
---
6
6
@@ -10,9 +10,9 @@ Permissions do not serve as the primary policy compiler. Instead, they act as lo
10
10
11
11
1.**Safety Constitution (`AGENTS.md`)**: The primary rulebook governing logical behavior.
12
12
2.**Hook Interceptors (`docs/HOOK_GOVERNANCE.md`)**: Contextual software gates executing within the workspace.
13
-
3.**Permissions Model**: Hardware/runtime restrictions enforced by the orchestration host.
13
+
3.**Permissions Model**: Orchestrator-enforced runtime restrictions acting as a defense-in-depth policy layer.
14
14
15
-
If a hook fails or an agent attempts to bypass logical constraints, the permissions model catches the violation and halts the execution thread.
15
+
If a hook fails or an agent attempts to bypass logical constraints, the orchestrator's runtime permissions model acts as a secondary layer to block unauthorized actions.
Copy file name to clipboardExpand all lines: docs/SKILL_AUTHORING_GUIDE.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,17 @@ Skills are progressive context-loading capsules that guide agent behavior for sp
4
4
5
5
---
6
6
7
-
## 1. Skill File Layout
7
+
## 1. Skill Folder and File Layout
8
8
9
-
Every skill must live in the `.agent/skills/` (or `.agents/skills/`) directory as a markdown file structured as:
9
+
Every skill must be authored as a directory under `.agent/skills/` (or `.agents/skills/`) containing a `SKILL.md` file. For example, `.agent/skills/ctxt-antigravity-governance/SKILL.md`.
10
+
11
+
The frontmatter of each `SKILL.md` file must be structured as:
10
12
11
13
```markdown
12
14
---
13
15
name: ctxt-phase-XX-name
14
-
summary: "A brief 1-line description of the skill for the compatibility manifest."
16
+
description: "A detailed description of the skill used as the primary routing and trigger field by the Antigravity Orchestrator."
17
+
summary: "Optional secondary metadata summarizing the skill."
15
18
---
16
19
17
20
# Skill: ctxt-phase-XX-name
@@ -40,7 +43,7 @@ The requested response format (e.g., standard status report schema).
40
43
## 2. YAML Trigger Tracing
41
44
42
45
Triggers in the YAML frontmatter inform the Antigravity Orchestrator when a skill is relevant. Triggers are resolved from:
43
-
- The **task description** matching the skill `name` or `summary`.
46
+
- The **task description** matching the skill `name` or `description`.
44
47
- Active **phase declarations** (e.g., `Phase 12`).
Copy file name to clipboardExpand all lines: docs/SUBAGENT_GOVERNANCE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Subagents allow parallel task execution and validation. To prevent recursive exe
8
8
9
9
Only the following specialist subagent roles are permitted in the CompText workspace:
10
10
11
-
-**`security-reviewer`**: Audits codebase modifications and document updates for secret leakage, credentials, and forbidden compliance claims.
11
+
-**`security-reviewer`**: Audits codebase modifications and document updates for secret leakage, credentials, and forbidden readiness/compatibility claims.
12
12
-**`ci-diagnoser`**: Analyzes Cargo compilation failures, clippy warnings, or test logs, and recommends precise, localized corrections.
13
13
-**`docs-consistency-checker`**: Audits documentation links, checks for file presence, and verifies README consistency.
0 commit comments