feat(news-aq): implement daily 00:00 GMT current-events pipeline, TZ handling, Nov 2 dossier, and RHEL packaging

This commit is contained in:
Hermes Agent committed 2026-11-02 21:21:53 +00:00
1 parent ed3b3a2b60
commit 9861367f34
34 files changed
+10736 -121

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
[Unit]
Description=Current Events Isopsephic Exegesis Daily 00:00 GMT Harvester & CI Runner
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
User=ingglish
Group=ingglish
WorkingDirectory=/usr/libexec/ingglish-exegesis
# Strictly enforce UTC/GMT regardless of host /etc/localtime
Environment="TZ=UTC"
Environment="CRON_TZ=UTC"
Environment="NODE_PATH=/usr/libexec/ingglish-exegesis/node_modules"
ExecStart=/usr/bin/python3 /usr/libexec/ingglish-exegesis/scripts/collect_news_aq.py --mode closing-bell --archive-dir /var/lib/ingglish-aq-archive --workdir /usr/libexec/ingglish-exegesis --out /var/lib/ingglish-aq-archive/latest-harvest.json
ExecStartPost=/usr/bin/python3 /usr/libexec/ingglish-exegesis/scripts/ci_provision_ingglish.py --archive-dir /var/lib/ingglish-aq-archive --out-dir /var/lib/ingglish-aq-archive/ci-build --tier 2
TimeoutStartSec=180
# Hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ReadWritePaths=/var/lib/ingglish-aq-archive
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,2 @@
# Type Name ID GECOS Home directory Shell
u ingglish - "Ingglish Isopsephic Exegesis Service" /var/lib/ingglish-aq-archive /sbin/nologin
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Daily 00:00:00 UTC Timer for Current Events Isopsephic Exegesis
[Timer]
OnCalendar=*-*-* 00:00:00 UTC
Persistent=true
AccuracySec=1s
Unit=ingglish-exegesis.service
[Install]
WantedBy=timers.target
@@ -0,0 +1,66 @@
Name: ingglish-isopsephic-exegesis
Version: 0.1.0
Release: 1%{?dist}
Summary: Daily 00:00 GMT Current-Events Ingglish AQ & Hyperdope-Gematria CI Pipeline
License: MIT
URL: https://hermes-agent.nousresearch.com
BuildArch: noarch
Requires: python3 >= 3.10
Requires: nodejs >= 1:18.0
Requires: words
Requires: curl
Requires(pre): shadow-utils
Requires(post): systemd
Requires(post): policycoreutils-python-utils
%description
Deterministic phonetic Ingglish (CMU Pronouncing Dictionary) and Base-36
Alphanumeric Qabbala (AQ) current-events harvester, synchronic exegesis
skill bundle, and 4-gate hyperdope-gematria CI provisioning engine.
Includes systemd service/timer units pinned to 00:00:00 UTC (GMT), FIPS 140-3
compatible SHA-256 manifest auditing, and SELinux policy labeling for RHEL 8/9/10.
%install
install -d -m 0755 %{buildroot}/usr/share/hermes/skills
install -d -m 0755 %{buildroot}/usr/libexec/ingglish-exegesis/scripts
install -d -m 0755 %{buildroot}/usr/libexec/ingglish-exegesis/node_modules
install -d -m 0755 %{buildroot}/usr/lib/systemd/system
install -d -m 0755 %{buildroot}/usr/lib/sysusers.d
install -d -m 0755 %{buildroot}/var/lib/ingglish-aq-archive
cp -a skills/* %{buildroot}/usr/share/hermes/skills/
cp -a scripts/* %{buildroot}/usr/libexec/ingglish-exegesis/scripts/
cp -a node_modules/* %{buildroot}/usr/libexec/ingglish-exegesis/node_modules/
install -m 0644 systemd/ingglish-exegesis.service %{buildroot}/usr/lib/systemd/system/ingglish-exegesis.service
install -m 0644 systemd/ingglish-exegesis.timer %{buildroot}/usr/lib/systemd/system/ingglish-exegesis.timer
install -m 0644 sysusers.d/ingglish-exegesis.conf %{buildroot}/usr/lib/sysusers.d/ingglish-exegesis.conf
%pre
getent group ingglish >/dev/null || groupadd -r ingglish
getent passwd ingglish >/dev/null || \
useradd -r -g ingglish -d /var/lib/ingglish-aq-archive -s /sbin/nologin \
-c "Ingglish Isopsephic Exegesis Service" ingglish
exit 0
%post
%systemd_post ingglish-exegesis.service ingglish-exegesis.timer
if command -v semanage >/dev/null 2>&1 && command -v restorecon >/dev/null 2>&1; then
semanage fcontext -a -t var_lib_t '/var/lib/ingglish-aq-archive(/.*)?' 2>/dev/null || \
semanage fcontext -m -t var_lib_t '/var/lib/ingglish-aq-archive(/.*)?' 2>/dev/null || :
restorecon -Rv /var/lib/ingglish-aq-archive >/dev/null 2>&1 || :
fi
%preun
%systemd_preun ingglish-exegesis.service ingglish-exegesis.timer
%postun
%systemd_postun_with_restart ingglish-exegesis.timer
%files
/usr/share/hermes/skills/
/usr/libexec/ingglish-exegesis/
/usr/lib/systemd/system/ingglish-exegesis.service
/usr/lib/systemd/system/ingglish-exegesis.timer
/usr/lib/sysusers.d/ingglish-exegesis.conf
%attr(0755,ingglish,ingglish) %dir /var/lib/ingglish-aq-archive