Skip to content

Commit 477d400

Browse files
committed
Publish AGT response documentation
1 parent 9e5404c commit 477d400

14 files changed

Lines changed: 518 additions & 37 deletions

docs/.vitepress/config.mts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default defineConfig({
7979

8080
nav: [
8181
{ text: 'Guide', link: '/guide/getting-started' },
82+
{ text: 'AGT', link: '/integrations/agt' },
8283
{ text: 'Integrations', link: '/integrations/overview' },
8384
{ text: 'API', link: '/api/overview' },
8485
{ text: 'Issues', link: 'https://github.com/meshguard/issues' },
@@ -101,6 +102,7 @@ export default defineConfig({
101102
items: [
102103
{ text: 'Agent Identity', link: '/guide/identity' },
103104
{ text: 'Policies', link: '/guide/policies' },
105+
{ text: 'Migrating from AGT Local', link: '/guide/migrating-from-agt-local' },
104106
{ text: 'Trust Scoring & Delegation', link: '/guide/trust-scoring' },
105107
{ text: 'Anomaly Detection', link: '/guide/anomaly-detection' },
106108
{ text: 'Role-Based Access Control', link: '/guide/rbac' },
@@ -110,6 +112,7 @@ export default defineConfig({
110112
{ text: 'Compliance Reports', link: '/guide/compliance-reports' },
111113
{ text: 'Analytics Dashboard', link: '/guide/analytics' },
112114
{ text: 'Alerting', link: '/guide/alerting' },
115+
{ text: 'SIEM Egress', link: '/guide/siem-egress' },
113116
{ text: 'Agent Discovery', link: '/guide/agent-discovery' },
114117
{ text: 'OpenTelemetry Integration', link: '/guide/otel' },
115118
{ text: 'CLI Reference', link: '/guide/cli' },
@@ -119,6 +122,7 @@ export default defineConfig({
119122
text: 'Deployment',
120123
items: [
121124
{ text: 'Self-Hosted', link: '/guide/self-hosted' },
125+
{ text: 'Multi-Cloud & Air-Gapped', link: '/guide/deployment/multi-cloud-sovereign-airgap' },
122126
{ text: 'Guardian Sidecar', link: '/guide/guardian-sidecar' },
123127
{ text: 'Enterprise', link: '/guide/enterprise' },
124128
]
@@ -142,6 +146,7 @@ export default defineConfig({
142146
text: 'SDKs',
143147
items: [
144148
{ text: 'Overview', link: '/integrations/overview' },
149+
{ text: 'Microsoft AGT', link: '/integrations/agt' },
145150
{ text: 'Python SDK', link: '/integrations/python' },
146151
{ text: 'JavaScript SDK', link: '/integrations/javascript' },
147152
{ text: '.NET SDK', link: '/integrations/dotnet' },
@@ -173,6 +178,35 @@ export default defineConfig({
173178
]
174179
}
175180
],
181+
'/concepts/': [
182+
{
183+
text: 'AGT Response',
184+
items: [
185+
{ text: 'AGT Architecture', link: '/concepts/agt-architecture' },
186+
{ text: 'Streaming, Sidecar & Egress', link: '/concepts/streaming-sidecar-egress' },
187+
{ text: 'Federation', link: '/concepts/federation' },
188+
{ text: 'Cost Governance', link: '/concepts/cost-governance' },
189+
{ text: 'Data Lineage', link: '/concepts/data-lineage' },
190+
]
191+
}
192+
],
193+
'/strategy/': [
194+
{
195+
text: 'Execution',
196+
items: [
197+
{ text: 'Open Decisions', link: '/strategy/open-decisions' },
198+
{ text: 'Phase Compression Plan', link: '/strategy/phase-compression-plan' },
199+
]
200+
}
201+
],
202+
'/blueprints/': [
203+
{
204+
text: 'Blueprints',
205+
items: [
206+
{ text: 'Regulated Industries', link: '/blueprints/regulated-industries' },
207+
]
208+
}
209+
],
176210
'/api/': [
177211
{
178212
text: 'API Reference',
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Regulated Industry Blueprints
2+
3+
MeshGuard blueprints are deployment and evidence packages. They are not certification claims by themselves.
4+
5+
| Blueprint | Primary evidence |
6+
|---|---|
7+
| HIPAA | PHI policies, access logs, audit controls, BAA workflow. |
8+
| FedRAMP Moderate | FIPS build, AU/AC/IA/SC/SI mappings, SSP skeleton. |
9+
| FINRA and SEC 17a-4 | Immutable retention, human approval, WORM-compatible export. |
10+
| SOC 2 | Security, availability, processing integrity, confidentiality, privacy evidence. |
11+
| PCI-DSS | Card-data exfiltration controls and audit export. |
12+
| ISO 27001 | Logging, access, incident, and supplier controls. |
13+
| GDPR / EU AI Act / DORA | Data residency, lineage, subject export, operational resilience. |
14+
15+
Each blueprint should include reference architecture, Terraform/Helm values, policy pack, evidence mapping, and a validated runbook.
16+

docs/concepts/agt-architecture.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# AGT And MeshGuard Architecture
2+
3+
AGT and MeshGuard occupy different layers.
4+
5+
| Layer | Responsibility | Owner |
6+
|---|---|---|
7+
| PEP | Intercept agent actions in process and ask for a decision. | AGT, LangChain adapters, Bedrock adapters, OpenAI Agents adapters, or custom code. |
8+
| PDP | Evaluate tenant policy against the request context. | MeshGuard control plane. |
9+
| Audit | Persist decisions and operator actions in a tamper-evident stream. | MeshGuard audit service. |
10+
| Operations | SSO, SCIM, RBAC, alerting, SIEM egress, deployment, evidence export. | MeshGuard operator surface. |
11+
12+
## Request Flow
13+
14+
```mermaid
15+
sequenceDiagram
16+
participant Agent as AGT-instrumented agent
17+
participant PEP as MeshGuard AGT adapter
18+
participant PDP as MeshGuard PDP
19+
participant Audit as MeshGuard Audit
20+
participant SIEM as Customer SIEM
21+
22+
Agent->>PEP: action + context
23+
PEP->>PDP: PolicyRequest
24+
PDP-->>PEP: PolicyResponse
25+
PEP->>Audit: decision event
26+
Audit-->>PEP: audit anchor
27+
Audit->>SIEM: normalized egress
28+
PEP-->>Agent: allow, deny, require_approval, or error
29+
```
30+
31+
## Boundary Principles
32+
33+
- The PEP is pluggable. AGT is first-class, not exclusive.
34+
- The PDP contract is stable and framework-neutral.
35+
- Tenant ID is mandatory on every control-plane request.
36+
- Audit records are portable and exportable.
37+
- Self-hosted, sovereign, and air-gapped deployments use the same product surface as SaaS.
38+
39+
## Deployment Modes
40+
41+
| Mode | Control-plane location | Best fit |
42+
|---|---|---|
43+
| Managed SaaS | MeshGuard cloud | Default production fleet governance. |
44+
| Dedicated tenant | Single-tenant MeshGuard cloud | Mid-enterprise isolation and predictable capacity. |
45+
| Customer cloud | Customer AWS, Azure, GCP, OCI, or sovereign account | Regulated or procurement-constrained enterprises. |
46+
| Self-hosted Kubernetes | Customer cluster | Sovereign and high-control environments. |
47+
| Air-gapped | Offline install bundle | Defense and disconnected environments. |
48+

docs/concepts/cost-governance.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Cost And Token Governance
2+
3+
MeshGuard attributes model spend to agents, teams, business units, projects, and customers.
4+
5+
## Provider Coverage
6+
7+
- OpenAI and Azure OpenAI.
8+
- Anthropic.
9+
- AWS Bedrock.
10+
- GCP Vertex AI.
11+
- Cohere.
12+
- Mistral.
13+
- Local or self-hosted models through token estimation.
14+
15+
## Controls
16+
17+
- Daily, weekly, monthly, and rolling-window budgets.
18+
- Soft threshold alerts.
19+
- Hard caps enforced as policy denials.
20+
- Spend anomaly detection.
21+
- Chargeback exports for finance.
22+
23+
## Policy Example
24+
25+
```yaml
26+
apiVersion: governance.toolkit/v1
27+
kind: Policy
28+
metadata:
29+
name: monthly-token-budget
30+
spec:
31+
defaultEffect: deny
32+
rules:
33+
- effect: deny
34+
actions:
35+
- model:invoke
36+
when:
37+
meshguard.app/v1:
38+
budgetRemainingUsd:
39+
lte: 0
40+
- effect: allow
41+
actions:
42+
- model:invoke
43+
```
44+

docs/concepts/data-lineage.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Data Lineage And Provenance
2+
3+
MeshGuard records which agent touched which data, where that data went, and what derived artifacts or downstream agents were involved.
4+
5+
## Graph Entities
6+
7+
- Agent.
8+
- Dataset or data class.
9+
- Destination.
10+
- Derived artifact.
11+
- Policy decision.
12+
- Trace.
13+
14+
## Integrations
15+
16+
- OpenLineage.
17+
- DataHub.
18+
- Atlan.
19+
- Collibra.
20+
- Alation.
21+
22+
## Query Examples
23+
24+
- Who touched dataset X in the last 30 days?
25+
- What did agent Y send outside the tenant?
26+
- Which downstream agents received data derived from this source?
27+
- What did agents do with this data subject's information?
28+

docs/concepts/federation.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Federation And Cross-Org Agent Trust
2+
3+
Federation lets one tenant authorize and audit another tenant's agent without handing control to a single cloud vendor.
4+
5+
## Handshake
6+
7+
1. Tenants agree to a signed federation scope.
8+
2. Each tenant exchanges trust roots.
9+
3. Tenant A grants Tenant B's agents explicit actions and resources.
10+
4. Grants are time-bounded, revocable, and audited.
11+
12+
## Cross-Linked Audit
13+
14+
When a federated action occurs:
15+
16+
- Tenant X receives an audit event for the outgoing action.
17+
- Tenant Y receives an audit event for the inbound action.
18+
- Both events contain Merkle proof links to the other tenant's event.
19+
- Redaction profiles control what each tenant can see.
20+
21+
## Dispute Evidence
22+
23+
Either tenant can export a signed evidence bundle that verifies offline against MeshGuard's signing key and witness proof.
24+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Streaming Inspection, Guardian Sidecar, And Egress Proxy
2+
3+
MeshGuard uses three enforcement layers.
4+
5+
| Layer | Purpose | Bypass resistance |
6+
|---|---|---|
7+
| In-process PEP | Low-latency policy checks inside AGT or framework adapter. | Depends on agent process integrity. |
8+
| Guardian sidecar | Last-known-good policy enforcement and WAL-backed audit when the gateway is unreachable. | Stronger in Kubernetes or VM placement. |
9+
| Egress proxy | Network-level enforcement for outbound traffic. | Strongest when paired with network policy. |
10+
11+
## Streaming Inspection
12+
13+
Supported protocols:
14+
15+
- Server-Sent Events.
16+
- OpenAI streaming.
17+
- Anthropic streaming.
18+
- Bedrock response streams.
19+
- Vertex streaming.
20+
- gRPC bidirectional streaming.
21+
22+
Enforcement modes:
23+
24+
- log-only
25+
- redact
26+
- block-and-truncate
27+
- full-block
28+
29+
Matched sensitive content is deterministically redacted before audit so the audit log does not become a secondary PII/PHI store.
30+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Multi-Cloud, Sovereign, And Air-Gapped Deployment
2+
3+
MeshGuard is one product across deployment modes. Feature differences should come from policy and operational constraints, not separate SKUs.
4+
5+
| Mode | Substrate | Notes |
6+
|---|---|---|
7+
| Managed SaaS US | AWS US regions | Default deployment. |
8+
| Managed SaaS EU | AWS EU or Azure West Europe | EU data residency. |
9+
| Managed SaaS UK | AWS eu-west-2 | UK data residency. |
10+
| Dedicated tenant | Single-tenant MeshGuard cloud | Isolation for mid-enterprise. |
11+
| Customer cloud operated by MeshGuard | Customer AWS, Azure, GCP, OCI | Enterprise procurement and residency. |
12+
| Customer-operated cloud | Customer account | Regulated and sovereign operations. |
13+
| On-prem Kubernetes | Customer cluster | Sovereign and disconnected-preferred environments. |
14+
| Air-gapped | Offline bundle | Defense and disconnected environments. |
15+
16+
## Required Artifacts
17+
18+
- Single Helm chart with values profiles.
19+
- Terraform modules for AWS, Azure, GCP, and OCI.
20+
- Signed OCI image bundle.
21+
- Offline license activation.
22+
- Offline audit anchor verification.
23+
- Customer-managed key integration.
24+
- Region-pinning policy checks.
25+
26+
## Acceptance Target
27+
28+
An air-gapped install must complete from offline media in 60 minutes or less including data initialization.
29+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Migrating From AGT Local Policies
2+
3+
This guide moves an AGT-governed agent from local YAML evaluation to MeshGuard-managed policy decisions without rewriting the agent.
4+
5+
## 1. Preserve The AGT Policy File
6+
7+
MeshGuard accepts AGT-compatible YAML as the first-class policy format:
8+
9+
```yaml
10+
apiVersion: governance.toolkit/v1
11+
kind: Policy
12+
metadata:
13+
name: support-agent-prod
14+
spec:
15+
defaultEffect: deny
16+
rules:
17+
- effect: allow
18+
actions:
19+
- read:ticket
20+
- write:ticket_note
21+
- effect: deny
22+
actions:
23+
- admin:*
24+
```
25+
26+
MeshGuard-specific extensions must be namespaced under `meshguard.app/v1`.
27+
28+
## 2. Add The MeshGuard Adapter
29+
30+
```bash
31+
pip install meshguard-agt
32+
```
33+
34+
```python
35+
from meshguard_agt import configure_agt_with_meshguard
36+
37+
kernel = configure_agt_with_meshguard(
38+
gateway_url="https://gateway.meshguard.app",
39+
tenant_id="acme-corp",
40+
agent_token=os.environ["MESHGUARD_AGENT_TOKEN"],
41+
)
42+
```
43+
44+
## 3. Lift The Policy
45+
46+
```bash
47+
meshguard policy lint policies/support-agent.yaml
48+
meshguard policy lift policies/support-agent.yaml --tenant acme-corp
49+
meshguard policy plan
50+
meshguard policy apply
51+
```
52+
53+
## 4. Dry-Run Against History
54+
55+
Before production promotion, replay the policy against historical decisions:
56+
57+
```bash
58+
meshguard policy test --against last-7d
59+
meshguard policy diff current staged
60+
```
61+
62+
## 5. Canary The Rollout
63+
64+
```bash
65+
meshguard policy apply --canary 10 --rollback-on "denial_rate > 0.05 for 10m"
66+
```
67+
68+
## 6. Lock Local Evaluation To Break-Glass
69+
70+
After the remote PDP is stable, keep local YAML evaluation only as a signed last-known-good fallback for sidecars and disconnected environments.
71+

0 commit comments

Comments
 (0)