AI-NOW Website Deployment Architecture: How It Differs from Traditional Deployment

AI-NOW Production Deployment V2.3
Technical architecture overview and comparison with conventional deployment practices
Baseline date: November 2, 2026

1. The Fundamental Difference

Conventional website deployment often centers on copying updated files directly into the directory currently serving visitors. This approach can expose a mixture of old and new files during a transfer, make the deployed version difficult to identify, and require manual intervention after failures.

AI-NOW separates building, validation, upload, isolated snapshot creation, publication, service activation, health verification, and failure recovery into distinct stages. Rather than treating deployment as a file-transfer task, it uses Git commits and release manifests to identify and verify each release.

In one sentence: conventional deployment focuses on getting new files onto a server; AI-NOW V2.3 focuses on proving which validated release is serving traffic and recovering when activation fails.

2. Architecture Overview

Developer (Linux / Git)
        |
        | git push origin main
        v
GitHub Repository
        |
        v
GitHub Actions CI
  - Build and validate Astro
  - Successful qualifying CI triggers CD
        |
        v
GitHub Actions CD
  - Check out the CI-validated commit
  - Build the static website
  - Generate release.json
  - Upload to releases/<release-id>
        |
        v
DigitalOcean / Ubuntu 24.04
  /srv/ai-now/web/
    releases/     <- CI/CD upload area; not served directly
    verified/     <- Root-managed validated release snapshots
    current       -> verified/<active-release>
        |
        v
ai-now-deploy V2.3
  - Deployment locking
  - File and path validation
  - Secure snapshot creation
  - Atomic publication and symlink switch
  - Nginx container recreation
  - HTTPS health verification
  - Attempted rollback on eligible failures
        |
        v
Nginx (static content) -> Caddy (HTTPS reverse proxy)
        |
        v
https://ai-now.tech

Astro generates static assets. Nginx serves those assets, Caddy provides the public HTTPS reverse proxy, and Docker Compose manages the containers.

3. Conventional Deployment vs. AI-NOW V2.3

DimensionCommon Direct-Overwrite DeploymentAI-NOW V2.3
Publishing methodFTP, SFTP, rsync, or manually replacing live filesGitHub Actions CI/CD and a controlled server-side deployment script
Version identityFilenames, timestamps, or manual notesUnique release ID, full Git commit SHA, and release.json
Build validationMay upload a locally built site directlyCI validation precedes CD, which is triggered only by qualifying successful CI
Release stagingFiles may overwrite the live directoryUpload to releases/, then validate and publish to verified/
ActivationVisitors may encounter mixed files during copyingAtomically switch the release symlink, then recreate Nginx
Privilege separationUpload account may directly modify live filesSeparate upload-writable area from root-managed verified releases
Reusing a release nameExisting directories may be overwrittenRENAME_NOREPLACE rejects overwriting an existing verified release
Concurrent deploymentsMultiple deployments may interfereflock serializes deployment script execution
Post-deployment validationOften a manual homepage checkLocal HTTPS check verifies the expected release.json
Failure recoveryManual backup restoration or repairV2.3 attempts automatic rollback during eligible failure stages
TraceabilityDepends on operational recordsGit commit, GitHub Actions run ID, and release manifest

Scope note: “Conventional deployment” here means a common direct-overwrite approach. Mature traditional deployment systems can also provide versioning, atomic releases, and rollback.

4. Core Engineering Design

4.1 CI and CD Are Separate

AI-NOW does not deploy merely because any GitHub Actions workflow succeeds. CD is triggered through workflow_run and checks that the originating CI run succeeded, came from a push to main, and belongs to the expected repository.

This reduces the risk of a manual CI invocation or an ordinary pull-request validation inadvertently deploying to production.

4.2 Every Release Has a Verifiable Identity

Example release ID:

gh-56c84c953ede-41495582692

Corresponding HTTPS manifest:

{
  "release": "gh-56c84c953ede-41495582692",
  "commit": "56c84c953edebb775a805e20917e1e088d4eb7c9"
}

Operators can compare the GitHub commit, the server’s current symlink, and the public /release.json endpoint. This helps detect a common operational mistake: assuming a successful Git push means the same version is already live.

4.3 Uploads Are Isolated from Verified Production Releases

/srv/ai-now/web/
├── releases/                  # Incoming release uploads
├── verified/                  # Validated release snapshots
│   ├── gh-4703838fa7ad-41493485863/
│   └── gh-56c84c953ede-41495582692/
└── current -> verified/gh-56c84c953ede-41495582692

The releases/ directory is not the public document root. The deployment script validates files and the manifest before copying content into a protected snapshot. Unverified uploads do not automatically become production content.

4.4 Safer Filesystem Operations

V2.3’s secure snapshot workflow includes:

  • O_NOFOLLOW to avoid following symbolic links during file access.
  • Rejection of disallowed symlinks, hardlinks, and nonregular files.
  • File-state checks before and after copying to reduce replacement-race risks.
  • Ownership and write-permission checks for protected directories.
  • RENAME_NOREPLACE for atomic snapshot publication without overwriting an existing release.
  • flock to prevent simultaneous execution of the deployment script.

These controls reduce risks involving filesystem races, path confusion, and privilege misuse. They do not guarantee protection against every supply-chain attack or server compromise.

4.5 Atomic Release Selection and Container Recreation

Directly overwriting live files can expose visitors to a partially updated site.

AI-NOW prepares a complete validated snapshot first, then atomically changes the current symlink. Docker Compose then force-recreates the Nginx container so its bind mount reflects the selected release directory.

Atomic here describes switching the release pointer. It does not establish a strict zero-downtime guarantee during container recreation. V2.3 prioritizes release consistency, verifiable activation, and recoverability.

4.6 Automatic Rollback

After switching releases, the deployment script checks whether the HTTPS release manifest matches the expected version. If startup or health verification fails at a stage where rollback handling has been established, V2.3 attempts to:

  1. Restore the current symlink to the previous release.
  2. Recreate the Nginx container.
  3. Verify that the previous release is serving again.

This behavior passed fault-injection and recovery tests in an isolated environment. Automatic rollback is not a substitute for off-site redundancy, backups, or a complete disaster-recovery plan.

5. Observed Production Verification

As of November 2, 2026, the recorded evidence was:

ItemObserved Result
GitHub CISuccessful; run ID 41495512006
CDRun ID 41495582692; still running when queried, with the new release subsequently observed live
Production releasegh-56c84c953ede-41495582692
Production commit56c84c953edebb775a805e20917e1e088d4eb7c9
current symlinkPointed to that release
HTTPS release.jsonRelease and commit matched
Public HTTPSHTTP/2 200
Caddy / NginxBoth containers reported running
Deployment runbookdocs/operations/deployment-runbook.md, 128 lines, committed and pushed

Evidence boundary: These observations establish that the new release was active, its manifest matched, and the site responded over HTTPS. The provided records did not include a separate final query showing CD run 41495582692 as completed success; that outcome is therefore not claimed as independently confirmed.

6. Engineering and Business Value

Reduced Manual Deployment Risk

Engineers no longer need to log into the server for every release, overwrite files by hand, or guess which version is live. A controlled process makes production changes more consistent.

Faster Incident Investigation

When an issue occurs, operators can correlate the release ID, commit SHA, Actions run ID, and active server release to narrow the investigation.

Lower Recovery Effort

Keeping validated releases and attempting rollback after eligible deployment failures is more reliable than searching for old files during an incident. Recovery still depends on the failure mode and availability of a working prior release.

A Reusable Release-Engineering Pattern

The benefit extends beyond a corporate website. AI-NOW now has a reference pattern for future services: traceability, privilege separation, pre-publication validation, post-activation verification, and recoverability.

Stateful or distributed applications would still need additional designs for database migrations, backups, service compatibility, and data recovery. A static site’s rollback mechanism cannot automatically roll back an entire stateful system.

7. Known Limitations and Future Improvements

V2.3 is a verified production baseline. Features not yet implemented should not be described as existing capabilities:

  • Documentation-only deployment guard: Not yet configured; documentation-only pushes can still trigger production deployment.
  • Automated release retention: No automatic cleanup or approved retention policy has been enabled.
  • Continuous monitoring and alerting: Deployment-time health checks do not amount to independent 24/7 monitoring.
  • Comprehensive disaster recovery: Host failure, network outages, certificate problems, and backup restoration require separate planning.
  • Strict zero-downtime SLA: Container recreation has not been demonstrated to meet a zero-downtime guarantee.

These are candidates for future operations work, not prerequisites for recognizing the current validated release as a stable baseline.

8. Conclusion

What distinguishes AI-NOW’s deployment from a common direct-overwrite workflow is not the number of tools involved. It is the engineering discipline: each release has an identity, critical stages are validated, uploaded artifacts are isolated from production snapshots, and a defined recovery path exists when activation fails.

Conventional deployment asks: “Were the new website files uploaded?”
AI-NOW V2.3 asks: “Which validated release is serving users, how can we prove it, and how can we recover if activation fails?”

That is the shift from basic website maintenance to production release engineering.


Project: AI-NOW Website
Deployment: V2.3
Production: https://ai-now.tech
Repository: https://github.com/AI-Now-Inc/ai-now-web
Document status: Technical architecture overview / Verified baseline

🎨 觀展筆記|The Broad Museum 一日行|2025.07.27

Today I stepped into the heart of contemporary art in Los Angeles — The Broad Museum — and spent a day filled with inspiration, critical thought, and aesthetic wonder.


🧠 Jean-Michel Basquiat | Street Poetry & Political Fire

Reading the wall text about Basquiat left me deep in thought. Through graffiti, symbols, and chaotic overlays, he wove together narratives of Black culture, colonial history, and identity.

His fierce critique of racial stereotypes and the art market showed an artist who refused to conform — speaking truth both inside and outside the institution.


👑 Jeff Koons – Michael Jackson and Bubbles | Idol-Making in Porcelain

This glossy white-and-gold porcelain sculpture felt both luxurious and eerie. Michael Jackson sits like a religious icon with his chimpanzee Bubbles — a surreal composition that questions celebrity worship, commodification, and pop spectacle.

Standing before it, I felt like part of the audience reflected in the idol’s surface.


🟥 Andy Warhol – Mao | Political Icon as Consumer Product

Warhol’s take on Chairman Mao — full of bright, brash colors — asked:
When political leaders become visual products, is it critique or deification?

The clash of bold color and heavy subject felt like standing at the crossroads of history and entertainment.


✨ Yayoi Kusama – Infinity Mirrored Room | Into the Galaxy Within

Finally, I entered Kusama’s Infinity Mirrored Room. Surrounded by infinite lights, I felt like a drifting speck of stardust.

The 45 seconds inside felt like floating through time, reflection, and a universe both real and imaginary.

“The Souls of Millions of Light Years Away” — Kusama didn’t just let us see the cosmos. She let us become part of it.


📝 Reflection

The Broad wasn’t just a place to admire — it was a space for collision, contrast, and clarity.

Today, I didn’t just view artworks. I entered into conversations with the minds behind them.
Between the mirrored walls and painted icons, I caught deeper glimpses of society — and of myself.

John C.H. Tsai

今天走進了洛杉磯當代藝術的核心 —— The Broad Museum,度過了一個充滿衝擊與反思的藝術日。


🧠 Jean-Michel Basquiat|街頭詩意與政治宣言

讀到 Basquiat 的展牆文字讓我沉思許久。他用塗鴉、象徵與混亂編織出黑人文化、殖民歷史與身份的多重線索。在他筆下,藝術不只是創作,而是回應壓迫、敘述歷史的武器。他對種族刻板印象與藝術市場的尖銳批判,也讓人感受到他在體制內外都不妥協的態度。


👑 Jeff Koons《Michael Jackson and Bubbles》|偶像製造機器的鏡面反射

這件純白與金色的瓷像既奢華又怪異,將麥可與寵物猩猩泡泡以宗教聖像般的方式呈現。看似童話,但其實是對偶像崇拜、商品化與流行文化的深層反諷。站在雕像前,彷彿自己也成了那個「凝視明星」的一部分。


🟥 Andy Warhol《Mao》|政治圖像變商品

Warhol 的這幅毛澤東畫像一如既往地以鮮豔色塊吸引目光,卻也讓人思考:當政治領袖的臉孔變成流行圖騰,這是一種顛覆還是另一種神化?
色彩的炫目與主題的沉重並置,讓人有種站在歷史與娛樂交界的錯亂感。


✨ 草間彌生《Infinity Mirrored Room》|進入星空內部

最後進入草間彌生的《無限鏡屋》。站在滿是光點的鏡面世界中,感覺自己化作了宇宙中一顆小星塵。短短45秒的體驗卻讓人彷彿飄浮在無限時間與空間中。

「The Souls of Millions of Light Years Away」—— 草間讓人不只是看見宇宙,而是與它共鳴。


📝 小結

The Broad 給我的不只是「欣賞」,而是一連串撞擊與思辨。今天我不只在看作品,而是在與藝術家們的思想對話。在這些牆面與鏡子之中,我更清楚地看見了社會,也看見了自己。

John C.H. Tsai

AGXCore-8: From Wires to Python

Welcome to the AGXCore-8 educational platform — a system designed to guide learners from physical circuits to machine-level instructions and up to high-level programming. This is a vertical view of how electricity becomes logic, logic becomes language, and language becomes systems.

🧠 Instruction Stack Overview

  • Level 1 – Physical Logic: Clock, Registers, ALU, DIP Switches, LEDs
  • Level 2 – Machine Code Execution: ROM, PC, IR, Control Logic
  • Level 3 – Memory + Flags: RAM, FLAGS
  • Level 4 – Stack & Flow: Stack Pointer, CALL/RET
  • Level 5 – I/O: UART, LCD, GPIO
  • Level 6 – System/OS: Timer, Interrupt, Shell
  • Level 7 – VM Runtime: Python + AGX-8 Virtual Machine

📦 Hardware Requirements by Layer

Each layer in the stack requires specific hardware modules (PCBs) to enable corresponding instruction support. Here’s the mapping:

System Layer Required Modules Supported Instruction Level
Level 1: Logic & Data Movement M01: Clock
M06: Registers A/B
M07: ALU
DIP / LED Panel
N/A – Physical Signal Logic
Level 2: Machine Code Execution M02: PC + IR
M03: ROM
M05: Control Logic
AGX-8 Machine Code
Level 3: Memory + Flags M04: RAM
M08: FLAGS
AGX-8 Assembly
Level 4: Stack & CALL/RET M09: Stack Pointer C-like Compiler
Level 5: I/O Control M10: UART
M12: GPIO / LCD
Python I/O Control
Level 6: Timer & Interrupt M11: Timer
M10 (UART Shell)
AGXShell / OS Runtime
Level 7: VM Runtime M15: STM32 / RPi VM Module Python + High-Level Scripting

🧾 Downloadable PDF Overview

📄 Download: AGXCore-8 Language Stack Overview (PDF)

This stack is your gateway to build a visible, touchable, and teachable computer from wire to logic to code.

My Astrophotography images of Jupiter Part II

On March 20, 2025, at 9:00 PM PDT in Torrance, California, Jupiter was prominently visible in the southwestern sky, situated in the constellation Taurus. The planet’s four largest moons—Io, Europa, Ganymede, and Callisto—were observable through a Celestron C11 f/10 telescope.

🌙 Moon Phase and Sky Conditions

At that time, the Moon was in a waning gibbous phase, approximately 72% illuminated. It rose after sunset and was visible in the eastern sky, providing moderate illumination that could slightly affect deep-sky observations but still allowed for clear views of bright objects like Jupiter and its moons. The Nine Planets

🔭 Observing Jupiter and Its Moons

https://astronomynow.com/wp-content/uploads/2018/03/sumultaneous_Io-Ganymede_shadow_transit_24March2018_940x705.jpg

The Galilean moons orbit Jupiter in a relatively straight line along its equatorial plane. Their positions change noticeably over the course of a few hours due to their rapid orbits. On this particular evening, their arrangement would have been as follows (from west to east):

https://cdn.mos.cms.futurecdn.net/8sj9FUUyQ8MeR2o3sWwnAk.jpg
  • Callisto: Farthest west of Jupiter
  • Ganymede: Closer to Jupiter on the western side
  • Io: Just east of Jupiter
  • Europa: Farther east of Jupiterblissphotographics.com

*Note: The exact positions can vary based on the time and the observer’s location. For precise real-time positions, you can use tools like TheSkyLive’s Galilean Moons Tracker.

https://www.researchgate.net/profile/Ioan-Valentin-Petrescu-Mag/publication/242554407/figure/fig6/AS%3A298449766502409%401448167377608/Jupiter-and-Galilean-Moons-Sources.png

🔭 Tips for Observing

  • Telescope Orientation: Depending on your telescope’s optics, the view might be inverted or mirrored. For instance, Newtonian reflectors invert the image vertically, while refractors with a diagonal may mirror it horizontally.
  • Optimal Viewing: To minimize the Moon’s glare, try observing Jupiter when it’s higher in the sky and the Moon is lower on the horizon.
  • Recording Observations: Sketching the positions of the moons at different times can be a fun way to track their orbits and understand their motion around Jupiter.