Back Office · office.temerarii.xyz
The OTHER layer behind the office pages — the engine that produces them: data sources you edit · libraries that join + pace · stages that build · gates that enforce · render/distribute. Introspected from the real repo so it never drifts.

The flow (data → engine → views · gates · render)

 governance/*.json+yaml · GOAL.yaml · calendar/*.yaml · services.yaml · _threads.yaml   (you edit these)
        │
        ▼  engine/lib/treatment_planner.py  (assign template·ground·logo·motion + scenes[] per cell;
        │                                     pillar cells → one scene per sub-service)
        ▼  engine/lib/scene_pacing.py        (scenes/duration rule · ≥5s · continuous band)
        ▼  storyboard-registry.json + treatment-plan.json   (the per-cell/per-asset plans)
        ▼  engine/lib/content_index.py  →  content-index.json   (THE JOIN — one record per asset)
        │
        ├──► VIEWS (front office, lenses): calendar(week) · day · channels · wireframes(cell·scenes) · post · templates · brand-book
        ├──► GATES (the definition of aligned): scene-pacing · content-alignment · no-written-name · asset-QA · finalize · week/cell/visual
        └──► RENDER: SceneReel (compositor) + the template library → MP4/GIF/still  →  distribute (Blotato · WP · Resend)

Data sources — what you edit / what's generated

governance/brand.jsontokens · palette · fonts · motion · 24-logo rotation · legibility (machine source of truth)
governance/asset_specs.yamloutput formats/dims per surface + the scene_pacing rule (≥5s · scenes/duration)
content/_context/GOAL.yamlthe schedule: campaigns · lanes · pillars · fiscal 4-4-5 anchor
content/_context/calendar/*.yamlper-campaign weekly cells + daily copy (blog/email/sms/social)
content/_context/services.yaml8 pillars → ~56 sub-services (the coverage source)
content/_context/calendar/_threads.yaml6 recurring franchises + day-of-week cadence (daily fuel)
remotion/src/storyboard-registry.jsonGENERATED — cells + props.scenes[] (the scene plans)
remotion/src/treatment-plan.jsonGENERATED — per-cell family template · ground · logo · motion + threads
remotion/src/content-index.jsonGENERATED — THE JOIN: one record per asset (every view is a lens on it)

engine/lib — the libraries (21)

artifact_index.pysingle-pass index of produced marketing artifacts.
asset_specs.pyload the canonical asset-format catalog (governance/asset_specs.yaml).
brand.pysingle-brand resolution for Temerarii Media. The ENGINE (scripts, comps,
brandbook_map.pythe FULL brand-book ↔ cell/scene correlation map (LANE 0).
catalog.pyload the content catalogs (services + insights), one source of truth.
characters.pyTHE CAST (the canonical character roster, single source of truth).
content_index.pyTHE JOIN: every content asset as one record, so every office view
context.pysmall read-only accessors for the brand's GOAL context.
gtm_outline.pyONE numbered per-quarter GTM outline that BOTH surfaces render, so they can't drift:
improve.pythe SELF-IMPROVING round, STAGED (operator-locked: build now, dormant, flip live later).
outcomes.pythe 3-tier outcome signal for the self-improving loop (staged: mock now → live later).
plan.pyper-plan render tiering (the unit-economics gate).
platform.pyper-channel publishing specs (operator-locked 2026-06-07).
production_sheet.pyPer-cell TIMED PRODUCTION SHEET (operator-ordered: TOPIC → DATE → SCRIPT → SCENES+music).
render_status.pyshared render status for the storyboard registry's video
scene_pacing.pythe scenes-per-duration rule (operator-locked), one source of truth.
schedule.pythe ONE place that answers "which fiscal week is this, what
social_calendar.pythe ANGLE ALLOCATOR for the 5-distinct-social-posts/day lane.
topics.pyturn the topic registry (topics.yaml) into CONTENT UNITS (cells), sized by
treatment_planner.pyassign a varied, brand-governed treatment to every calendar cell.
utm.pyconsistent UTM tagging for the funnel measurement spine.

engine/stages — the pipeline (24)

build_cell_manifest.pymake every registry CELL the ATOMIC source of truth for
build_vo_scripts.pygive every registry CELL a speakable voiceover script.
distribute.pythe DISTRIBUTION stage (Blotato). SAFE BY DEFAULT.
enrich_registry_slides.pyADDITIVE pass over the storyboard registry that makes
export_calendar.py
generate_storyboard_registry.pyturn authored storyboards into the renderable
mux_audio.pywrap SOUND into a rendered (silent) master.
premix_audio.pymaster the broadcast audio bed for every voiced registry CELL.
publish_run.pythe production publish orchestrator.
render_clone_vo.pyFREE, UNLIMITED on-device voice CLONE VO for Temerarii, via Chatterbox
render_elevenlabs_vo.pyPREMIUM per-scene VO via ElevenLabs (voice "Dom" = Q6okRPB0…), the
render_email.pythe PRODUCED daily email artifact (the real deliverable, not a preview).
render_local_vo.pysynthesize PER-SCENE VO that speaks the scene's single source
render_matrix.pyrender the FULL production matrix (render-matrix.json).
render_media_kit.pyrender each cell's FULL cross-channel deliverable stack.
render_sms.pythe PRODUCED Tue/Fri SMS artifact (the real deliverable, not a preview).
render_static_blog.pythe DAILY STATIC BLOG generator for temerarii.xyz (NO WordPress).
render_storyboards.pythe Remotion render layer for the cell registry.
render_treatment_proof.pyrender each calendar cell through its ASSIGNED template.
stage_all_vo.pymake the VO layer real and visible to the Remotion bundler.
sync_insights.py
syndicate_blog.py
upload_media.pyhost the FINISHED (sound-on) masters on Cloudinary + stamp their public URLs.
vo_all.pysynthesise Piper VO for ALL 304 assets (content-index), not just the registry-30.
goal.py align order: generate → enrich → scripts → vo → stage → master → manifest → render

engine/gates — the definition of "aligned" (30)

audit_assets.pythe COMPREHENSIVE per-asset compliance audit (the AUDIT half of the 5x loop).
check_audio_alignment.pyper-cell VO/mix coverage audit gate.
check_calendar_artifact_consistency.pyno orphan weeks/cells in calendar artifacts.
check_calendar_completeness.pyevery authored cell must clear the parity bar.
check_storyboard_consistency.pystoryboards must agree with the declared schedule.
verify_asset_qa.py§11 per-asset QA gate (the "no asset ships off-brand" capstone).
verify_brand_tokens.pyfail on any DEAD palette/font token (LANE 0 drift gate).
verify_cast.pythe CHARACTER-SYSTEM gate (every asset has a character; every scene explains).
verify_cell_alignment.pyevery produced cell must trace back to the goal.
verify_cell_manifest.pygate: every manifested cell is a COMPLETE atomic source of truth.
verify_comp_consistency.pythe NO-DRIFT gate for composition_id (operator: connect the dots).
verify_content_alignment.pythe cell-for-cell alignment gate (operator-locked).
verify_no_written_name.pythe logo-only naming gate (operator-locked).
verify_render_ready.py
verify_rendered_duration.pya RENDERED master must MEET its minimum length (not undershoot).
verify_scene_pacing.pyenforce the scenes-per-duration rule (operator-locked).
verify_smell_test.py
verify_social_cadence.pyevery authored day ships >=5 social posts (the floor), headroom for more.
verify_storyboard_backend.pythe NO-DRIFT gate for the Storyboard Hub's backend.
verify_storyboard_finalized.pygate: every cell is art-directed AND the variety is on-brand.
verify_storyboard_yaml.pythe gate that keeps storyboard frontmatter parseable
verify_subservice_coverage.pythe CATEGORY-COVERAGE gate (operator-locked: every asset ties
verify_template_distribution.pyEVEN template usage across the whole library pool.
verify_template_variety.pyNO template repetition (within an asset, and across assets).
verify_type_floors.pyGATE: §04 type legibility floor — no vmin-scaled fontSize below 3% of vmin in any
verify_variety.pythe NON-REDUNDANCY gate (operator-locked: variety without repetition).
verify_visual_alignment.pythe gate that keeps slide visuals shippable.
verify_vo_caption_match.pyRB-1 ONE-TRACK gate: VO source == caption == scene.script.
verify_webby_bar.pythe 7-point Webby-grade bar for FLAGSHIP cells (operator-locked).
verify_week_consistency.pythe gate that makes week-drift un-shippable.
week consistency (4-4-5)yaml frontmatterstoryboard consistencycalendar↔artifactcell alignmentvisual alignmentcell manifest (SoT)audio coverage + mixscene pacing (scenes/duration · >=5s)content alignment (one index · cell-for-cell)category coverage (8 pillars · 56 sub-services · threads · FAQs)variety (no redundancy · colorway · family · beat · scripts · character · logo)comp consistency (registry == index · every comp registered)storyboard backend (hub is post-granular over the 304, not registry-only)rendered duration (a master meets its minimum length — no undershoot like the 10s threads)social cadence (≥5 posts/day floor, all 7 days, headroom to 10)vo↔caption (one track · caption text == VO text == scene.script verbatim)template distribution (functional comp pool used evenly · no comp >3x mean)template variety (no repeat within an asset · no shared sequence/set across assets)smell-test (no dead air · no generic copy · unique visual+copy · icon logo · crisp VO)render-ready (no asset carries a blocking defect — the sim gates the render spend)