Repository navigation
feat(image-generation): prepare isolated default-off FlatAI release - #229
Conversation
…ent main Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
2026-10-10 diagnostic continuation — 90001f2
|
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Provider access outcome — 2026-10-10The ordinary isolated Linux FlatAI form returned Commit: FlatAI official Terms last updated Sept 18, 2026 acknowledge some features require an account: https://flatai.org/flat-ai-inc-terms-of-service/ . Its Responsible Use Policy restricts excessive or abusive automation: https://flatai.org/responsible-use/ . Contact |
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Owner reprioritization — 2026-10-11FlatAI is again the primary image-generator research and implementation track. The previous Cloudflare-image experiment PR #239 was closed unmerged after owner explicitly instructed “Cloudflare only for chat.” Existing live chat integration is unaffected. Do not silently substitute a new image provider or reinterpret future test approvals as permanent provider replacement. Preserve the approved architecture: official site normal-form browser interaction with Playwright and a hardened isolated Linux browser/proxy/worker, as already implemented in draft #229. The Linux Owner previously instructed no email to FlatAI. Do not email the provider. Check documented allowed ordinary usage and provider policy independently; if automation is prohibited or signup required, stop and report precise blocker rather than circumvent. Status: this draft #229 remains OPEN / DRAFT / UNMERGED / UNDEPLOYED, public image generation remains OFF. Before implementation resumed, use issue #230 and current CI/host diagnostics as source-of-truth. Production changes and merge require separate explicit owner approval. |
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Signed-off-by: alirezasafaei-dev <asdevelooper@gmail.com>
Production follow-up — 2026-10-13
The owner-authorized limited public trial is now enabled on deployed merge SHA 962ec68 through a second canonical blue-green release. The code default remains disabled; only protected production configuration enabled the unchanged trial ceilings. Cloudflare remains chat-only.
Actual public-domain Persian generation completed in 96.701 seconds; the decoded 832×832 JPEG displayed and downloaded, reload recovered the same job, and repeated downloads matched. Secure-cookie, ownership/Origin/consent and no-store acceptance passed. The full site regression passed 36 checks across 58 URLs and the mandatory ten-page/CSS/font health sequence exited zero. A later verified-TLS query confirmed the expired acceptance row was deleted. Five-minute readiness/certificate-boundary monitoring is installed; renewal remains manual and external notifications are not installed.
The prior disabled release remains available for rollback. Existing one-running/three-pending, three-IP/guest-hour, ten-global-hour and twenty-global-day ceilings are unchanged. Provider capacity/integration endorsement remain unestablished; no contact, paid plan, identity rotation, protection bypass or bulk capacity test occurred. Intermittent VPS DNS and external trust-seal warnings remain.
Documentation follow-up: #240, exact head 9a439ae, all 14 checks passed; the first Lighthouse failure and unchanged rerun are preserved. Private media, configuration and operator evidence are outside GitHub. Historical Stage 1 notes below describe the disabled deployment before this bounded activation.
Stage 1 completed on 2026-10-13 after explicit owner approval: merged SHA 962ec68 is live via the canonical blue-green engine. Public image GET/POST return 503 disabled, no-store, no guest cookie; the UI remains in preparation/noindex. No provider jobs or DB migrations were performed.
Post-deploy acceptance: all ten mandatory pages/CSS/font checks and strict production audit passed. Real Chrome desktop/mobile acceptance passed 36/36 checks over 58 URLs, including ten blog posts, twenty footer destinations and actual JSON/Base64/address/salary/loan/cheque/OCR/image-download/contract-preview interactions. A separate mobile lazy-search interaction passed. The resized synthetic JPEG was decoded as 320x69. Uncaught page errors and critical own-origin asset/network errors were zero. All five applicable merged-SHA CI workflows succeeded.
Verdict: LIVE_VERIFICATION_PASS_WITH_WARNINGS. Intermittent server-probe DNS latency and external eNamad badge-image timeouts remain warnings. Expected anonymous auth 401 responses were identified separately. Protected backups and the prior release remain retained; operator logs, media and full local verification reports stay outside GitHub. Public image use/capacity and Stage 2 approval/acceptance remain open.
Premerge reviewed implementation and evidence:
This merged change adds a disabled-by-default FlatAI image workspace with consent, an encrypted durable queue, isolated browser worker, reload recovery, image display and download. It uses Standard through the ordinary visible FlatAI form. Cloudflare remains chat-only.
Candidate: 706cc0f. This final delta documents real lifecycle acceptance; runtime code is unchanged from af97010. Current main 54561b0 is integrated without history rewriting. Matching shell quotes are decoded literally by PM2, preserving release precedence and inspector removal. Native image RPC supports the measured long generation with a bounded whole-exchange deadline, cancellation, bounded image validation and no generation retry.
Validation:
All 17 final GitHub checks succeeded on exact head 706cc0f, including quality/build, four Chromium shards, chat, image tests/container build, CodeQL, Lighthouse, licensing/security/contracts and readiness artifacts. Core CI: https://github.com/alirezasafaei-dev/persiantoolbox/actions/runs/38383301440 ; image CI: https://github.com/alirezasafaei-dev/persiantoolbox/actions/runs/38383301630
Stage 1 is separately owner-approved merge and blue-green deployment with IMAGE_GENERATION_ENABLED=false, preserving full production settings and verified nginx/environment rollback. Public disabled-route and complete mandatory health/assets acceptance follow that operation. Stage 1 submits no provider jobs and does not resolve the provider gate.
Stage 2 public enablement remains NO-GO: permitted unattended multi-user provider use, sustainable capacity, public-domain/CDN acceptance, ongoing monitoring/renewal arrangements and explicit public-trial approval remain open. Original application trial ceilings are 10 globally/hour and 20/day, not provider entitlement. No provider contact, paid-plan purchase, signup/CAPTCHA bypass, IP rotation or hidden API was used. The owner subsequently approved Stage 1. PR229 is merged and production was deployed with the image flag still off. Public enablement remains separately gated.
Release procedure: docs/ops/image-generation-release-checklist.md. Lifecycle witnesses and bounded scope: docs/ai/execution/FLATAI-LIFECYCLE-20261013.md. Earlier runtime evidence: docs/ai/execution/FLATAI-FOLLOWUP-20261012.md.