Building AI-SGAP - Part 20 Entering AWS Staging: Progress, Setbacks, and a Better Engineering Process
Originally published on LinkedIn. Build status reflects the original publication date.
AI-SGAP has reached a significant milestone: the build now has live AWS staging foundations and published container images.
Getting here involved much more than moving code into the cloud. It required reconciling builds, testing real persistence, investigating dependencies, improving handoffs, and making explicit decisions about unresolved risk.
In Part 19, I discussed what happened when our build records disagreed. This installment looks at the wider picture: what has worked, what has slowed us down, and what we need to demonstrate next.
What has gone well
- The framework has become an executable product foundation. We have moved from assessment workbooks into customer intake, evidence review, findings, assessor workflows, and reporting.
- Customer feedback changed the design. Feedback from a trusted SI’s CEO helped expose unnecessary intake complexity. That pushed us toward guided evidence collection and clearer follow-up requests, with technical assessment detail available to the assessor.
- Model-assisted analysis has progressed beyond isolated examples. A synthetic campaign completed advisory analysis across the agent framework’s 56 controls and 112 questions. Semantic correctness and human acceptance remain separate review obligations.
- Testing has become more representative. We have added real local PostgreSQL and application-server checks, role-specific browser checks, and source-to-container comparisons alongside focused unit tests.
- AWS preparation has produced tangible artifacts. State storage, private registries, staging DNS, and a certificate are in place. Runtime and migration images have been published to private ECR, with further verification recorded.
What went wrong
- Isolated progress did not always produce an integrated build. A feature could pass its focused checks while its delivery package omitted fixtures, scripts, dependencies, or historical evidence required elsewhere.
- Build labels created ambiguity. Similar names and reused labels made it harder to identify the intended package. We had to recover and verify exact artifacts instead of relying on filenames.
- Some validation depended on context outside the package. Historical records and working-directory assumptions became integration dependencies. Missing evidence prevented us from claiming complete verification.
- Tests sometimes expressed the wrong expectation. One local health-check test expected success while a required service dependency was absent. Investigating the failure meant checking the test’s assumption as well as the application.
- Tooling needed correction too. We encountered problems around container identity, permissions, scanner-output handling, and incomplete status reporting. Those failures needed their own diagnosis and retained records.
- Security findings required judgment beyond a scanner total. Different tools produced different views. We needed to understand the affected components, available corrections, and residual risk before deciding what could proceed.
What working with AI has taught us
- Codex has been useful across implementation and investigation. It has helped write code, prepare tests, compare artifacts, analyze failures, and construct repeatable procedures.
- Its working context still has limits. A useful change based on one workspace does not establish compatibility with every other workstream.
- Detailed explanations need evidence behind them. “Implemented,” “tested,” “published,” “deployed,” and “accepted” describe different accomplishments. Progress summaries need to preserve those distinctions.
- Smaller assignments are easier to verify. An identified baseline, bounded change, expected output, and explicit acceptance criteria make both implementation and review more manageable.
- Human ownership remains essential. I decide the objective, evaluate the evidence, accept or reject limitations, and authorize the next step. AI assistance changes how we perform the work; accountability still needs a named owner.
What we have learned about security and risk
- Passing functional tests answers a bounded question. It does not establish that an image meets the security criterion or that a deployed workflow operates correctly.
- An exception needs a scope and an expiry. Where residual risk is accepted for a limited purpose, the finding stays visible. The decision records what is permitted and when it must be revisited.
- A clean result from one scanner needs context. We also need to understand scan coverage, another scanner’s findings, and whether the result belongs to the exact image under review.
- Recovery includes preserving engineering evidence. Logs, build inputs, validation outputs, and decisions need to survive beyond the workspace where they were created.
- Staging is itself an evaluation environment. It gives us another place to test assumptions about identity, persistence, networking, operations, and recovery.
What we will do better
- Start each task from an explicit baseline. Identify the source package, intended workstream, dependencies, and allowed actions.
- Deliver self-contained review packages. Include the required inputs and verification context, with explicit references for anything maintained separately.
- Use unambiguous artifact names. New revisions should be distinguishable without asking someone to infer which “latest” file was intended.
- Test the assembled deliverable. Preserve component results, then verify the combination that someone will actually operate.
- Maintain the Command and Build Ledger daily. Record proposed work, confirmed execution, failures, corrections, results, and evidence gaps.
- Review the Risk Ledger regularly. Keep accepted, mitigated, unresolved, and expired risks visible alongside their owners and next actions.
Where we are now
- Live AWS foundations exist, and both container images are in private ECR.
- A reviewed Terraform plan has been approved for the next infrastructure step. An approved plan establishes intent; execution and operational checks require their own evidence.
- Local customer and assessor workflow work has advanced through database and browser validation.
- Historical evidence gaps remain recorded. Current checks cannot recreate missing historical records.
- A running, healthy, end-to-end AWS application is the next result to verify. Staging progress does not yet establish partner-beta or production readiness.
Where we want to be
- A repeatable private staging environment that can be deployed, inspected, updated, and recovered with clear ownership.
- A complete customer-to-assessor experience where evidence, follow-up, clarification, and review are understandable and usable.
- Model assistance evaluated on useful work: sound interpretation, relevant evidence, actionable findings, manageable latency, and measurable cost.
- A controlled partner beta that produces evidence about customer effort, assessor usefulness, reliability, and remaining limitations.
- A licensed product per AI system, supported by partners and a technically sound handoff as the engineering team grows.
Reaching this stage gives us something concrete to build on. The next phase must show that the pieces work together consistently and that a customer can use the result to make a better-informed decision.
For those who have taken an early product into staging: which assumption changed most once the system left the developer’s machine?
#BuildingAISGAP #AISecurity #CloudSecurity #DevSecOps #BuildInPublic
Building AI-SGAP is an open founder-engineering journal. This series shares high-level design principles, lessons, and build progress without disclosing proprietary implementation details. It does not certify compliance or guarantee that an AI system is secure or ready for deployment.