Enterprise Application Engineering & GitOps Delivery
The isa app (Cloud SaaS) and aix app (SweetNight Enterprise) command family provides a unified software engineering pipeline for authoring, verifying, and shipping production-grade applications with zero raw kubectl commands.
Applications built with this toolchain adopt the Dual-Engine Fullstack Architecture proven across SweetNight’s Ocean Freight, SCM, and Commercial Control Towers:
- Backend: FastAPI async service with live AEP catalog client and automated token-exchange middleware.
- Frontend: React 18 / Vite / TypeScript with
@org-sweet-night/sn-tower-kitenterprise UI components. - Governance: Strict adherence to Rule R11 (Truthful, Zero-Mock Posture) and Rule R4 (Governed GitOps Deployment).
1. Discovering Enterprise Catalog Assets (catalog list)
Before authoring code, query the active cluster’s AEP service mesh for available business capabilities, MCP tool servers, and Lakehouse semantic models:
# Discover approved enterprise capabilities
isa app catalog list --kind capability
# Search for specific MCP tools or Lakehouse data models
isa app catalog list --kind mcp --search erp
isa app catalog list --kind cube --search InventorySample output:
Catalog Assets (Target: GCP · isagent.io):
┌────────────────────────────────────────┬────────────┬──────────────────┬──────────────┐
│ Resource Identifier │ Kind │ Provider │ Status │
├────────────────────────────────────────┼────────────┼──────────────────┼──────────────┤
│ cap-iam-application-commercial-tower │ capability │ isa.iam │ approved │
│ agent.config.update │ capability │ isa.control │ approved │
│ sn-erp-mcp │ mcp │ enterprise.mesh │ online │
│ ScmGlobalMultiEchelonInventory │ cube │ lakehouse.cube │ materialized │
└────────────────────────────────────────┴────────────┴──────────────────┴──────────────┘2. Scaffolding a Dual-Engine Application (scaffold)
Generate a clean, production-ready fullstack application:
isa app scaffold catalog-demo-workbench \
--title "SweetNight AEP Catalog Workbench" \
--template workbench \
--dir ./catalog-demo-workbenchGenerated Project Topology
catalog-demo-workbench/
├── aep.json # AEP governance contract & capability declarations
├── Dockerfile # Multi-stage secure container build
├── backend/
│ ├── app/
│ │ ├── main.py # FastAPI entry point with CORS & AEP token middleware
│ │ ├── routes/
│ │ │ ├── health.py # /health probes (liveness, readiness)
│ │ │ └── catalog.py # /api/catalog-bindings live capability introspection
│ │ └── schemas/ # Pydantic contract schemas
│ └── requirements.txt
└── frontend/
├── src/
│ ├── App.tsx # Root component rendering 5 universal UI states
│ ├── components/ # @org-sweet-night/sn-tower-kit data cards & workbench grid
│ └── types/ # Dual-engine contract TypeScript interfaces
├── package.json
└── vite.config.ts3. Binding Catalog Capabilities (bind)
Bind live capabilities discovered in Step 1 into the application manifest (aep.json). This wires required security scopes and credential injection without hardcoding secrets:
cd ./catalog-demo-workbench
# Bind live AEP IAM capability and agent configuration capability
isa app bind . \
--capability cap-iam-application-commercial-tower-prod \
--capability agent.config.updateThis updates aep.json declaratively:
{
"schema_version": "1.0",
"name": "catalog-demo-workbench",
"version": "1.0.0",
"bindings": {
"capabilities": [
"cap-iam-application-commercial-tower-prod",
"agent.config.update"
],
"mcp_servers": [],
"cube_models": []
}
}4. Contract Pre-Verification (verify)
Execute static and structural checks across both engines before submitting to the deployment control plane:
isa app verify .Verification Checks
- Dual-Stack Contract Parity: Verifies Pydantic DTO definitions in Python match TypeScript interfaces in
frontend/src/types/. - Rule R11 (Truthful, Zero-Mock Posture): Confirms frontend cards consume real endpoints (
/api/catalog-bindings) and implement all 5 universal UI states:- Loading: Suspense skeletons while fetching.
- Empty: Informative prompt when catalog returns 0 rows.
- Error: Resilient fallback card with error details.
- Unauthorized: Prompts login if AEP token is missing or expired.
- Success: Renders authoritative live data cards.
- Mandatory Probes: Ensures
/healthreturns{ "status": "healthy" }with 200 OK.
5. Governed Build & GitOps Deployment (deploy)
[!IMPORTANT] Rule R4 (Zero Raw Kubectl Policy): Direct execution of
kubectl apply,kubectl edit, orkubectl set imageagainst application workloads is strictly forbidden. All mutations must flow through declarative GitOps.
Submit the release to the target cluster’s control plane:
Option A: Deploy to Cloud SaaS (GCP)
isa app deploy . --target gcp --env prod- Host:
https://isagent.io/apps/catalog-demo-workbench/ - Namespace:
user-apps - GitOps Repository:
xenoISA/isA_Cloud
Option B: Deploy to On-Premise Enterprise (SweetNight)
aix app deploy . --target sn --env prod- Host:
https://aix.snnc.cc/apps/catalog-demo-workbench/ - Namespace:
sn-user-apps - GitOps Repository:
org-sweet-night/sn_cloud
What Happens During Governed Deployment
- Target-Native Compilation: Source is packaged and compiled on the target platform builder (Cloud Build on GCP, Kaniko builder on SN On-Premise).
- Supply Chain Attestation:
- Scanned by Trivy (build aborts if any
HIGHorCRITICALCVE is detected). - Generates in-toto attestation (
attestation.json) and SLSA Level 3 provenance. - Signed cryptographically using Cosign.
- Scanned by Trivy (build aborts if any
- GitOps Promotion: Synthesizes declarative manifests (
release.yaml) into the target GitOps repository via pull request. - ArgoCD Reconciliation: ArgoCD syncs the declarative state to the target namespace.
- Dynamic Gateway Ingress: Automatically binds gateway routing (APISIX Gateway route on SN, Cloud Ingress on GCP) to expose the application URL under
/apps/<slug>/.
6. Live Probing & Verification
Once deployment reaches the terminal state DEPLOYED, verify live endpoints over HTTPS:
# 1. Root Application Shell
curl -sI https://isagent.io/apps/catalog-demo-workbench/
# HTTP/2 200 OK
# 2. Health Probe
curl -s https://isagent.io/apps/catalog-demo-workbench/health
# {"status":"healthy","app_name":"sn-catalog-demo-workbench","version":"1.0.0"}
# 3. Live AEP Catalog Introspection
curl -s https://isagent.io/apps/catalog-demo-workbench/api/catalog-bindings
# {"status":"ok","bindings":["cap-iam-application-commercial-tower-prod","agent.config.update"]}Both endpoints on Cloud (isagent.io) and Enterprise On-Premise (aix.snnc.cc) expose identical zero-mock verified experiences.