build-a-quarterly-kpi-report
Risk Tier: tier_2_external_or_sensitive •
Archetypes: report_synthesis ops_orchestration outbound_comms •
Policy Hash: sha256:0823575fea4fdb0ae…
Samantha Conformance Receipt
Status: PASSED • Target: n8n v1.78.0
Bundle SHA-256: sha256:4c7f55a29edf1a8df3484…
Provenance Signature: c6662dd0686a9a16202a4b8afbec…
Highlighted Caveats & Nuances Matrix
-
[MEDIUM] Community Edition RBAC & Audit Limits
n8n Community Edition lacks native enterprise RBAC and immutable audit logs; keep the generated JSONL/webhook audit node enabled.
-
[LOW] Context Truncation on Large Payloads
Batch-chunking safeguards are pre-wired in workflow.governed.json to prevent LLM context overflow.
-
[MEDIUM] Structured JSONL Audit Sink Required
n8n does not emit immutable local JSONL audit logs natively; keep the bundled audit emitter enabled.
Generated Bundle Files
csr-governance.yaml
apiVersion: csr.governance/v1
archetype_overlays:
ops_orchestration:
durable_checkpointing: true
idempotent_step_replay: true
max_concurrent_workflows: 5
require_compensation_handlers: true
outbound_comms:
hitl_required_before_send: true
mandatory_staging_draft: true
require_suppression_list_check: true
report_synthesis:
deterministic_math_only: true
freshness_max_age_hours: 24
output_dlp_scan: true
require_claim_citations: true
split_draft_and_publish: true
baseline_policy:
action_gates:
allowed_actions:
- read_source_records
- mutate_internal_system_records
- send_external_communication
default_mode: hitl_gated
effective_risk_tier: tier_2_external_or_sensitive
hitl_approval_required: true
mandatory_idempotency_keys: true
mutation_modes:
- read
- internal_write
- external_send
audit_contract:
optional_csr_remote_sink: /api/v1/governance/ingest
required_fields:
- timestamp_utc
- trace_id
- agent_slug
- tool_name
- risk_tier
- idempotency_key
- decision
sink_mode: local_structured_jsonl
circuit_breakers:
cooldown_seconds: 60
kill_switch_triggers:
- repeated_policy_violation
- unredacted_secret_detected
- step_budget_exceeded
max_reasoning_steps: 8
max_retries_per_tool: 2
max_tool_calls_per_run: 10
data_boundaries:
egress_domain_allowlist:
- communitysoftwareregistry.com
pii_redaction_before_llm: true
sensitivities:
- internal
untrusted_input_quarantine: true
identity:
invocation_auth_mode: on_behalf_of_user
maker_identity: CSR Technical Owner
runtime_principal: dedicated_service_account
secret_injection: external_vault_ref
kind: AgentGovernanceContract
metadata:
agent_slug: build-a-quarterly-kpi-report
archetypes:
- report_synthesis
- ops_orchestration
- outbound_comms
business_sponsor: CSR Business Sponsor
effective_risk_tier: tier_2_external_or_sensitive
technical_owner: CSR Technical Owner
version: 1.0.0
resolved_invariants:
default_execution_mode: hitl_gated
deterministic_math_only: true
hitl_approval_required: true
mandatory_idempotency_keys: true
max_reasoning_steps: 8
max_retries_per_tool: 2
max_tool_calls_per_run: 10
pii_redaction_before_llm: true
untrusted_input_quarantine: true
target_adapter:
caveats_count: 3
connector_slug: n8n
connector_version: 1.78.0
display_name: n8n
injection_type: graph_json
melinda_conformance_badge: Verified by Mama Melinda
platform_category: visual_low_code
GOVERNANCE_CAVEATS.md
# Governance Caveats & Nuances — n8n - **Agent Slug**: `build-a-quarterly-kpi-report` - **Effective Risk Tier**: `tier_2_external_or_sensitive` - **Connector**: `n8n` (`v1.78.0`) - **Stewardship Status**: `Verified by Mama Melinda` ## Platform Caveats & Required Compensating Controls - **[MEDIUM] Community Edition RBAC & Audit Limits**: n8n Community Edition lacks native enterprise RBAC and immutable audit logs; keep the generated JSONL/webhook audit node enabled. - **[LOW] Context Truncation on Large Payloads**: Batch-chunking safeguards are pre-wired in workflow.governed.json to prevent LLM context overflow. - **[MEDIUM] Structured JSONL Audit Sink Required**: n8n does not emit immutable local JSONL audit logs natively; keep the bundled audit emitter enabled.
workflow.governed.json
{
"name": "build-a-quarterly-kpi-report-n8n-governed",
"csr_governance_version": "csr.governance/v1",
"connector_slug": "n8n",
"connector_version": "1.78.0",
"effective_risk_tier": "tier_2_external_or_sensitive",
"nodes": [
{
"id": "node-intake-quarantine",
"name": "Untrusted Input Quarantine & Batch Chunker",
"type": "n8n.code",
"parameters": {
"max_batch_size": 25,
"pii_redaction_before_llm": true,
"max_reasoning_steps": 8
}
},
{
"id": "node-deterministic-calc",
"name": "Deterministic Calculation Code Node",
"type": "n8n.code",
"parameters": {
"deterministic_math_only": true,
"description": "All KPI sums, ratios, and financial calculations execute here without LLM arithmetic."
}
},
{
"id": "node-hitl-wait-gate",
"name": "Wait / HITL Approval Gate",
"type": "n8n.wait_approval",
"parameters": {
"hitl_approval_required": true,
"risk_tier": "tier_2_external_or_sensitive",
"mandatory_idempotency_keys": true
}
},
{
"id": "node-audit-jsonl",
"name": "Structured JSONL / CSR Audit Emitter",
"type": "n8n.webhook_audit",
"parameters": {
"sink_mode": "local_structured_jsonl",
"required_fields": [
"timestamp_utc",
"trace_id",
"agent_slug",
"tool_name",
"risk_tier",
"idempotency_key",
"decision"
]
}
}
],
"connections": [
{
"from": "node-intake-quarantine",
"to": "node-deterministic-calc"
},
{
"from": "node-deterministic-calc",
"to": "node-hitl-wait-gate"
},
{
"from": "node-hitl-wait-gate",
"to": "node-audit-jsonl"
}
]
}