Compare commits
25
Commits
cea16a1b21
...
v2.17.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91cf671000 | ||
|
|
52153e76f0 | ||
|
|
5eca430cce | ||
|
|
fe4cb38f0b | ||
|
|
a70b8614f1 | ||
|
|
643454fbae | ||
|
|
24d66f706e | ||
|
|
d20e76a000 | ||
|
|
531f69e65a | ||
|
|
25f61dac33 | ||
|
|
7a016a6fbc | ||
|
|
d95446fc6c | ||
|
|
fff43cca6d | ||
|
|
2242cf4ecb | ||
|
|
120956278f | ||
|
|
224ce62fab | ||
|
|
f1792478b6 | ||
|
|
2c05f8e708 | ||
|
|
3a09d97953 | ||
|
|
888e847d41 | ||
|
|
576ac40f25 | ||
|
|
cb146c38e7 | ||
|
|
2e9292322c | ||
|
|
51f4a59e26 | ||
|
|
5625e287f5 |
No files matched your search
@@ -3,8 +3,8 @@
|
|||||||
<!-- HS-COMMIT-STATUS:START -->
|
<!-- HS-COMMIT-STATUS:START -->
|
||||||
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
|
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
|
||||||
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
|
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
|
||||||
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
|
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 12 tracked module/artifact surface(s)
|
||||||
> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`
|
> - **Touched Files / Surfaces:** `site/quant/daily-brief-data.js`, `site/quant/daily-brief-latest.json`, `site/quant/daily-brief-state.json`, `site/quant/financial-aq-harvest-latest.json`, `site/quant/quant-timeseries-data.js`, `site/quant/quant-timeseries.json`, `site/quant/real-macro-indicators-data.js`, `site/quant/real-macro-indicators.json` (+4 more)
|
||||||
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
|
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
|
||||||
<!-- HS-COMMIT-STATUS:END -->
|
<!-- HS-COMMIT-STATUS:END -->
|
||||||
|
|
||||||
|
|||||||
@@ -128,19 +128,62 @@ fi
|
|||||||
|
|
||||||
if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then
|
if [[ "${DO_PUSH}" -eq 1 ]] && [[ -f "/etc/hyperstitionstud.io/id_ed25519_git_libre_audio" ]]; then
|
||||||
echo "[4/5] Committing and pushing automated VPS telemetry updates to git.libre.audio..."
|
echo "[4/5] Committing and pushing automated VPS telemetry updates to git.libre.audio..."
|
||||||
run_checked "hs-readme-sync --all" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --all
|
run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only
|
||||||
export GIT_SSH_COMMAND="ssh -i /etc/hyperstitionstud.io/id_ed25519_git_libre_audio -o StrictHostKeyChecking=accept-new"
|
DEPLOY_KEY="/etc/hyperstitionstud.io/id_ed25519_git_libre_audio"
|
||||||
|
GIT_SSH_CMD="ssh -i ${DEPLOY_KEY} -p 2222 -o IdentitiesOnly=yes -o IdentityAgent=none -o BatchMode=yes -o StrictHostKeyChecking=accept-new"
|
||||||
|
export GIT_SSH_COMMAND="${GIT_SSH_CMD}"
|
||||||
|
unset SSH_AUTH_SOCK || true
|
||||||
|
GIT_SSH_FLAGS=(-c "core.sshCommand=${GIT_SSH_CMD}")
|
||||||
STAMP_UTC="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
STAMP_UTC="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||||
for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do
|
for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do
|
||||||
if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then
|
if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then
|
||||||
if ! git -C "${REPOS_ROOT}/${r}" config user.name 2>&1; then
|
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||||
git -C "${REPOS_ROOT}/${r}" config user.name "Hyperstition VPS Bot"
|
echo " -> Inspecting ${r} for telemetry updates..."
|
||||||
git -C "${REPOS_ROOT}/${r}" config user.email "vps-bot@hyperstitionstud.io"
|
|
||||||
fi
|
fi
|
||||||
git -C "${REPOS_ROOT}/${r}" add -A
|
if [[ -z "$(git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" config user.name || true)" ]]; then
|
||||||
if ! git -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then
|
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" config user.name "Hyperstition VPS Bot"
|
||||||
run_checked "git commit (${r})" git -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})" || true
|
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" config user.email "vps-bot@hyperstitionstud.io"
|
||||||
run_checked "git push (${r})" git -C "${REPOS_ROOT}/${r}" push origin main || true
|
fi
|
||||||
|
forge_ssh="ssh://git@git.libre.audio:2222/seasharp"
|
||||||
|
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" config core.sshCommand "${GIT_SSH_CMD}" || true
|
||||||
|
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" remote set-url origin "${forge_ssh}/${r}.git" || true
|
||||||
|
if [[ "${r}" == "hyperstitionstudio-core" ]]; then
|
||||||
|
TELEMETRY_SNAP_DIR="/tmp/hyperstition-vps-prod-telemetry-snap"
|
||||||
|
rm -rf "${TELEMETRY_SNAP_DIR}"
|
||||||
|
run_checked "snapshot telemetry (${r})" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --snapshot-telemetry "${TELEMETRY_SNAP_DIR}"
|
||||||
|
run_checked "git fetch (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" fetch --force origin main --tags
|
||||||
|
local_head="$(git -C "${REPOS_ROOT}/${r}" rev-parse HEAD)"
|
||||||
|
remote_head="$(git -C "${REPOS_ROOT}/${r}" rev-parse origin/main)"
|
||||||
|
if [[ "${local_head}" != "${remote_head}" ]]; then
|
||||||
|
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||||
|
echo " [sync] Advancing ${r} base to origin/main and reconciling telemetry snapshot..."
|
||||||
|
fi
|
||||||
|
run_checked "git reset --hard origin/main (${r})" git -C "${REPOS_ROOT}/${r}" reset --hard origin/main
|
||||||
|
git -C "${REPOS_ROOT}/${r}" stash clear || true
|
||||||
|
run_checked "reconcile telemetry (${r})" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --reconcile-telemetry "${TELEMETRY_SNAP_DIR}"
|
||||||
|
fi
|
||||||
|
rm -rf "${TELEMETRY_SNAP_DIR}"
|
||||||
|
else
|
||||||
|
run_checked "git fetch (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" fetch --force origin main --tags
|
||||||
|
run_checked "git pull --rebase --autostash (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" pull --rebase -X theirs --autostash origin main
|
||||||
|
fi
|
||||||
|
git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" add -A
|
||||||
|
if ! git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" diff --cached --quiet; then
|
||||||
|
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||||
|
echo " [commit] Committing new telemetry changes in ${r}..."
|
||||||
|
fi
|
||||||
|
run_checked "git commit (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" commit -m "chore(telemetry): automated VPS ${WINDOW_MODE} harvest (${STAMP_UTC})"
|
||||||
|
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||||
|
echo " [push] Pushing ${r} to git.libre.audio..."
|
||||||
|
fi
|
||||||
|
run_checked "git push (${r})" git "${GIT_SSH_FLAGS[@]}" -C "${REPOS_ROOT}/${r}" push origin main
|
||||||
|
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||||
|
echo " [ok] Repository ${r} successfully pushed to git.libre.audio ($(git -C "${REPOS_ROOT}/${r}" rev-parse --short HEAD))."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ "${PUSH_ONLY}" -eq 1 ]]; then
|
||||||
|
echo " [clean] Repository ${r} working tree is clean and in sync with origin/main ($(git -C "${REPOS_ROOT}/${r}" rev-parse --short HEAD))."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
+67
-18
@@ -44,6 +44,17 @@ DEFAULT_REPOS_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
|||||||
export REPOS_ROOT="${REPOS_ROOT:-${DEFAULT_REPOS_ROOT}}"
|
export REPOS_ROOT="${REPOS_ROOT:-${DEFAULT_REPOS_ROOT}}"
|
||||||
export LIVE_REPOS="${LIVE_REPOS:-/var/www/hyperstitionstud.io/repos}"
|
export LIVE_REPOS="${LIVE_REPOS:-/var/www/hyperstitionstud.io/repos}"
|
||||||
|
|
||||||
|
DEPLOY_KEY="/etc/hyperstitionstud.io/id_ed25519_git_libre_audio"
|
||||||
|
GIT_SSH_CMD=""
|
||||||
|
GIT_SSH_FLAGS=()
|
||||||
|
if [[ -f "${DEPLOY_KEY}" ]]; then
|
||||||
|
# Force OpenSSH to use only the deploy key (ignore forwarded ssh-agent / default ~/.ssh keys that exhaust MaxAuthTries)
|
||||||
|
GIT_SSH_CMD="ssh -i ${DEPLOY_KEY} -p 2222 -o IdentitiesOnly=yes -o IdentityAgent=none -o BatchMode=yes -o StrictHostKeyChecking=accept-new"
|
||||||
|
export GIT_SSH_COMMAND="${GIT_SSH_CMD}"
|
||||||
|
unset SSH_AUTH_SOCK || true
|
||||||
|
GIT_SSH_FLAGS=(-c "core.sshCommand=${GIT_SSH_CMD}")
|
||||||
|
fi
|
||||||
|
|
||||||
TARGET_REPO="all"
|
TARGET_REPO="all"
|
||||||
DO_PULL=1
|
DO_PULL=1
|
||||||
DO_CADDY=1
|
DO_CADDY=1
|
||||||
@@ -100,6 +111,15 @@ REPOS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if [[ "${DO_PULL}" -eq 1 ]]; then
|
if [[ "${DO_PULL}" -eq 1 ]]; then
|
||||||
|
GIT_PULL_PREFIX=()
|
||||||
|
if [[ -f "${DEPLOY_KEY}" ]] && [[ ! -r "${DEPLOY_KEY}" ]]; then
|
||||||
|
if [[ -n "${SUDO}" ]]; then
|
||||||
|
GIT_PULL_PREFIX=("${SUDO}")
|
||||||
|
else
|
||||||
|
echo "[ERROR] Deploy key ${DEPLOY_KEY} is not readable by $(id -un) and sudo is unavailable." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
for entry in "${REPOS[@]}"; do
|
for entry in "${REPOS[@]}"; do
|
||||||
repo="${entry%%:*}"
|
repo="${entry%%:*}"
|
||||||
branch="${entry##*:}"
|
branch="${entry##*:}"
|
||||||
@@ -108,29 +128,58 @@ if [[ "${DO_PULL}" -eq 1 ]]; then
|
|||||||
fi
|
fi
|
||||||
if [[ -d "${REPOS_ROOT}/${repo}/.git" ]]; then
|
if [[ -d "${REPOS_ROOT}/${repo}/.git" ]]; then
|
||||||
remote_name="origin"
|
remote_name="origin"
|
||||||
if [[ "${repo}" == "haiperdohp-jemaytreeah" ]] && git -C "${REPOS_ROOT}/${repo}" remote | grep -qx "downstream"; then
|
if [[ "${repo}" == "haiperdohp-jemaytreeah" ]] && git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" remote | grep -qx "downstream"; then
|
||||||
remote_name="downstream"
|
remote_name="downstream"
|
||||||
fi
|
fi
|
||||||
echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch})..."
|
slug="${repo}"
|
||||||
prev_head="$(git -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)"
|
if [[ "${repo}" == "hyperdope-ci-build" || "${repo}" == "ingglish-hyperdope-ci" ]]; then
|
||||||
run_checked "git fetch ${repo}" git -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags
|
slug="ingglish-hyperdope-ci"
|
||||||
git -C "${REPOS_ROOT}/${repo}" reset HEAD -- README.md || true
|
fi
|
||||||
git -C "${REPOS_ROOT}/${repo}" checkout -- README.md || true
|
if [[ -f "${DEPLOY_KEY}" ]]; then
|
||||||
if [[ -n "$(git -C "${REPOS_ROOT}/${repo}" ls-files financial-aq-harvest-latest.json)" ]]; then
|
if [[ "${repo}" == "hyperstitionstudio-core" || "${repo}" == "ingglish-hyperdope-gematria" || "${repo}" == "encyclopedia-knowledge-graph" ]]; then
|
||||||
if ! git -C "${REPOS_ROOT}/${repo}" diff --quiet -- financial-aq-harvest-latest.json 2>&1; then
|
git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" config core.sshCommand "${GIT_SSH_CMD}" || true
|
||||||
git -C "${REPOS_ROOT}/${repo}" checkout -- financial-aq-harvest-latest.json || true
|
git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" remote set-url "${remote_name}" "ssh://git@git.libre.audio:2222/seasharp/${slug}.git" || true
|
||||||
|
else
|
||||||
|
git -C "${REPOS_ROOT}/${repo}" config --unset core.sshCommand || true
|
||||||
|
git -C "${REPOS_ROOT}/${repo}" remote set-url "${remote_name}" "https://git.libre.audio/seasharp/${slug}.git" || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "${repo}" == "${CI_REPO_DIR}" || "${repo}" == "ingglish-hyperdope-gematria" ]] && ! git -C "${REPOS_ROOT}/${repo}" diff --quiet 2>&1; then
|
echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch}) with lossless telemetry snapshot & clean remote sync..."
|
||||||
git -C "${REPOS_ROOT}/${repo}" checkout -- . || true
|
TELEMETRY_SNAP_DIR="/tmp/hyperstition-vps-telemetry-snap"
|
||||||
|
if [[ "${repo}" == "hyperstitionstudio-core" && ! -d "${TELEMETRY_SNAP_DIR}" ]]; then
|
||||||
|
"${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --snapshot-telemetry "${TELEMETRY_SNAP_DIR}" || true
|
||||||
fi
|
fi
|
||||||
run_checked "git merge ${repo}" git -C "${REPOS_ROOT}/${repo}" merge --ff-only "${remote_name}/${branch}"
|
prev_head="$(git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)"
|
||||||
new_head="$(git -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)"
|
if [[ "${#GIT_PULL_PREFIX[@]}" -gt 0 ]]; then
|
||||||
|
run_checked "git fetch ${repo}" "${GIT_PULL_PREFIX[@]}" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -c "safe.directory=${REPOS_ROOT}/${repo}" -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags
|
||||||
|
else
|
||||||
|
run_checked "git fetch ${repo}" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags
|
||||||
|
fi
|
||||||
|
git -C "${REPOS_ROOT}/${repo}" rebase --abort 2>&1 | grep -v "No rebase in progress" || true
|
||||||
|
git -C "${REPOS_ROOT}/${repo}" merge --abort 2>&1 | grep -v "There is no merge to abort" || true
|
||||||
|
run_checked "git reset --hard ${remote_name}/${branch} (${repo})" git -C "${REPOS_ROOT}/${repo}" reset --hard "${remote_name}/${branch}"
|
||||||
|
git -C "${REPOS_ROOT}/${repo}" stash clear || true
|
||||||
|
new_head="$(git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)"
|
||||||
if [[ "${repo}" == "hyperstitionstudio-core" && "${prev_head}" != "${new_head}" && -z "${HYPERSTITION_SYNC_REEXEC:-}" ]]; then
|
if [[ "${repo}" == "hyperstitionstudio-core" && "${prev_head}" != "${new_head}" && -z "${HYPERSTITION_SYNC_REEXEC:-}" ]]; then
|
||||||
echo "[1/5] hyperstitionstudio-core updated (${prev_head:0:7} -> ${new_head:0:7}); re-executing updated sync-vps-repos.sh..."
|
echo "[1/5] hyperstitionstudio-core updated (${prev_head:0:7} -> ${new_head:0:7}); re-executing updated sync-vps-repos.sh..."
|
||||||
export HYPERSTITION_SYNC_REEXEC=1
|
export HYPERSTITION_SYNC_REEXEC=1
|
||||||
exec "${REPOS_ROOT}/hyperstitionstudio-core/deploy/sync-vps-repos.sh" "$@"
|
exec "${REPOS_ROOT}/hyperstitionstudio-core/deploy/sync-vps-repos.sh" "$@"
|
||||||
fi
|
fi
|
||||||
|
if [[ "${repo}" == "hyperstitionstudio-core" && -d "${TELEMETRY_SNAP_DIR}" ]]; then
|
||||||
|
run_checked "reconcile VPS telemetry snapshot" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --reconcile-telemetry "${TELEMETRY_SNAP_DIR}"
|
||||||
|
rm -rf "${TELEMETRY_SNAP_DIR}"
|
||||||
|
if [[ -n "$(git -C "${REPOS_ROOT}/hyperstitionstudio-core" status --porcelain || true)" ]] && [[ -f "${DEPLOY_KEY}" ]]; then
|
||||||
|
echo "[1/5] Committing and pushing reconciled VPS harvest telemetry to ${remote_name}/${branch}..."
|
||||||
|
run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only
|
||||||
|
if [[ -z "$(git -C "${REPOS_ROOT}/hyperstitionstudio-core" config user.name || true)" ]]; then
|
||||||
|
git -C "${REPOS_ROOT}/hyperstitionstudio-core" config user.name "Hyperstition VPS Bot"
|
||||||
|
git -C "${REPOS_ROOT}/hyperstitionstudio-core" config user.email "vps-bot@hyperstitionstud.io"
|
||||||
|
fi
|
||||||
|
git -C "${REPOS_ROOT}/hyperstitionstudio-core" add -A
|
||||||
|
run_checked "git commit reconciled telemetry" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/hyperstitionstudio-core" commit -m "chore(telemetry): reconcile VPS harvest telemetry with origin/main"
|
||||||
|
run_checked "git push reconciled telemetry" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/hyperstitionstudio-core" push "${remote_name}" "${branch}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@@ -210,14 +259,14 @@ ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/learn" "${LIVE_REPOS}/learn"
|
|||||||
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/quant" "${LIVE_REPOS}/quant"
|
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/quant" "${LIVE_REPOS}/quant"
|
||||||
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate"
|
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate"
|
||||||
echo "[3b/5] Generating untracked deploy-time /quant/audio/*.wav spoken voice tracks (Strategies 1A & 2A: flite kal16 + background slt upgrade, 0 audio files in Git)..."
|
echo "[3b/5] Generating untracked deploy-time /quant/audio/*.wav spoken voice tracks (Strategies 1A & 2A: flite kal16 + background slt upgrade, 0 audio files in Git)..."
|
||||||
if [[ -z "$(type -P flite || true)" ]] || [[ -z "$(type -P espeak-ng || true)" ]]; then
|
if [[ -z "$(type -P flite || true)" ]] || [[ -z "$(type -P espeak-ng || true)" ]] || [[ -z "$(type -P node || true)" ]]; then
|
||||||
if [[ "${DO_CADDY}" -eq 1 ]]; then
|
if [[ "${DO_CADDY}" -eq 1 ]]; then
|
||||||
if [[ -n "$(type -P dnf || true)" ]]; then
|
if [[ -n "$(type -P dnf || true)" ]]; then
|
||||||
echo " -> Installing flite & espeak-ng via dnf for natural spoken English tour narration..."
|
echo " -> Installing flite, espeak-ng & nodejs via dnf for full development-production test execution parity..."
|
||||||
${SUDO} dnf install -y -q flite espeak-ng || true
|
${SUDO} dnf install -y -q flite espeak-ng nodejs || true
|
||||||
elif [[ -n "$(type -P apt-get || true)" ]]; then
|
elif [[ -n "$(type -P apt-get || true)" ]]; then
|
||||||
echo " -> Installing flite & espeak-ng via apt-get for natural spoken English tour narration..."
|
echo " -> Installing flite, espeak-ng & nodejs via apt-get for full development-production test execution parity..."
|
||||||
${SUDO} env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq flite espeak-ng || true
|
${SUDO} env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq flite espeak-ng nodejs npm || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 25 KiB |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$id": "urn:io:hyperstitionstud:closeups-ui-manifest",
|
"$id": "urn:io:hyperstitionstud:closeups-ui-manifest",
|
||||||
"ui_elements_fingerprint_sha256": "55133af5b8662fcd4db68781d8002a6f931891143123e7f3e8c9b7e91faf9103",
|
"ui_elements_fingerprint_sha256": "575a5ef8137b8145fdaf914e28f29c06cd0fdec8ed2e0e68a4e0067837e277d9",
|
||||||
"closeup_images": [
|
"closeup_images": [
|
||||||
"quadrant-1-cybermemetics-calc-graph.png",
|
"quadrant-1-cybermemetics-calc-graph.png",
|
||||||
"quadrant-1-tab-2-graph.png",
|
"quadrant-1-tab-2-graph.png",
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
],
|
],
|
||||||
"live_metrics": {
|
"live_metrics": {
|
||||||
"calc_db_entries": 233815,
|
"calc_db_entries": 233815,
|
||||||
"quant_total_real_bars": 472,
|
"quant_total_real_bars": 514,
|
||||||
"quant_bayesian_posteriors": {
|
"quant_bayesian_posteriors": {
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
"R1_BULL_RISK_ON": 0.0,
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
"R2_PINNED_ISOMETRIC": 0.0,
|
||||||
@@ -804,7 +804,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ipld_dag_json_cidv1": {
|
"ipld_dag_json_cidv1": {
|
||||||
"/": "baguqeerakt6axr7t6xup2i6zp6xqdpwn3m4yzhidockgwzw3nyvqu3rqf4lq"
|
"/": "baguqeera6nnx7kkrf3vmvixyazmic5gnnq2vnps5stmsyenduuvudc7qbnya"
|
||||||
},
|
},
|
||||||
"geometry_audit": {
|
"geometry_audit": {
|
||||||
"all_clean": true,
|
"all_clean": true,
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
// Auto-generated by hyperstitionstud_io.quant.daily_brief — DO NOT EDIT MANUALLY
|
// Auto-generated by hyperstitionstud_io.quant.daily_brief — DO NOT EDIT MANUALLY
|
||||||
window.HYPERSTITION_DAILY_BRIEF = {"$schema": "./schemas/v1/daily-portfolio-brief.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief", "version": "2.4.0", "run_number": 18, "generated_at_utc": "2026-12-01T03:15:46Z", "synthetic_data_eliminated": true, "agenda_1_executive_summary": {"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.", "high_impact_findings_ranked": [{"rank": 1, "theme": "Dose 2 Isometric Pinning Dominance vs. Dose 3+ Tail Exhaustion", "durability_score": 0.84, "severity_score": 0.78, "portfolio_impact_probability": 0.81, "evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=39) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 8 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."}, {"rank": 2, "theme": "FRED Overnight Rate & Pipeline Margin Lock (EFFR = 388 bps, PPI MoM = -19 bps -> 137)", "durability_score": 0.88, "severity_score": 0.72, "portfolio_impact_probability": 0.79, "evidence": "EFFR holds at 3.88% (388 bps == 388 Knowledge Graph nodes) with SOFR at 3.98% (+10 bps repo spread), while PPI MoM (-19 bps -> 'nineteen'/'nainteen' = 137 [G4 Isometric]) undercuts CPI MoM (+35 bps -> 166) by -54 bps."}, {"rank": 3, "theme": "Synchronous Crypto & AI Hardware Coordinate Locks (BTC/ETH -91 bps, GOOGL -108 bps -> 292, SOL $73.07 == 73)", "durability_score": 0.76, "severity_score": 0.74, "portfolio_impact_probability": 0.75, "evidence": "SOL-USD locked onto its own ticker AQ ($73.07 == SOL=73) before surging +536 bps next day; GOOGL -108 bps locked onto Gen 0 292 (Dossier 62); BTC-USD and ETH-USD posted a simultaneous -91 bps (kampyoot=91) lock on 2026-11-26/28."}], "risk_on_off_barometers": {"vix_close": 23.81, "us10y_yield_pct": 4.94, "btc_latest_change_bps": -44, "copper_hg_latest_change_bps": 181, "effr_overnight_pct": 3.88, "sofr_overnight_pct": 3.98, "sofr_minus_effr_spread_bps": 10, "real_m2_mom_growth_bps": 16}, "bayesian_regime_inference": {"extant_priors": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "likelihood_factors": {"R1_BULL_RISK_ON": 0.6354, "R2_PINNED_ISOMETRIC": 0.805, "R3_TAIL_DRAWDOWN_RISK_OFF": 3.5063}, "posterior_probabilities": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "scenarios": {"best_case_r1_bull_risk_on": {"probability": 0.0, "label": "Best Case — Risk-On Expansion & Smooth Trend Continuation", "expected_daily_excursion_bps": "P50: +180 to +240 bps (Up-skewed S1/S2 leadership)", "drivers": "Real M2 positive growth (+16 bps MoM), easing PPI pipeline (-19 bps MoM), and VIX compression."}, "base_case_r2_pinned_isometric": {"probability": 0.0, "label": "Base Case — Vector G1/G4 Isometric Attractor Pinning (Dose 2 Regime)", "expected_daily_excursion_bps": "P50: 101.0 bps | P90 Tail: 292.0 bps (-58% variance compression vs. Dose 0)", "drivers": "Cross-species Market Ring × Same-Day Dossier Coordinate locks without headline shocks (60.6% next-day continuation)."}, "worst_case_r3_tail_drawdown": {"probability": 1.0, "label": "Worst Case — Dose 3+ Phase-Transition Drawdown & Sovereign Yield Tightening", "expected_daily_excursion_bps": "Next-Day Mean: -377.5 bps | 3-Day Cumulative Excursion: 1,395.0 bps (~13.95%)", "drivers": "US10Y near 4.85%-4.94% + triple-species Dose 3+ collisions (100% downside skew & 1.98x mean volume in Nov 2026)."}}}}, "agenda_2_confirming_signals": {"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.", "active_dose2_confirmations": [{"date_utc": "2026-11-30", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59696.43, "change_bps": -44, "volume_ratio_20d": 0.77, "shared_dossier_coordinates": [189], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-29", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 71.34, "change_bps": 125, "volume_ratio_20d": 0.73, "shared_dossier_coordinates": [71, 125], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59321.42, "change_bps": -91, "volume_ratio_20d": 0.38, "shared_dossier_coordinates": [91], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "ETH-USD", "entity_ing": "edheroom", "close_usd": 1645.99, "change_bps": -91, "volume_ratio_20d": 0.52, "shared_dossier_coordinates": [91], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 70.46,Line truncated
|
window.HYPERSTITION_DAILY_BRIEF = {"$schema": "./schemas/v1/daily-portfolio-brief.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief", "version": "2.17.1", "run_number": 10, "generated_at_utc": "2026-12-02T14:48:38Z", "synthetic_data_eliminated": true, "agenda_1_executive_summary": {"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.", "high_impact_findings_ranked": [{"rank": 1, "theme": "Dose 2 Isometric Pinning Dominance vs. Dose 3+ Tail Exhaustion", "durability_score": 0.84, "severity_score": 0.78, "portfolio_impact_probability": 0.81, "evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=42) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 9 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."}, {"rank": 2, "theme": "FRED Overnight Rate & Pipeline Margin Lock (EFFR = 388 bps, PPI MoM = -19 bps -> 137)", "durability_score": 0.88, "severity_score": 0.72, "portfolio_impact_probability": 0.79, "evidence": "EFFR holds at 3.88% (388 bps == 388 Knowledge Graph nodes) with SOFR at 3.98% (+10 bps repo spread), while PPI MoM (-19 bps -> 'nineteen'/'nainteen' = 137 [G4 Isometric]) undercuts CPI MoM (+35 bps -> 166) by -54 bps."}, {"rank": 3, "theme": "Synchronous Crypto & AI Hardware Coordinate Locks (BTC/ETH -91 bps, GOOGL -108 bps -> 292, SOL $73.07 == 73)", "durability_score": 0.76, "severity_score": 0.74, "portfolio_impact_probability": 0.75, "evidence": "SOL-USD locked onto its own ticker AQ ($73.07 == SOL=73) before surging +536 bps next day; GOOGL -108 bps locked onto Gen 0 292 (Dossier 62); BTC-USD and ETH-USD posted a simultaneous -91 bps (kampyoot=91) lock on 2026-11-26/28."}], "risk_on_off_barometers": {"vix_close": 19.26, "us10y_yield_pct": 5.05, "btc_latest_change_bps": 14, "copper_hg_latest_change_bps": 77, "effr_overnight_pct": 3.89, "sofr_overnight_pct": 4.02, "sofr_minus_effr_spread_bps": 13, "real_m2_mom_growth_bps": 16}, "bayesian_regime_inference": {"extant_priors": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "likelihood_factors": {"R1_BULL_RISK_ON": 0.9775, "R2_PINNED_ISOMETRIC": 1.0465, "R3_TAIL_DRAWDOWN_RISK_OFF": 2.125}, "posterior_probabilities": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "scenarios": {"best_case_r1_bull_risk_on": {"probability": 0.0, "label": "Best Case — Risk-On Expansion & Smooth Trend Continuation", "expected_daily_excursion_bps": "P50: +180 to +240 bps (Up-skewed S1/S2 leadership)", "drivers": "Real M2 positive growth (+16 bps MoM), easing PPI pipeline (-19 bps MoM), and VIX compression."}, "base_case_r2_pinned_isometric": {"probability": 0.0, "label": "Base Case — Vector G1/G4 Isometric Attractor Pinning (Dose 2 Regime)", "expected_daily_excursion_bps": "P50: 101.0 bps | P90 Tail: 292.0 bps (-58% variance compression vs. Dose 0)", "drivers": "Cross-species Market Ring × Same-Day Dossier Coordinate locks without headline shocks (60.6% next-day continuation)."}, "worst_case_r3_tail_drawdown": {"probability": 1.0, "label": "Worst Case — Dose 3+ Phase-Transition Drawdown & Sovereign Yield Tightening", "expected_daily_excursion_bps": "Next-Day Mean: -377.5 bps | 3-Day Cumulative Excursion: 1,395.0 bps (~13.95%)", "drivers": "US10Y near 4.85%-4.94% + triple-species Dose 3+ collisions (100% downside skew & 1.98x mean volume in Nov 2026)."}}}}, "agenda_2_confirming_signals": {"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.", "active_dose2_confirmations": [{"date_utc": "2026-12-01", "symbol": "RTX", "entity_ing": "raytheeon", "close_usd": 200.21, "change_bps": 60, "volume_ratio_20d": 0.71, "shared_dossier_coordinates": [], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "MSFT", "entity_ing": "maikrohsawft", "close_usd": 487.2, "change_bps": -115, "volume_ratio_20d": 1.39, "shared_dossier_coordinates": [115], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "LMT", "entity_ing": "lokheed", "close_usd": 610.65, "change_bps": 79, "volume_ratio_20d": 1.91, "shared_dossier_coordinates": [], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-30", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59696.43, "change_bps": -44, "volume_ratio_20d": 0.77, "shared_dossier_coordinates": [189], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-29", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 71.34, "change_bps": 125Line truncated
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./schemas/v1/daily-portfolio-brief.schema.json",
|
"$schema": "./schemas/v1/daily-portfolio-brief.schema.json",
|
||||||
"$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief",
|
"$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief",
|
||||||
"version": "2.4.0",
|
"version": "2.17.1",
|
||||||
"run_number": 18,
|
"run_number": 10,
|
||||||
"generated_at_utc": "2026-12-01T03:15:46Z",
|
"generated_at_utc": "2026-12-02T14:48:38Z",
|
||||||
"synthetic_data_eliminated": true,
|
"synthetic_data_eliminated": true,
|
||||||
"agenda_1_executive_summary": {
|
"agenda_1_executive_summary": {
|
||||||
"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.",
|
"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.",
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"durability_score": 0.84,
|
"durability_score": 0.84,
|
||||||
"severity_score": 0.78,
|
"severity_score": 0.78,
|
||||||
"portfolio_impact_probability": 0.81,
|
"portfolio_impact_probability": 0.81,
|
||||||
"evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=39) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 8 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."
|
"evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=42) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 9 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rank": 2,
|
"rank": 2,
|
||||||
@@ -34,13 +34,13 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"risk_on_off_barometers": {
|
"risk_on_off_barometers": {
|
||||||
"vix_close": 23.81,
|
"vix_close": 19.26,
|
||||||
"us10y_yield_pct": 4.94,
|
"us10y_yield_pct": 5.05,
|
||||||
"btc_latest_change_bps": -44,
|
"btc_latest_change_bps": 14,
|
||||||
"copper_hg_latest_change_bps": 181,
|
"copper_hg_latest_change_bps": 77,
|
||||||
"effr_overnight_pct": 3.88,
|
"effr_overnight_pct": 3.89,
|
||||||
"sofr_overnight_pct": 3.98,
|
"sofr_overnight_pct": 4.02,
|
||||||
"sofr_minus_effr_spread_bps": 10,
|
"sofr_minus_effr_spread_bps": 13,
|
||||||
"real_m2_mom_growth_bps": 16
|
"real_m2_mom_growth_bps": 16
|
||||||
},
|
},
|
||||||
"bayesian_regime_inference": {
|
"bayesian_regime_inference": {
|
||||||
@@ -50,9 +50,9 @@
|
|||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||||
},
|
},
|
||||||
"likelihood_factors": {
|
"likelihood_factors": {
|
||||||
"R1_BULL_RISK_ON": 0.6354,
|
"R1_BULL_RISK_ON": 0.9775,
|
||||||
"R2_PINNED_ISOMETRIC": 0.805,
|
"R2_PINNED_ISOMETRIC": 1.0465,
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 3.5063
|
"R3_TAIL_DRAWDOWN_RISK_OFF": 2.125
|
||||||
},
|
},
|
||||||
"posterior_probabilities": {
|
"posterior_probabilities": {
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
"R1_BULL_RISK_ON": 0.0,
|
||||||
@@ -84,6 +84,38 @@
|
|||||||
"agenda_2_confirming_signals": {
|
"agenda_2_confirming_signals": {
|
||||||
"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.",
|
"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.",
|
||||||
"active_dose2_confirmations": [
|
"active_dose2_confirmations": [
|
||||||
|
{
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"symbol": "RTX",
|
||||||
|
"entity_ing": "raytheeon",
|
||||||
|
"close_usd": 200.21,
|
||||||
|
"change_bps": 60,
|
||||||
|
"volume_ratio_20d": 0.71,
|
||||||
|
"shared_dossier_coordinates": [],
|
||||||
|
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"symbol": "MSFT",
|
||||||
|
"entity_ing": "maikrohsawft",
|
||||||
|
"close_usd": 487.2,
|
||||||
|
"change_bps": -115,
|
||||||
|
"volume_ratio_20d": 1.39,
|
||||||
|
"shared_dossier_coordinates": [
|
||||||
|
115
|
||||||
|
],
|
||||||
|
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"symbol": "LMT",
|
||||||
|
"entity_ing": "lokheed",
|
||||||
|
"close_usd": 610.65,
|
||||||
|
"change_bps": 79,
|
||||||
|
"volume_ratio_20d": 1.91,
|
||||||
|
"shared_dossier_coordinates": [],
|
||||||
|
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"date_utc": "2026-11-30",
|
"date_utc": "2026-11-30",
|
||||||
"symbol": "BTC-USD",
|
"symbol": "BTC-USD",
|
||||||
@@ -144,45 +176,25 @@
|
|||||||
163
|
163
|
||||||
],
|
],
|
||||||
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
||||||
},
|
|
||||||
{
|
|
||||||
"date_utc": "2026-11-27",
|
|
||||||
"symbol": "NVDA",
|
|
||||||
"entity_ing": "envideea",
|
|
||||||
"close_usd": 150.49,
|
|
||||||
"change_bps": 80,
|
|
||||||
"volume_ratio_20d": 0.53,
|
|
||||||
"shared_dossier_coordinates": [
|
|
||||||
128
|
|
||||||
],
|
|
||||||
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"date_utc": "2026-11-26",
|
|
||||||
"symbol": "SOL-USD",
|
|
||||||
"entity_ing": "sohlana",
|
|
||||||
"close_usd": 70.93,
|
|
||||||
"change_bps": 77,
|
|
||||||
"volume_ratio_20d": 0.57,
|
|
||||||
"shared_dossier_coordinates": [
|
|
||||||
71
|
|
||||||
],
|
|
||||||
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"date_utc": "2026-11-25",
|
|
||||||
"symbol": "MSFT",
|
|
||||||
"entity_ing": "maikrohsawft",
|
|
||||||
"close_usd": 489.93,
|
|
||||||
"change_bps": -125,
|
|
||||||
"volume_ratio_20d": 0.87,
|
|
||||||
"shared_dossier_coordinates": [
|
|
||||||
125
|
|
||||||
],
|
|
||||||
"dose_taxon_label": "Dose 2: G1/G4 Pinning Well"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"active_dose3_breakout_confirmations": [
|
"active_dose3_breakout_confirmations": [
|
||||||
|
{
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"symbol": "NVDA",
|
||||||
|
"entity_ing": "envideea",
|
||||||
|
"close_usd": 152.55,
|
||||||
|
"change_bps": 137,
|
||||||
|
"volume_ratio_20d": 0.77,
|
||||||
|
"scope1_locks": [
|
||||||
|
"BPS_SELF_LOCK (137==envideea)"
|
||||||
|
],
|
||||||
|
"shared_dossier_coordinates": [
|
||||||
|
137,
|
||||||
|
153
|
||||||
|
],
|
||||||
|
"dose_taxon_label": "Dose 3+: Phase-Transition Surge"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"date_utc": "2026-11-25",
|
"date_utc": "2026-11-25",
|
||||||
"symbol": "BLK",
|
"symbol": "BLK",
|
||||||
@@ -251,19 +263,6 @@
|
|||||||
166
|
166
|
||||||
],
|
],
|
||||||
"dose_taxon_label": "Dose 3+: Phase-Transition Surge"
|
"dose_taxon_label": "Dose 3+: Phase-Transition Surge"
|
||||||
},
|
|
||||||
{
|
|
||||||
"date_utc": "2026-11-12",
|
|
||||||
"symbol": "MSFT",
|
|
||||||
"entity_ing": "maikrohsawft",
|
|
||||||
"close_usd": 523.0,
|
|
||||||
"change_bps": 36,
|
|
||||||
"volume_ratio_20d": 0.7,
|
|
||||||
"scope1_locks": [
|
|
||||||
"BPS_REPDIGIT_ATTRACTOR (222)"
|
|
||||||
],
|
|
||||||
"shared_dossier_coordinates": [],
|
|
||||||
"dose_taxon_label": "Dose 3+: Phase-Transition Surge"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"macro_support_vectors": [
|
"macro_support_vectors": [
|
||||||
@@ -294,7 +293,7 @@
|
|||||||
{
|
{
|
||||||
"challenge_type": "SOVEREIGN_TERM_YIELD_HEADWIND",
|
"challenge_type": "SOVEREIGN_TERM_YIELD_HEADWIND",
|
||||||
"indicator": "US10Y (DGS10 / ^TNX) & Term Slope (10Y - EFFR)",
|
"indicator": "US10Y (DGS10 / ^TNX) & Term Slope (10Y - EFFR)",
|
||||||
"observation": "US10Y = 4.85% / 4.94% (+97 bps above EFFR 3.88% -> 'naintee sevan' = 237 == kansorsheeam)",
|
"observation": "US10Y = 4.93% / 5.05% (+97 bps above EFFR 3.88% -> 'naintee sevan' = 237 == kansorsheeam)",
|
||||||
"impact": "Sustained ~4.85%-4.94% 10-year yields compress equity risk premia and penalize high-multiple S1 software names on any headline miss."
|
"impact": "Sustained ~4.85%-4.94% 10-year yields compress equity risk premia and penalize high-multiple S1 software names on any headline miss."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -378,46 +377,28 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"agenda_4_delta_since_last_run": {
|
"agenda_4_delta_since_last_run": {
|
||||||
"prior_run_number": 17,
|
"prior_run_number": 9,
|
||||||
"current_run_number": 18,
|
"current_run_number": 10,
|
||||||
"latest_wire_dossier": {
|
"latest_wire_dossier": {
|
||||||
"date_utc": "2026-11-30",
|
"date_utc": "2026-12-01",
|
||||||
"dossier_number": 72,
|
"dossier_number": 73,
|
||||||
"dossier_file": "72-dossier-news-2026-11-30.md",
|
"dossier_file": "73-dossier-news-2026-12-01.md",
|
||||||
"equation_counts": {
|
"equation_counts": {
|
||||||
"eq_333": 80,
|
"eq_333": 10,
|
||||||
"eq_666": 40,
|
"eq_666": 10,
|
||||||
"eq_777": 40,
|
"eq_777": 10,
|
||||||
"total": 160
|
"total": 30
|
||||||
},
|
},
|
||||||
"active_ring_coordinates": [
|
"active_ring_coordinates": [
|
||||||
71,
|
71,
|
||||||
81,
|
|
||||||
91,
|
91,
|
||||||
95,
|
135
|
||||||
96,
|
|
||||||
115,
|
|
||||||
128,
|
|
||||||
129,
|
|
||||||
135,
|
|
||||||
136,
|
|
||||||
137,
|
|
||||||
153,
|
|
||||||
160,
|
|
||||||
163,
|
|
||||||
189,
|
|
||||||
191,
|
|
||||||
193,
|
|
||||||
197,
|
|
||||||
211,
|
|
||||||
222,
|
|
||||||
256
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"macro_releases_ingested": {
|
"macro_releases_ingested": {
|
||||||
"cpi_latest": "2026-10-01: 337.476 (35 bps MoM)",
|
"cpi_latest": "2026-10-01: 337.476 (35 bps MoM)",
|
||||||
"ppi_latest": "2026-10-01: 293.921 (-19 bps MoM)",
|
"ppi_latest": "2026-10-01: 293.921 (-19 bps MoM)",
|
||||||
"effr_sofr_latest": "2026-11-27: EFFR=3.88%, SOFR=3.98%",
|
"effr_sofr_latest": "2026-12-01: EFFR=3.89%, SOFR=4.02%",
|
||||||
"m2_real_m2_latest": "2026-10-01: M2=$23532.8B, Real M2=$6973.2B",
|
"m2_real_m2_latest": "2026-10-01: M2=$23532.8B, Real M2=$6973.2B",
|
||||||
"gdp_gnp_latest": "2026-07-01: GDP=$33056.204B, GNP=$33026.509B"
|
"gdp_gnp_latest": "2026-07-01: GDP=$33056.204B, GNP=$33026.509B"
|
||||||
},
|
},
|
||||||
@@ -432,13 +413,13 @@
|
|||||||
},
|
},
|
||||||
"agenda_5_daily_key_macro_question_and_rigor": {
|
"agenda_5_daily_key_macro_question_and_rigor": {
|
||||||
"prior_question_grading": {
|
"prior_question_grading": {
|
||||||
"prior_question_id": "Q-RUN-0017",
|
"prior_question_id": "Q-RUN-0022",
|
||||||
"prior_question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
"prior_question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||||
"status": "EVALUATED_ON_REAL_TAPE",
|
"status": "EVALUATED_ON_REAL_TAPE",
|
||||||
"evidence_summary": "Late-November real tape logged 12 Dose 2 isometric pinning sessions (including 2026-11-24 GOOGL -108 bps -> 292 and 2026-11-28 BTC/ETH -91 bps sync wave) with 0 new Dose 3+ drawdown shocks after Nov 19, confirming Base-Case R2 variance compression."
|
"evidence_summary": "Late-November real tape logged 15 Dose 2 isometric pinning sessions (including 2026-11-24 GOOGL -108 bps -> 292 and 2026-11-28 BTC/ETH -91 bps sync wave) with 0 new Dose 3+ drawdown shocks after Nov 19, confirming Base-Case R2 variance compression."
|
||||||
},
|
},
|
||||||
"active_daily_question": {
|
"active_daily_question": {
|
||||||
"question_id": "Q-RUN-0018",
|
"question_id": "Q-RUN-0010",
|
||||||
"question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
"question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||||
"confirmation_threshold_r2_pin": "Next-session median displacement across locked S1/S2/S3 leaders remains <= 150 bps with Vol20d < 1.15x.",
|
"confirmation_threshold_r2_pin": "Next-session median displacement across locked S1/S2/S3 leaders remains <= 150 bps with Vol20d < 1.15x.",
|
||||||
"falsification_threshold_r3_breakout": "Any S1/S2/S3 keystone logs a Dose 3+ headline-coupled session with Vol20d >= 1.50x or change_bps <= -300 bps."
|
"falsification_threshold_r3_breakout": "Any S1/S2/S3 keystone logs a Dose 3+ headline-coupled session with Vol20d >= 1.50x or change_bps <= -300 bps."
|
||||||
@@ -452,10 +433,10 @@
|
|||||||
"total_real_bars_n": 440,
|
"total_real_bars_n": 440,
|
||||||
"valid_change_bps_n": 433,
|
"valid_change_bps_n": 433,
|
||||||
"next_day_pairs_n": 412,
|
"next_day_pairs_n": 412,
|
||||||
"dose_0_n": 345,
|
"dose_0_n": 374,
|
||||||
"dose_1_n": 80,
|
"dose_1_n": 89,
|
||||||
"dose_2_n": 39,
|
"dose_2_n": 42,
|
||||||
"dose_3_plus_n": 8
|
"dose_3_plus_n": 9
|
||||||
},
|
},
|
||||||
"methodological_applicability_and_significance": "1. Nonparametric Order Statistics (Median P50 & Tail P90) vs. Parametric Means: Because cross-asset basis-point returns exhibit heavy right-tail kurtosis (crypto & VIX bars vs. low-beta equities), Median P50 (Dose 2 = 101.0 bps vs. Dose 0 = 240.5 bps, -58%) and P90 (Dose 2 = 292 bps vs. Dose 0 = 665 bps, -56%) are the primary applicable location/scale estimators. 2. Small-Sample Exploratory Guardrail on Tail Regimes: While Dose 3+ (n=4) exhibits a 100% downside skew, 1.98x mean volume, and 100% next-day continuation (377.5 bps), n=4 (df=2) is below the n>=10 threshold for standalone parametric inference and is explicitly badged as a Small-Sample Tail Alert rather than an asymptotic parametric law."
|
"methodological_applicability_and_significance": "1. Nonparametric Order Statistics (Median P50 & Tail P90) vs. Parametric Means: Because cross-asset basis-point returns exhibit heavy right-tail kurtosis (crypto & VIX bars vs. low-beta equities), Median P50 (Dose 2 = 101.0 bps vs. Dose 0 = 240.5 bps, -58%) and P90 (Dose 2 = 292 bps vs. Dose 0 = 665 bps, -56%) are the primary applicable location/scale estimators. 2. Small-Sample Exploratory Guardrail on Tail Regimes: While Dose 3+ (n=4) exhibits a 100% downside skew, 1.98x mean volume, and 100% next-day continuation (377.5 bps), n=4 (df=2) is below the n>=10 threshold for standalone parametric inference and is explicitly badged as a Small-Sample Tail Alert rather than an asymptotic parametric law."
|
||||||
}
|
}
|
||||||
@@ -477,6 +458,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ipld_dag_json_cidv1": {
|
"ipld_dag_json_cidv1": {
|
||||||
"/": "baguqeera6yv3xbdw7lqkus3jrvykxl67ayxmbhsuy6oimpu6e722rbp6zweq"
|
"/": "baguqeera2hqzxntuy5v2lkspxcn5as5j4k25p62cbgpnvvop2q4wdpjbuoxa"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"version": "2.4.0",
|
"version": "2.17.1",
|
||||||
"run_number": 18,
|
"run_number": 9,
|
||||||
"updated_at_utc": "2026-12-01T03:15:46Z",
|
"updated_at_utc": "2026-12-02T14:48:38Z",
|
||||||
"latest_posteriors": {
|
"latest_posteriors": {
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
"R1_BULL_RISK_ON": 0.0,
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
"R2_PINNED_ISOMETRIC": 0.0,
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||||
},
|
},
|
||||||
"active_daily_question": {
|
"active_daily_question": {
|
||||||
"question_id": "Q-RUN-0018",
|
"question_id": "Q-RUN-0010",
|
||||||
"question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
"question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||||
"confirmation_threshold_r2_pin": "Next-session median displacement across locked S1/S2/S3 leaders remains <= 150 bps with Vol20d < 1.15x.",
|
"confirmation_threshold_r2_pin": "Next-session median displacement across locked S1/S2/S3 leaders remains <= 150 bps with Vol20d < 1.15x.",
|
||||||
"falsification_threshold_r3_breakout": "Any S1/S2/S3 keystone logs a Dose 3+ headline-coupled session with Vol20d >= 1.50x or change_bps <= -300 bps."
|
"falsification_threshold_r3_breakout": "Any S1/S2/S3 keystone logs a Dose 3+ headline-coupled session with Vol20d >= 1.50x or change_bps <= -300 bps."
|
||||||
@@ -93,124 +93,25 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"run_number": 8,
|
"run_number": 8,
|
||||||
"generated_at_utc": "2026-12-01T00:05:55Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0008",
|
|
||||||
"cidv1": "baguqeerautuzfnmivmbc2fzxbwrc5sgftzcct22n4mezvac4ggjyrbvg5g5a"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 9,
|
|
||||||
"generated_at_utc": "2026-12-01T00:19:28Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0009",
|
|
||||||
"cidv1": "baguqeerawfns3y6ytluwupzkepk35hrnvxj4jvjsphebjkr4ssl5alsq7ubq"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 10,
|
|
||||||
"generated_at_utc": "2026-12-01T00:20:26Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0010",
|
|
||||||
"cidv1": "baguqeeranwkmzt6gli6f4i4c2uoelda4edgwqajimr65cz7t3bfj4bat3fta"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 11,
|
|
||||||
"generated_at_utc": "2026-12-01T00:34:19Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0011",
|
|
||||||
"cidv1": "baguqeeral24w6gneqk7n4ule4pu2kknmdxrja46iz5dujnbabjv6cng6ttua"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 12,
|
|
||||||
"generated_at_utc": "2026-12-01T01:01:54Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0012",
|
|
||||||
"cidv1": "baguqeeratalw7a3v4wps5vffanzkikbrk32tgjlrkyx3d64jfivp3raku4oq"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 13,
|
|
||||||
"generated_at_utc": "2026-12-01T01:07:49Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0013",
|
|
||||||
"cidv1": "baguqeerazwuha42cyefdtfljfycwsv34nsmhowvcfnhk7uxall2y7od5wbjq"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 14,
|
|
||||||
"generated_at_utc": "2026-12-01T01:15:27Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0014",
|
|
||||||
"cidv1": "baguqeeragj7pkqauxnfhazh3xufyvsj5m7glzt5ey74tf7e2opl4mrw5k46a"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 15,
|
|
||||||
"generated_at_utc": "2026-12-01T02:24:09Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0015",
|
|
||||||
"cidv1": "baguqeerad3auisgfth3tuuqkaljf65huof765uwocq7vxxkbp3an46rpjcva"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 16,
|
|
||||||
"generated_at_utc": "2026-12-01T02:45:08Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0016",
|
|
||||||
"cidv1": "baguqeeradofb4vbejhjmvqzdbk3ej6maztsvpzh374uog267wj3x3sni7nxa"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 17,
|
|
||||||
"generated_at_utc": "2026-12-01T03:12:39Z",
|
|
||||||
"posterior_probabilities": {
|
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
|
||||||
},
|
|
||||||
"question_id": "Q-RUN-0017",
|
|
||||||
"cidv1": "baguqeeralanwxvgzcp2vr6mjezengwreiqnszi6pqs27pxyll6ydg244chna"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"run_number": 18,
|
|
||||||
"generated_at_utc": "2026-12-01T03:15:46Z",
|
"generated_at_utc": "2026-12-01T03:15:46Z",
|
||||||
"posterior_probabilities": {
|
"posterior_probabilities": {
|
||||||
"R1_BULL_RISK_ON": 0.0,
|
"R1_BULL_RISK_ON": 0.0,
|
||||||
"R2_PINNED_ISOMETRIC": 0.0,
|
"R2_PINNED_ISOMETRIC": 0.0,
|
||||||
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||||
},
|
},
|
||||||
"question_id": "Q-RUN-0018",
|
"question_id": "Q-RUN-0008",
|
||||||
"cidv1": "baguqeera6yv3xbdw7lqkus3jrvykxl67ayxmbhsuy6oimpu6e722rbp6zweq"
|
"cidv1": "baguqeera6yv3xbdw7lqkus3jrvykxl67ayxmbhsuy6oimpu6e722rbp6zweq"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"run_number": 9,
|
||||||
|
"generated_at_utc": "2026-12-02T14:48:38Z",
|
||||||
|
"posterior_probabilities": {
|
||||||
|
"R1_BULL_RISK_ON": 0.0,
|
||||||
|
"R2_PINNED_ISOMETRIC": 0.0,
|
||||||
|
"R3_TAIL_DRAWDOWN_RISK_OFF": 1.0
|
||||||
|
},
|
||||||
|
"question_id": "Q-RUN-0009",
|
||||||
|
"cidv1": "baguqeera2hqzxntuy5v2lkspxcn5as5j4k25p62cbgpnvvop2q4wdpjbuoxa"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -1,3 +1,3 @@
|
|||||||
// Auto-generated synchronous time-series bundle for file:// and https:// portability
|
// Auto-generated synchronous time-series bundle for file:// and https:// portability
|
||||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||||
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.4.0", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.4.0", "generated_at_utc": "2026-12-01T03:15:42Z", "synthetic_data_eliminated": true, "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 22, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0, "missing_data_policy": "No data available (never synthesized or interpolated)"}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_veLine truncated
|
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.17.1", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.17.1", "generated_at_utc": "2026-12-02T14:46:24Z", "synthetic_data_eliminated": true, "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 23, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0, "missing_data_policy": "No data available (never synthesized or interpolated)"}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_Line truncated
|
||||||
+3560
-2575
File diff suppressed because it is too large.
Load diff
@@ -1,2 +1,2 @@
|
|||||||
// Auto-generated by hyperstitionstud_io.quant.macro — DO NOT EDIT MANUALLY
|
// Auto-generated by hyperstitionstud_io.quant.macro — DO NOT EDIT MANUALLY
|
||||||
window.HYPERSTITION_MACRO_DATA = {"$schema": "./schemas/v1/macro-indicators.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:macro-indicators", "version": "2.4.0", "generated_at_utc": "2026-12-01T03:15:44Z", "synthetic_data_eliminated": true, "cadence_policy": "native_cadence_preserved_no_interpolation_null_when_unavailable", "source": "fred_stlouisfed_keyless_csv", "series_count": 14, "series": {"cpi": {"series_id": "CPIAUCSL", "slug": "cpi", "label": "CPI (Consumer Price Index: All Urban Consumers)", "cadence": "1mo", "unit": "Index (1982-84=100)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 337.476, "prior_date_utc": "2026-09-01", "prior_value": 336.298, "period_change_bps": 35, "period_change_pct": 0.35, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 337, "digit_aq": 13, "spoken_eng": "three hundred thirty seven", "spoken_eng_aq": 502, "spoken_ing": "three huhndrad therdee sevan", "spoken_ing_aq": 485, "prime_rank_face": 68, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 35, "digit_aq": 8, "spoken_eng": "thirty five", "spoken_eng_aq": 232, "spoken_ing": "therdee faiv", "spoken_ing_aq": 202, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 336.298}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 337.476}]}, "ppi": {"series_id": "PPIACO", "slug": "ppi", "label": "PPI (Producer Price Index: All Commodities)", "cadence": "1mo", "unit": "Index (1982=100)", "guilds": ["S3", "S6"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 293.921, "prior_date_utc": "2026-09-01", "prior_value": 294.473, "period_change_bps": -19, "period_change_pct": -0.19, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 294, "digit_aq": 15, "spoken_eng": "two hundred ninety four", "spoken_eng_aq": 459, "spoken_ing": "too huhndrad naintee for", "spoken_ing_aq": 424, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 19, "digit_aq": 10, "spoken_eng": "nineteen", "spoken_eng_aq": 158, "spoken_ing": "nainteen", "spoken_ing_aq": 154, "prime_rank_face": 8, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 294.473}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 293.921}]}, "us10y": {"series_id": "DGS10", "slug": "us10y", "label": "US10Y (10-Year US Treasury Constant Maturity Yield)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S1"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-25", "latest_value": 4.85, "prior_date_utc": "2026-11-24", "prior_value": 4.91, "period_change_bps": -6, "period_change_pct": -0.06, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 485, "digit_aq": 17, "spoken_eng": "four hundred eighty five", "spoken_eng_aq": 439, "spoken_ing": "for huhndrad aytee faiv", "spoken_ing_aq": 391, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 6, "digit_aq": 6, "spoken_eng": "six", "spoken_eng_aq": 79, "spoken_ing": "siks", "spoken_ing_aq": 94, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": ["2026-11-26"], "recent_observations": [{"date_utc": "2026-11-24", "data_available": true, "status": "ok", "value": 4.91}, {"date_utc": "2026-11-25", "data_available": true, "status": "ok", "value": 4.85}, {"date_utc": "2026-11-26", "data_available": false, "status": "No data available", "value": null}]}, "effr": {"series_id": "EFFR", "slug": "effr", "label": "EFFR (Effective Federal Funds Overnight Lending Rate)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-27", "latest_value": 3.88, "prior_date_utc": "2026-11-25", "prior_value": 3.88, "period_change_bps": 0, "period_change_pct": 0.0, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 388, "digit_aq": 19, "spoken_eng": "three hundred eighty eight", "spoken_eng_aq": 460, "spoken_ing": "three huhndrad aytee ayt", "spoken_ing_aq": 425, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 0, "digit_aq": 0, "spoken_eng": "zero", "spoken_eng_aq": 100, "spoken_ing": "zeeroh", "spoken_ing_aq": 131, "prime_rank_face": null, "prime_rank_spoken_ing": 32, "Line truncated
|
window.HYPERSTITION_MACRO_DATA = {"$schema": "./schemas/v1/macro-indicators.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:macro-indicators", "version": "2.17.1", "generated_at_utc": "2026-12-02T14:48:36Z", "synthetic_data_eliminated": true, "cadence_policy": "native_cadence_preserved_no_interpolation_null_when_unavailable", "source": "fred_stlouisfed_keyless_csv", "series_count": 14, "series": {"cpi": {"series_id": "CPIAUCSL", "slug": "cpi", "label": "CPI (Consumer Price Index: All Urban Consumers)", "cadence": "1mo", "unit": "Index (1982-84=100)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 337.476, "prior_date_utc": "2026-09-01", "prior_value": 336.298, "period_change_bps": 35, "period_change_pct": 0.35, "yoy_change_pct": 4.08, "yoy_change_bps": 408, "aq_evaluation": {"face_int": 337, "digit_aq": 13, "spoken_eng": "three hundred thirty seven", "spoken_eng_aq": 502, "spoken_ing": "three huhndrad therdee sevan", "spoken_ing_aq": 485, "prime_rank_face": 68, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 35, "digit_aq": 8, "spoken_eng": "thirty five", "spoken_eng_aq": 232, "spoken_ing": "therdee faiv", "spoken_ing_aq": 202, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": ["2025-10-01"], "recent_observations": [{"date_utc": "2025-10-01", "data_available": false, "status": "No data available", "value": null}, {"date_utc": "2025-11-01", "data_available": true, "status": "ok", "value": 325.063}, {"date_utc": "2025-12-01", "data_available": true, "status": "ok", "value": 326.031}, {"date_utc": "2026-01-01", "data_available": true, "status": "ok", "value": 326.588}, {"date_utc": "2026-02-01", "data_available": true, "status": "ok", "value": 327.46}, {"date_utc": "2026-03-01", "data_available": true, "status": "ok", "value": 330.293}, {"date_utc": "2026-04-01", "data_available": true, "status": "ok", "value": 332.407}, {"date_utc": "2026-05-01", "data_available": true, "status": "ok", "value": 333.979}, {"date_utc": "2026-06-01", "data_available": true, "status": "ok", "value": 332.568}, {"date_utc": "2026-07-01", "data_available": true, "status": "ok", "value": 332.813}, {"date_utc": "2026-08-01", "data_available": true, "status": "ok", "value": 334.131}, {"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 336.298}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 337.476}]}, "ppi": {"series_id": "PPIACO", "slug": "ppi", "label": "PPI (Producer Price Index: All Commodities)", "cadence": "1mo", "unit": "Index (1982=100)", "guilds": ["S3", "S6"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 293.921, "prior_date_utc": "2026-09-01", "prior_value": 294.473, "period_change_bps": -19, "period_change_pct": -0.19, "yoy_change_pct": 12.79, "yoy_change_bps": 1279, "aq_evaluation": {"face_int": 294, "digit_aq": 15, "spoken_eng": "two hundred ninety four", "spoken_eng_aq": 459, "spoken_ing": "too huhndrad naintee for", "spoken_ing_aq": 424, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 19, "digit_aq": 10, "spoken_eng": "nineteen", "spoken_eng_aq": 158, "spoken_ing": "nainteen", "spoken_ing_aq": 154, "prime_rank_face": 8, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2025-10-01", "data_available": true, "status": "ok", "value": 260.591}, {"date_utc": "2025-11-01", "data_available": true, "status": "ok", "value": 261.914}, {"date_utc": "2025-12-01", "data_available": true, "status": "ok", "value": 261.333}, {"date_utc": "2026-01-01", "data_available": true, "status": "ok", "value": 263.608}, {"date_utc": "2026-02-01", "data_available": true, "status": "ok", "value": 269.535}, {"date_utc": "2026-03-01", "data_available": true, "status": "ok", "value": 276.109}, {"date_utc": "2026-04-01", "data_available": true, "status": "ok", "value": 282.722}, {"date_utc": "2026-05-01", "data_available": true, "status": "ok", "value": 290.281}, {"date_utc": "2026-06-01", "data_available": true, "status": "ok", "value": 285.795}, {"date_utc": "2026-07-01", "data_available": true, "status": "ok", "value": 284.837}, {"date_utc": "2026-08-01", "data_available": true, "status": "ok", "value": 287.522}, {"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 294.473}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 293.921}]}, "us10y": {"series_id": "DGS10", "slug": "us10y", "label": "US10Y (10-Year US Treasury Constant Maturity Yield)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S1"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-30", "latest_value": 4.93,
Line truncated
|
||||||
+2185
-192
File diff suppressed because it is too large.
Load diff
@@ -176,6 +176,26 @@
|
|||||||
"volume_ratio_20d": 0.53,
|
"volume_ratio_20d": 0.53,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 152.55,
|
||||||
|
"change_pct": 1.37,
|
||||||
|
"change_bps": 137,
|
||||||
|
"volume_ratio_20d": 0.77,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 156.67,
|
||||||
|
"change_pct": 2.7,
|
||||||
|
"change_bps": 270,
|
||||||
|
"volume_ratio_20d": 0.64,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -354,6 +374,26 @@
|
|||||||
"volume_ratio_20d": 0.53,
|
"volume_ratio_20d": 0.53,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 1316.13,
|
||||||
|
"change_pct": -0.73,
|
||||||
|
"change_bps": -73,
|
||||||
|
"volume_ratio_20d": 0.87,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 1332.5,
|
||||||
|
"change_pct": 1.24,
|
||||||
|
"change_bps": 124,
|
||||||
|
"volume_ratio_20d": 1.15,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -532,13 +572,33 @@
|
|||||||
"volume_ratio_20d": 0.49,
|
"volume_ratio_20d": 0.49,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 365.37,
|
||||||
|
"change_pct": 3.4,
|
||||||
|
"change_bps": 340,
|
||||||
|
"volume_ratio_20d": 0.91,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 378.32,
|
||||||
|
"change_pct": 3.54,
|
||||||
|
"change_bps": 354,
|
||||||
|
"volume_ratio_20d": 0.72,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ANTHR-PVT": {
|
"ANTHR-PVT": {
|
||||||
"symbol": "ANTHR-PVT",
|
"symbol": "ANTHR-PVT",
|
||||||
"feed_source": null,
|
"data_available": false,
|
||||||
"status": "No data available (private entity \u2014 not publicly traded)",
|
"status": "No data available",
|
||||||
"bars_by_date": {}
|
"bars_by_date": {}
|
||||||
},
|
},
|
||||||
"MSFT": {
|
"MSFT": {
|
||||||
@@ -716,6 +776,26 @@
|
|||||||
"volume_ratio_20d": 0.41,
|
"volume_ratio_20d": 0.41,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 487.2,
|
||||||
|
"change_pct": -1.15,
|
||||||
|
"change_bps": -115,
|
||||||
|
"volume_ratio_20d": 1.39,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 475.46,
|
||||||
|
"change_pct": -2.41,
|
||||||
|
"change_bps": -241,
|
||||||
|
"volume_ratio_20d": 1.16,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -894,6 +974,26 @@
|
|||||||
"volume_ratio_20d": 0.5,
|
"volume_ratio_20d": 0.5,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 295.16,
|
||||||
|
"change_pct": 7.35,
|
||||||
|
"change_bps": 735,
|
||||||
|
"volume_ratio_20d": 1.84,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 299.98,
|
||||||
|
"change_pct": 1.63,
|
||||||
|
"change_bps": 163,
|
||||||
|
"volume_ratio_20d": 1.05,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1072,6 +1172,26 @@
|
|||||||
"volume_ratio_20d": 0.61,
|
"volume_ratio_20d": 0.61,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 633.47,
|
||||||
|
"change_pct": 0.72,
|
||||||
|
"change_bps": 72,
|
||||||
|
"volume_ratio_20d": 1.15,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 647.97,
|
||||||
|
"change_pct": 2.29,
|
||||||
|
"change_bps": 229,
|
||||||
|
"volume_ratio_20d": 0.88,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1250,6 +1370,26 @@
|
|||||||
"volume_ratio_20d": 0.38,
|
"volume_ratio_20d": 0.38,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 110.44,
|
||||||
|
"change_pct": 3.09,
|
||||||
|
"change_bps": 309,
|
||||||
|
"volume_ratio_20d": 0.9,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 109.23,
|
||||||
|
"change_pct": -1.1,
|
||||||
|
"change_bps": -110,
|
||||||
|
"volume_ratio_20d": 0.69,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1428,6 +1568,26 @@
|
|||||||
"volume_ratio_20d": 0.53,
|
"volume_ratio_20d": 0.53,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 324.3,
|
||||||
|
"change_pct": 3.83,
|
||||||
|
"change_bps": 383,
|
||||||
|
"volume_ratio_20d": 1.11,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 341.86,
|
||||||
|
"change_pct": 5.41,
|
||||||
|
"change_bps": 541,
|
||||||
|
"volume_ratio_20d": 0.81,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1606,6 +1766,26 @@
|
|||||||
"volume_ratio_20d": 0.44,
|
"volume_ratio_20d": 0.44,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 171.32,
|
||||||
|
"change_pct": -0.13,
|
||||||
|
"change_bps": -13,
|
||||||
|
"volume_ratio_20d": 0.83,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 179.48,
|
||||||
|
"change_pct": 4.76,
|
||||||
|
"change_bps": 476,
|
||||||
|
"volume_ratio_20d": 0.81,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1784,6 +1964,26 @@
|
|||||||
"volume_ratio_20d": 0.47,
|
"volume_ratio_20d": 0.47,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 427.78,
|
||||||
|
"change_pct": 0.76,
|
||||||
|
"change_bps": 76,
|
||||||
|
"volume_ratio_20d": 0.6,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 463.7,
|
||||||
|
"change_pct": 8.4,
|
||||||
|
"change_bps": 840,
|
||||||
|
"volume_ratio_20d": 0.63,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1962,6 +2162,26 @@
|
|||||||
"volume_ratio_20d": 0.58,
|
"volume_ratio_20d": 0.58,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 168.39,
|
||||||
|
"change_pct": -2.2,
|
||||||
|
"change_bps": -220,
|
||||||
|
"volume_ratio_20d": 1.18,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 180.55,
|
||||||
|
"change_pct": 7.22,
|
||||||
|
"change_bps": 722,
|
||||||
|
"volume_ratio_20d": 1.05,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2140,6 +2360,26 @@
|
|||||||
"volume_ratio_20d": 0.39,
|
"volume_ratio_20d": 0.39,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 610.65,
|
||||||
|
"change_pct": 0.79,
|
||||||
|
"change_bps": 79,
|
||||||
|
"volume_ratio_20d": 1.91,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 599.25,
|
||||||
|
"change_pct": -1.87,
|
||||||
|
"change_bps": -187,
|
||||||
|
"volume_ratio_20d": 1.07,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2318,6 +2558,26 @@
|
|||||||
"volume_ratio_20d": 0.32,
|
"volume_ratio_20d": 0.32,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 199.02,
|
||||||
|
"change_pct": 0.27,
|
||||||
|
"change_bps": 27,
|
||||||
|
"volume_ratio_20d": 1.01,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 200.21,
|
||||||
|
"change_pct": 0.6,
|
||||||
|
"change_bps": 60,
|
||||||
|
"volume_ratio_20d": 0.71,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2505,6 +2765,16 @@
|
|||||||
"volume_ratio_20d": 3.71,
|
"volume_ratio_20d": 3.71,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 5.5,
|
||||||
|
"change_pct": 0.77,
|
||||||
|
"change_bps": 77,
|
||||||
|
"volume_ratio_20d": 1.0,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2692,6 +2962,26 @@
|
|||||||
"volume_ratio_20d": null,
|
"volume_ratio_20d": null,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 21.96,
|
||||||
|
"change_pct": -7.77,
|
||||||
|
"change_bps": -777,
|
||||||
|
"volume_ratio_20d": null,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 19.26,
|
||||||
|
"change_pct": -12.3,
|
||||||
|
"change_bps": -1230,
|
||||||
|
"volume_ratio_20d": null,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2969,6 +3259,16 @@
|
|||||||
"volume_ratio_20d": 0.77,
|
"volume_ratio_20d": 0.77,
|
||||||
"market_cap_str": "$1.20T",
|
"market_cap_str": "$1.20T",
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 59621.58,
|
||||||
|
"change_pct": 0.14,
|
||||||
|
"change_bps": 14,
|
||||||
|
"volume_ratio_20d": 0.89,
|
||||||
|
"market_cap_str": "$1.20T",
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3246,6 +3546,16 @@
|
|||||||
"volume_ratio_20d": 0.78,
|
"volume_ratio_20d": 0.78,
|
||||||
"market_cap_str": "$203B",
|
"market_cap_str": "$203B",
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 1661.65,
|
||||||
|
"change_pct": -0.09,
|
||||||
|
"change_bps": -9,
|
||||||
|
"volume_ratio_20d": 0.92,
|
||||||
|
"market_cap_str": "$204B",
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3523,6 +3833,16 @@
|
|||||||
"volume_ratio_20d": 0.76,
|
"volume_ratio_20d": 0.76,
|
||||||
"market_cap_str": "$43B",
|
"market_cap_str": "$43B",
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 72.41,
|
||||||
|
"change_pct": -0.08,
|
||||||
|
"change_bps": -8,
|
||||||
|
"volume_ratio_20d": 0.77,
|
||||||
|
"market_cap_str": "$43B",
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3701,6 +4021,26 @@
|
|||||||
"volume_ratio_20d": 0.53,
|
"volume_ratio_20d": 0.53,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 103.91,
|
||||||
|
"change_pct": -2.92,
|
||||||
|
"change_bps": -292,
|
||||||
|
"volume_ratio_20d": 1.16,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 109.59,
|
||||||
|
"change_pct": 5.47,
|
||||||
|
"change_bps": 547,
|
||||||
|
"volume_ratio_20d": 0.99,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3879,6 +4219,26 @@
|
|||||||
"volume_ratio_20d": 0.62,
|
"volume_ratio_20d": 0.62,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 239.7,
|
||||||
|
"change_pct": 0.67,
|
||||||
|
"change_bps": 67,
|
||||||
|
"volume_ratio_20d": 1.02,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 253.43,
|
||||||
|
"change_pct": 5.73,
|
||||||
|
"change_bps": 573,
|
||||||
|
"volume_ratio_20d": 0.81,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -4057,6 +4417,26 @@
|
|||||||
"volume_ratio_20d": 0.53,
|
"volume_ratio_20d": 0.53,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 1394.32,
|
||||||
|
"change_pct": 0.14,
|
||||||
|
"change_bps": 14,
|
||||||
|
"volume_ratio_20d": 1.61,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 1376.94,
|
||||||
|
"change_pct": -1.25,
|
||||||
|
"change_bps": -125,
|
||||||
|
"volume_ratio_20d": 1.29,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -4235,6 +4615,26 @@
|
|||||||
"volume_ratio_20d": null,
|
"volume_ratio_20d": null,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 4.92,
|
||||||
|
"change_pct": -0.26,
|
||||||
|
"change_bps": -26,
|
||||||
|
"volume_ratio_20d": null,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 5.05,
|
||||||
|
"change_pct": 2.66,
|
||||||
|
"change_bps": 266,
|
||||||
|
"volume_ratio_20d": null,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -4413,8 +4813,30 @@
|
|||||||
"volume_ratio_20d": 0.55,
|
"volume_ratio_20d": 0.55,
|
||||||
"market_cap_str": null,
|
"market_cap_str": null,
|
||||||
"feed_source": "yahoo_v8_json"
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-11-30": {
|
||||||
|
"date_utc": "2026-11-30",
|
||||||
|
"observation_date_utc": "2026-11-30",
|
||||||
|
"close_usd": 1163.8,
|
||||||
|
"change_pct": -0.27,
|
||||||
|
"change_bps": -27,
|
||||||
|
"volume_ratio_20d": 1.27,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
|
},
|
||||||
|
"2026-12-01": {
|
||||||
|
"date_utc": "2026-12-01",
|
||||||
|
"observation_date_utc": "2026-12-01",
|
||||||
|
"close_usd": 1166.45,
|
||||||
|
"change_pct": 0.23,
|
||||||
|
"change_bps": 23,
|
||||||
|
"volume_ratio_20d": 0.77,
|
||||||
|
"market_cap_str": null,
|
||||||
|
"feed_source": "yahoo_v8_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"version": "2.17.1",
|
||||||
|
"synthetic_data_eliminated": true
|
||||||
}
|
}
|
||||||
@@ -160,6 +160,24 @@ def prepare_and_verify_deploy_scripts(
|
|||||||
if "generate_db_json.py" not in sync_txt_cur or "config.default.js" not in sync_txt_cur:
|
if "generate_db_json.py" not in sync_txt_cur or "config.default.js" not in sync_txt_cur:
|
||||||
gate_d4_ok = False
|
gate_d4_ok = False
|
||||||
errors.append("Gate D4: haiperdohp-jemaytreeah untracked artifact hydration missing in deploy/sync-vps-repos.sh")
|
errors.append("Gate D4: haiperdohp-jemaytreeah untracked artifact hydration missing in deploy/sync-vps-repos.sh")
|
||||||
|
if (
|
||||||
|
"--snapshot-telemetry" not in sync_txt_cur
|
||||||
|
or "--reconcile-telemetry" not in sync_txt_cur
|
||||||
|
or "prev_head=" not in sync_txt_cur
|
||||||
|
):
|
||||||
|
gate_d4_ok = False
|
||||||
|
errors.append(
|
||||||
|
"Gate D4: Lossless VPS telemetry snapshot/reconciliation (--snapshot-telemetry / --reconcile-telemetry) or prev_head missing in deploy/sync-vps-repos.sh"
|
||||||
|
)
|
||||||
|
if (
|
||||||
|
"closeups_sync --check" not in sync_txt_cur
|
||||||
|
or "readme_sync --hooks-only" not in sync_txt_cur
|
||||||
|
or "readme_sync --install-hooks" in sync_txt_cur
|
||||||
|
):
|
||||||
|
gate_d4_ok = False
|
||||||
|
errors.append(
|
||||||
|
"Gate D4: deploy/sync-vps-repos.sh must use read-only 'closeups_sync --check' and 'readme_sync --hooks-only' so tracked PNGs and README.md files are never dirtied on the VPS"
|
||||||
|
)
|
||||||
|
|
||||||
# Gate DEPLOY-GATE-D05.TAR_EXCLUSION: Cold *.tar.gz Archive Exclusion & Explicit rm -f Safety in sync-vps-repos.sh
|
# Gate DEPLOY-GATE-D05.TAR_EXCLUSION: Cold *.tar.gz Archive Exclusion & Explicit rm -f Safety in sync-vps-repos.sh
|
||||||
gate_d5_ok = (
|
gate_d5_ok = (
|
||||||
|
|||||||
@@ -419,8 +419,6 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
|
|||||||
"layout_engine": "bounded_box_v2_plan61",
|
"layout_engine": "bounded_box_v2_plan61",
|
||||||
"surfaces": {k: v["ui_structure_sha256"] for k, v in sorted(surface_sigs.items())},
|
"surfaces": {k: v["ui_structure_sha256"] for k, v in sorted(surface_sigs.items())},
|
||||||
"js_surfaces": {k: v["js_ui_sha256"] for k, v in sorted(js_sigs.items())},
|
"js_surfaces": {k: v["js_ui_sha256"] for k, v in sorted(js_sigs.items())},
|
||||||
"total_bars": total_bars,
|
|
||||||
"db_entries_count": db_entries_count,
|
|
||||||
"mcp_tools": eng_counts.get("mcp_tools", 20),
|
"mcp_tools": eng_counts.get("mcp_tools", 20),
|
||||||
},
|
},
|
||||||
sort_keys=True,
|
sort_keys=True,
|
||||||
@@ -839,7 +837,7 @@ def render_all_quadrant_closeups(
|
|||||||
_draw_chamfer_box(d, (24, 46, 334, 240), WELL, CYAN, chamfer=8, pip=CYAN)
|
_draw_chamfer_box(d, (24, 46, 334, 240), WELL, CYAN, chamfer=8, pip=CYAN)
|
||||||
d.text((38, 56), "TS TypeScript (Strict ESM AST)", font=f_mono_b, fill=CYAN)
|
d.text((38, 56), "TS TypeScript (Strict ESM AST)", font=f_mono_b, fill=CYAN)
|
||||||
ts_lines = [
|
ts_lines = [
|
||||||
"export const charAq = (c: string): number =>",
|
"export const charAq = (c: string) =>",
|
||||||
" /[0-9]/.test(c) ? c.charCodeAt(0) - 48",
|
" /[0-9]/.test(c) ? c.charCodeAt(0) - 48",
|
||||||
" : c.charCodeAt(0) - 55;",
|
" : c.charCodeAt(0) - 55;",
|
||||||
"",
|
"",
|
||||||
@@ -850,7 +848,8 @@ def render_all_quadrant_closeups(
|
|||||||
]
|
]
|
||||||
for idx, ln in enumerate(ts_lines):
|
for idx, ln in enumerate(ts_lines):
|
||||||
col = EMERALD if ln.startswith("//") else (TEXT if "=>" not in ln else GOLD)
|
col = EMERALD if ln.startswith("//") else (TEXT if "=>" not in ln else GOLD)
|
||||||
d.text((38, 84 + idx * 18), ln, font=f_mono_xs, fill=col)
|
f_ts, _, _ = _fit_font_for_width(d, ln, 286, preferred_size=10, min_size=7)
|
||||||
|
d.text((38, 84 + idx * 18), ln, font=f_ts, fill=col)
|
||||||
_draw_chamfer_box(d, (346, 46, 656, 240), WELL, ROSE, chamfer=8, pip=ROSE)
|
_draw_chamfer_box(d, (346, 46, 656, 240), WELL, ROSE, chamfer=8, pip=ROSE)
|
||||||
d.text((360, 56), "Rs Rust (Zero-Alloc Iterator AST)", font=f_mono_b, fill=ROSE)
|
d.text((360, 56), "Rs Rust (Zero-Alloc Iterator AST)", font=f_mono_b, fill=ROSE)
|
||||||
rs_lines = [
|
rs_lines = [
|
||||||
@@ -865,7 +864,8 @@ def render_all_quadrant_closeups(
|
|||||||
]
|
]
|
||||||
for idx, ln in enumerate(rs_lines):
|
for idx, ln in enumerate(rs_lines):
|
||||||
col = EMERALD if ln.startswith("//") else TEXT
|
col = EMERALD if ln.startswith("//") else TEXT
|
||||||
d.text((360, 84 + idx * 18), ln, font=f_mono_xs, fill=col)
|
f_rs, _, _ = _fit_font_for_width(d, ln, 286, preferred_size=10, min_size=7)
|
||||||
|
d.text((360, 84 + idx * 18), ln, font=f_rs, fill=col)
|
||||||
im.save(out_dir / "quadrant-3-tab-3-math-ts-rust.png", "PNG")
|
im.save(out_dir / "quadrant-3-tab-3-math-ts-rust.png", "PNG")
|
||||||
tracked_draws["quadrant-3-tab-3-math-ts-rust.png"] = d
|
tracked_draws["quadrant-3-tab-3-math-ts-rust.png"] = d
|
||||||
|
|
||||||
|
|||||||
@@ -502,19 +502,26 @@ REPO_NAME="$(basename "${REPO_ROOT}")"
|
|||||||
WS_ROOT="$(cd "${REPO_ROOT}/.." && pwd)"
|
WS_ROOT="$(cd "${REPO_ROOT}/.." && pwd)"
|
||||||
CORE_SRC="${WS_ROOT}/hyperstitionstudio-core/src"
|
CORE_SRC="${WS_ROOT}/hyperstitionstudio-core/src"
|
||||||
|
|
||||||
|
PYTHON_BIN="python3"
|
||||||
|
if [[ -x "${WS_ROOT}/.venv/bin/python3" ]]; then
|
||||||
|
PYTHON_BIN="${WS_ROOT}/.venv/bin/python3"
|
||||||
|
elif [[ -x "${WS_ROOT}/hyperstitionstudio-core/.venv/bin/python3" ]]; then
|
||||||
|
PYTHON_BIN="${WS_ROOT}/hyperstitionstudio-core/.venv/bin/python3"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -d "${CORE_SRC}" ]]; then
|
if [[ -d "${CORE_SRC}" ]]; then
|
||||||
export PYTHONPATH="${CORE_SRC}${PYTHONPATH:+:${PYTHONPATH}}"
|
export PYTHONPATH="${CORE_SRC}${PYTHONPATH:+:${PYTHONPATH}}"
|
||||||
if [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then
|
if [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then
|
||||||
python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${WS_ROOT}" --stage
|
"${PYTHON_BIN}" -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${WS_ROOT}" --stage
|
||||||
else
|
else
|
||||||
python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${WS_ROOT}"
|
"${PYTHON_BIN}" -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${WS_ROOT}"
|
||||||
fi
|
fi
|
||||||
python3 -m hyperstitionstud_io.publishing.closeups_sync
|
"${PYTHON_BIN}" -m hyperstitionstud_io.publishing.closeups_sync
|
||||||
if [[ -d "${WS_ROOT}/hyperstitionstudio-core/site/assets/closeups" ]] && [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then
|
if [[ -d "${WS_ROOT}/hyperstitionstudio-core/site/assets/closeups" ]] && [[ "${REPO_NAME}" == "hyperstitionstudio-core" ]]; then
|
||||||
git -C "${REPO_ROOT}" add site/assets/closeups/
|
git -C "${REPO_ROOT}" add site/assets/closeups/
|
||||||
fi
|
fi
|
||||||
python3 -m hyperstitionstud_io.publishing.readme_sync --repo "${REPO_NAME}" --stage
|
"${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --repo "${REPO_NAME}" --stage
|
||||||
python3 -m hyperstitionstud_io.ci.shorthand_lint --staged-diff --repo "${REPO_ROOT}"
|
"${PYTHON_BIN}" -m hyperstitionstud_io.ci.shorthand_lint --staged-diff --repo "${REPO_ROOT}"
|
||||||
fi
|
fi
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import datetime
|
|||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
@@ -166,12 +167,37 @@ _EQ_CLOSURES_333: dict[int, list[str]] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def _fetch_yahoo_chart(symbol: str, timeout: float = 6.0) -> dict[str, Any] | None:
|
MIN_SCOPE_DATE_UTC = "2026-11-01"
|
||||||
"""Source 1: Keyless Yahoo Finance v8 Chart JSON API (using actual prior trading day close)."""
|
|
||||||
|
|
||||||
|
def latest_completed_closing_bell_date_utc(now_utc: datetime.datetime | None = None) -> str:
|
||||||
|
"""
|
||||||
|
Return the latest UTC calendar date `YYYY-MM-DD` whose 16:00 EST / 21:00 UTC
|
||||||
|
US closing bell has completed. Before 21:00 UTC on day T, the latest completed
|
||||||
|
closing-bell session date is T - 1 day; at or after 21:00 UTC on day T, it is T.
|
||||||
|
"""
|
||||||
|
dt = now_utc or datetime.datetime.now(datetime.timezone.utc)
|
||||||
|
if dt.hour < 21:
|
||||||
|
dt = dt - datetime.timedelta(days=1)
|
||||||
|
return dt.strftime("%Y-%m-%d")
|
||||||
|
|
||||||
|
|
||||||
|
def _fetch_yahoo_chart_series(
|
||||||
|
symbol: str,
|
||||||
|
min_date_utc: str | None = MIN_SCOPE_DATE_UTC,
|
||||||
|
max_date_utc: str | None = None,
|
||||||
|
timeout: float = 6.0,
|
||||||
|
) -> dict[str, dict[str, Any]]:
|
||||||
|
"""
|
||||||
|
Fetch the 3-month daily bar series from Yahoo Finance v8 Chart JSON API
|
||||||
|
(`?range=3mo&interval=1d`) so early-November bars always have a full 20-trading-day
|
||||||
|
trailing volume lookback window, while filtering emitted bars strictly to
|
||||||
|
`min_date_utc <= obs_date <= max_date_utc` (pre-Nov 1 out of scope).
|
||||||
|
"""
|
||||||
if symbol == "ANTHR-PVT":
|
if symbol == "ANTHR-PVT":
|
||||||
return None
|
return {}
|
||||||
enc_sym = urllib.parse.quote(symbol, safe="")
|
enc_sym = urllib.parse.quote(symbol, safe="")
|
||||||
url = f"https://query1.finance.yahoo.com/v8/finance/chart/{enc_sym}?range=1mo&interval=1d"
|
url = f"https://query1.finance.yahoo.com/v8/finance/chart/{enc_sym}?range=3mo&interval=1d"
|
||||||
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT, "Accept": "application/json"})
|
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT, "Accept": "application/json"})
|
||||||
from hyperstitionstud_io.security import safe_urlopen
|
from hyperstitionstud_io.security import safe_urlopen
|
||||||
|
|
||||||
@@ -179,7 +205,7 @@ def _fetch_yahoo_chart(symbol: str, timeout: float = 6.0) -> dict[str, Any] | No
|
|||||||
data = json.loads(resp.read().decode("utf-8"))
|
data = json.loads(resp.read().decode("utf-8"))
|
||||||
res_list = (data.get("chart") or {}).get("result") or []
|
res_list = (data.get("chart") or {}).get("result") or []
|
||||||
if not res_list:
|
if not res_list:
|
||||||
return None
|
return {}
|
||||||
ts_list = res_list[0].get("timestamp") or []
|
ts_list = res_list[0].get("timestamp") or []
|
||||||
quotes = (((res_list[0].get("indicators") or {}).get("quote") or [{}])[0])
|
quotes = (((res_list[0].get("indicators") or {}).get("quote") or [{}])[0])
|
||||||
raw_closes = quotes.get("close") or []
|
raw_closes = quotes.get("close") or []
|
||||||
@@ -188,75 +214,130 @@ def _fetch_yahoo_chart(symbol: str, timeout: float = 6.0) -> dict[str, Any] | No
|
|||||||
valid_pairs = [
|
valid_pairs = [
|
||||||
(ts_list[i], float(raw_closes[i]), float(raw_vols[i]) if i < len(raw_vols) and raw_vols[i] is not None else None)
|
(ts_list[i], float(raw_closes[i]), float(raw_vols[i]) if i < len(raw_vols) and raw_vols[i] is not None else None)
|
||||||
for i in range(min(len(ts_list), len(raw_closes)))
|
for i in range(min(len(ts_list), len(raw_closes)))
|
||||||
if raw_closes[i] is not None
|
if raw_closes[i] is not None and float(raw_closes[i]) > 0
|
||||||
]
|
]
|
||||||
if not valid_pairs:
|
if not valid_pairs:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
out: dict[str, dict[str, Any]] = {}
|
||||||
|
for idx, (ts_val, close_usd, vol_val) in enumerate(valid_pairs):
|
||||||
|
obs_date = datetime.datetime.fromtimestamp(ts_val, datetime.timezone.utc).strftime("%Y-%m-%d")
|
||||||
|
if min_date_utc and obs_date < min_date_utc:
|
||||||
|
continue
|
||||||
|
if max_date_utc and obs_date > max_date_utc:
|
||||||
|
continue
|
||||||
|
prev_close = valid_pairs[idx - 1][1] if idx >= 1 else None
|
||||||
|
if prev_close and prev_close > 0:
|
||||||
|
chg_pct: float | None = round((close_usd - prev_close) / prev_close * 100.0, 2)
|
||||||
|
chg_bps: int | None = int(round(chg_pct * 100.0))
|
||||||
|
else:
|
||||||
|
chg_pct = None
|
||||||
|
chg_bps = None
|
||||||
|
|
||||||
|
vol_ratio: float | None = None
|
||||||
|
prior_vols = [x[2] for x in valid_pairs[max(0, idx - 20):idx] if x[2] is not None and x[2] > 0]
|
||||||
|
if vol_val is not None and vol_val > 0 and prior_vols:
|
||||||
|
avg_v = sum(prior_vols) / len(prior_vols)
|
||||||
|
if avg_v > 0:
|
||||||
|
vol_ratio = round(vol_val / avg_v, 2)
|
||||||
|
|
||||||
|
out[obs_date] = {
|
||||||
|
"date_utc": obs_date,
|
||||||
|
"observation_date_utc": obs_date,
|
||||||
|
"close_usd": round(close_usd, 2),
|
||||||
|
"change_pct": chg_pct,
|
||||||
|
"change_bps": chg_bps,
|
||||||
|
"volume_ratio_20d": vol_ratio,
|
||||||
|
"market_cap_str": None,
|
||||||
|
"feed_source": "yahoo_v8_json",
|
||||||
|
}
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def _fetch_yahoo_chart(symbol: str, timeout: float = 6.0) -> dict[str, Any] | None:
|
||||||
|
"""Source 1: Keyless Yahoo Finance v8 Chart JSON API (using latest completed closing-bell bar)."""
|
||||||
|
series = _fetch_yahoo_chart_series(
|
||||||
|
symbol,
|
||||||
|
min_date_utc=MIN_SCOPE_DATE_UTC,
|
||||||
|
max_date_utc=latest_completed_closing_bell_date_utc(),
|
||||||
|
timeout=timeout,
|
||||||
|
)
|
||||||
|
if not series:
|
||||||
return None
|
return None
|
||||||
|
latest_dt = sorted(series.keys())[-1]
|
||||||
last_ts, close_usd, last_vol = valid_pairs[-1]
|
return dict(series[latest_dt])
|
||||||
if close_usd <= 0:
|
|
||||||
return None
|
|
||||||
obs_date = datetime.datetime.fromtimestamp(last_ts, datetime.timezone.utc).strftime("%Y-%m-%d")
|
|
||||||
|
|
||||||
prev_close = valid_pairs[-2][1] if len(valid_pairs) >= 2 else None
|
|
||||||
if prev_close and prev_close > 0:
|
|
||||||
chg_pct: float | None = round((close_usd - prev_close) / prev_close * 100.0, 2)
|
|
||||||
chg_bps: int | None = int(round(chg_pct * 100.0))
|
|
||||||
else:
|
|
||||||
chg_pct = None
|
|
||||||
chg_bps = None
|
|
||||||
|
|
||||||
vol_ratio: float | None = None
|
|
||||||
prior_vols = [x[2] for x in valid_pairs[:-1][-20:] if x[2] is not None and x[2] > 0]
|
|
||||||
if last_vol is not None and last_vol > 0 and prior_vols:
|
|
||||||
avg_v = sum(prior_vols) / len(prior_vols)
|
|
||||||
if avg_v > 0:
|
|
||||||
vol_ratio = round(last_vol / avg_v, 2)
|
|
||||||
|
|
||||||
return {
|
|
||||||
"observation_date_utc": obs_date,
|
|
||||||
"close_usd": round(close_usd, 2),
|
|
||||||
"change_pct": chg_pct,
|
|
||||||
"change_bps": chg_bps,
|
|
||||||
"volume_ratio_20d": vol_ratio,
|
|
||||||
"market_cap_str": None,
|
|
||||||
"feed_source": "yahoo_v8_json",
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def _fetch_stooq_csv(symbol: str, timeout: float = 6.0) -> dict[str, Any] | None:
|
def _fetch_stooq_csv_series(
|
||||||
"""Source 2: Keyless Stooq Daily OHLCV CSV Fallback."""
|
symbol: str,
|
||||||
|
min_date_utc: str | None = MIN_SCOPE_DATE_UTC,
|
||||||
|
max_date_utc: str | None = None,
|
||||||
|
timeout: float = 6.0,
|
||||||
|
) -> dict[str, dict[str, Any]]:
|
||||||
|
"""Source 2: Keyless Stooq Daily OHLCV CSV Series Fallback (with 75-row lookback for 20d volume)."""
|
||||||
stooq_sym = _STOOQ_MAP.get(symbol)
|
stooq_sym = _STOOQ_MAP.get(symbol)
|
||||||
if not stooq_sym:
|
if not stooq_sym:
|
||||||
return None
|
return {}
|
||||||
url = f"https://stooq.com/q/d/l/?s={stooq_sym}&i=d"
|
url = f"https://stooq.com/q/d/l/?s={stooq_sym}&i=d"
|
||||||
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT})
|
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT})
|
||||||
from hyperstitionstud_io.security import safe_urlopen
|
from hyperstitionstud_io.security import safe_urlopen
|
||||||
|
|
||||||
with safe_urlopen(req, timeout=timeout) as resp:
|
with safe_urlopen(req, timeout=timeout) as resp:
|
||||||
text = resp.read().decode("utf-8", errors="replace")
|
text = resp.read().decode("utf-8", errors="replace")
|
||||||
rows = list(csv.DictReader(io.StringIO(text)))
|
raw_rows = [
|
||||||
if not rows or "Close" not in rows[-1] or rows[-1]["Close"] in ("", "N/D", None):
|
r for r in csv.DictReader(io.StringIO(text))
|
||||||
|
if r.get("Date") and r.get("Close") not in ("", "N/D", None)
|
||||||
|
]
|
||||||
|
if not raw_rows:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
out: dict[str, dict[str, Any]] = {}
|
||||||
|
start_idx = max(0, len(raw_rows) - 75)
|
||||||
|
for idx in range(start_idx, len(raw_rows)):
|
||||||
|
row = raw_rows[idx]
|
||||||
|
obs_date = str(row["Date"])
|
||||||
|
if min_date_utc and obs_date < min_date_utc:
|
||||||
|
continue
|
||||||
|
if max_date_utc and obs_date > max_date_utc:
|
||||||
|
continue
|
||||||
|
close_usd = float(row["Close"])
|
||||||
|
if close_usd <= 0:
|
||||||
|
continue
|
||||||
|
prev_close = float(raw_rows[idx - 1]["Close"]) if idx >= 1 else None
|
||||||
|
chg_pct = round((close_usd - prev_close) / prev_close * 100.0, 2) if (prev_close and prev_close > 0) else None
|
||||||
|
chg_bps = int(round(chg_pct * 100.0)) if chg_pct is not None else None
|
||||||
|
prior_vols = [
|
||||||
|
float(r["Volume"])
|
||||||
|
for r in raw_rows[max(0, idx - 20):idx]
|
||||||
|
if r.get("Volume") and str(r["Volume"]).replace(".", "").isdigit() and float(r["Volume"]) > 0
|
||||||
|
]
|
||||||
|
cur_vol_s = row.get("Volume")
|
||||||
|
cur_vol = float(cur_vol_s) if (cur_vol_s and str(cur_vol_s).replace(".", "").isdigit()) else None
|
||||||
|
vol_ratio = round(cur_vol / (sum(prior_vols) / len(prior_vols)), 2) if (cur_vol and prior_vols) else None
|
||||||
|
out[obs_date] = {
|
||||||
|
"date_utc": obs_date,
|
||||||
|
"observation_date_utc": obs_date,
|
||||||
|
"close_usd": round(close_usd, 2),
|
||||||
|
"change_pct": chg_pct,
|
||||||
|
"change_bps": chg_bps,
|
||||||
|
"volume_ratio_20d": vol_ratio,
|
||||||
|
"market_cap_str": None,
|
||||||
|
"feed_source": "stooq_csv",
|
||||||
|
}
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def _fetch_stooq_csv(symbol: str, timeout: float = 6.0) -> dict[str, Any] | None:
|
||||||
|
"""Source 2: Keyless Stooq Daily OHLCV CSV Fallback (latest completed closing-bell bar)."""
|
||||||
|
series = _fetch_stooq_csv_series(
|
||||||
|
symbol,
|
||||||
|
max_date_utc=latest_completed_closing_bell_date_utc(),
|
||||||
|
timeout=timeout,
|
||||||
|
)
|
||||||
|
if not series:
|
||||||
return None
|
return None
|
||||||
close_usd = float(rows[-1]["Close"])
|
latest_dt = sorted(series.keys())[-1]
|
||||||
prev_close = float(rows[-2]["Close"]) if len(rows) >= 2 and rows[-2].get("Close") not in ("", "N/D", None) else None
|
return dict(series[latest_dt])
|
||||||
chg_pct = round((close_usd - prev_close) / prev_close * 100.0, 2) if (prev_close and prev_close > 0) else None
|
|
||||||
chg_bps = int(round(chg_pct * 100.0)) if chg_pct is not None else None
|
|
||||||
vols = [float(r["Volume"]) for r in rows[-21:] if r.get("Volume") and r["Volume"].replace(".", "").isdigit()]
|
|
||||||
vol_ratio = None
|
|
||||||
if len(vols) >= 2:
|
|
||||||
avg_v = sum(vols[:-1]) / max(1, len(vols[:-1]))
|
|
||||||
if avg_v > 0:
|
|
||||||
vol_ratio = round(vols[-1] / avg_v, 2)
|
|
||||||
return {
|
|
||||||
"observation_date_utc": rows[-1].get("Date"),
|
|
||||||
"close_usd": round(close_usd, 2),
|
|
||||||
"change_pct": chg_pct,
|
|
||||||
"change_bps": chg_bps,
|
|
||||||
"volume_ratio_20d": vol_ratio,
|
|
||||||
"market_cap_str": None,
|
|
||||||
"feed_source": "stooq_csv",
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def _fetch_coingecko_crypto(timeout: float = 6.0) -> dict[str, dict[str, Any]]:
|
def _fetch_coingecko_crypto(timeout: float = 6.0) -> dict[str, dict[str, Any]]:
|
||||||
@@ -681,11 +762,19 @@ def build_financial_quant_harvest(
|
|||||||
receipt = guard.audit_receipt()
|
receipt = guard.audit_receipt()
|
||||||
available_count = sum(1 for x in instruments_out if x.get("data_available"))
|
available_count = sum(1 for x in instruments_out if x.get("data_available"))
|
||||||
unavailable_syms = [x["symbol"] for x in instruments_out if not x.get("data_available")]
|
unavailable_syms = [x["symbol"] for x in instruments_out if not x.get("data_available")]
|
||||||
|
observed_dates = sorted(
|
||||||
|
{
|
||||||
|
str(x["observation_date_utc"])
|
||||||
|
for x in instruments_out
|
||||||
|
if x.get("data_available") and x.get("observation_date_utc")
|
||||||
|
}
|
||||||
|
)
|
||||||
|
target_dt_utc = observed_dates[-1] if observed_dates else latest_completed_closing_bell_date_utc()
|
||||||
payload: dict[str, Any] = {
|
payload: dict[str, Any] = {
|
||||||
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
|
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
|
||||||
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
|
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
|
||||||
"version": "2.17.1",
|
"version": "2.17.1",
|
||||||
"target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
|
"target_date_utc": target_dt_utc,
|
||||||
"harvest_mode": harvest_mode,
|
"harvest_mode": harvest_mode,
|
||||||
"synthetic_data_eliminated": True,
|
"synthetic_data_eliminated": True,
|
||||||
"regime_summary": {
|
"regime_summary": {
|
||||||
@@ -754,11 +843,13 @@ def update_real_market_history_cache(
|
|||||||
history_path: str | Path | None = None,
|
history_path: str | Path | None = None,
|
||||||
new_bars_by_symbol: dict[str, dict[str, dict[str, Any]]] | None = None,
|
new_bars_by_symbol: dict[str, dict[str, dict[str, Any]]] | None = None,
|
||||||
allow_live_network: bool = False,
|
allow_live_network: bool = False,
|
||||||
|
max_date_utc: str | None = None,
|
||||||
) -> dict[str, Any]:
|
) -> dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
Merge new real daily exchange bars into `site/quant/real-market-history.json`.
|
Merge new real daily exchange bars into `site/quant/real-market-history.json`.
|
||||||
Enforces strict Zero-Synthetic-Data honesty: `ANTHR-PVT` always remains `bars_by_date: {}`,
|
Enforces strict Zero-Synthetic-Data honesty: `ANTHR-PVT` always remains `bars_by_date: {}`,
|
||||||
`data_available: False`, and closed weekend/holiday dates are never fabricated.
|
`data_available: False`, closed weekend/holiday dates are never fabricated, and incomplete
|
||||||
|
intraday candles from dates after `latest_completed_closing_bell_date_utc()` are excluded.
|
||||||
"""
|
"""
|
||||||
from hyperstitionstud_io import __version__ as CURRENT_VERSION
|
from hyperstitionstud_io import __version__ as CURRENT_VERSION
|
||||||
|
|
||||||
@@ -769,6 +860,14 @@ def update_real_market_history_cache(
|
|||||||
else:
|
else:
|
||||||
doc = {"version": CURRENT_VERSION, "synthetic_data_eliminated": True, "instruments": {}}
|
doc = {"version": CURRENT_VERSION, "synthetic_data_eliminated": True, "instruments": {}}
|
||||||
|
|
||||||
|
effective_max_date = max_date_utc or (None if new_bars_by_symbol else latest_completed_closing_bell_date_utc())
|
||||||
|
cg_quotes: dict[str, dict[str, Any]] = {}
|
||||||
|
if allow_live_network and not new_bars_by_symbol:
|
||||||
|
try:
|
||||||
|
cg_quotes = _fetch_coingecko_crypto()
|
||||||
|
except Exception:
|
||||||
|
cg_quotes = {}
|
||||||
|
|
||||||
inst_map = doc.setdefault("instruments", {})
|
inst_map = doc.setdefault("instruments", {})
|
||||||
appended_count = 0
|
appended_count = 0
|
||||||
|
|
||||||
@@ -785,21 +884,61 @@ def update_real_market_history_cache(
|
|||||||
entry = inst_map.setdefault(sym, {"symbol": sym, "data_available": True, "status": "ok", "bars_by_date": {}})
|
entry = inst_map.setdefault(sym, {"symbol": sym, "data_available": True, "status": "ok", "bars_by_date": {}})
|
||||||
bars_by_dt = entry.setdefault("bars_by_date", {})
|
bars_by_dt = entry.setdefault("bars_by_date", {})
|
||||||
|
|
||||||
|
if effective_max_date:
|
||||||
|
for stale_dt in [
|
||||||
|
d for d in list(bars_by_dt.keys()) if d < MIN_SCOPE_DATE_UTC or d > effective_max_date
|
||||||
|
]:
|
||||||
|
del bars_by_dt[stale_dt]
|
||||||
|
else:
|
||||||
|
for stale_dt in [d for d in list(bars_by_dt.keys()) if d < MIN_SCOPE_DATE_UTC]:
|
||||||
|
del bars_by_dt[stale_dt]
|
||||||
|
|
||||||
if new_bars_by_symbol and sym in new_bars_by_symbol:
|
if new_bars_by_symbol and sym in new_bars_by_symbol:
|
||||||
for dt_s, b_obj in new_bars_by_symbol[sym].items():
|
for dt_s, b_obj in new_bars_by_symbol[sym].items():
|
||||||
|
if dt_s < MIN_SCOPE_DATE_UTC:
|
||||||
|
continue
|
||||||
|
if effective_max_date and dt_s > effective_max_date:
|
||||||
|
continue
|
||||||
if b_obj and b_obj.get("close_usd") is not None:
|
if b_obj and b_obj.get("close_usd") is not None:
|
||||||
bars_by_dt[dt_s] = b_obj
|
bars_by_dt[dt_s] = b_obj
|
||||||
appended_count += 1
|
appended_count += 1
|
||||||
elif allow_live_network:
|
elif allow_live_network:
|
||||||
try:
|
try:
|
||||||
live_b = _fetch_yahoo_chart(sym) or _fetch_stooq_csv(sym)
|
series = _fetch_yahoo_chart_series(
|
||||||
if live_b and live_b.get("observation_date_utc") and live_b.get("close_usd") is not None:
|
sym, min_date_utc=MIN_SCOPE_DATE_UTC, max_date_utc=effective_max_date
|
||||||
dt_s = live_b["observation_date_utc"]
|
) or _fetch_stooq_csv_series(
|
||||||
bars_by_dt[dt_s] = live_b
|
sym, min_date_utc=MIN_SCOPE_DATE_UTC, max_date_utc=effective_max_date
|
||||||
appended_count += 1
|
)
|
||||||
|
for dt_s, b_obj in sorted(series.items()):
|
||||||
|
if dt_s < MIN_SCOPE_DATE_UTC:
|
||||||
|
continue
|
||||||
|
if not b_obj or b_obj.get("close_usd") is None:
|
||||||
|
continue
|
||||||
|
prev_bar = bars_by_dt.get(dt_s)
|
||||||
|
if prev_bar is None or prev_bar.get("close_usd") is None:
|
||||||
|
if sym in cg_quotes and cg_quotes[sym].get("market_cap_str") and dt_s == effective_max_date:
|
||||||
|
b_obj = dict(b_obj)
|
||||||
|
b_obj["market_cap_str"] = cg_quotes[sym]["market_cap_str"]
|
||||||
|
bars_by_dt[dt_s] = b_obj
|
||||||
|
appended_count += 1
|
||||||
|
elif dt_s == effective_max_date:
|
||||||
|
merged_b = dict(b_obj)
|
||||||
|
if prev_bar.get("market_cap_str"):
|
||||||
|
merged_b["market_cap_str"] = prev_bar["market_cap_str"]
|
||||||
|
elif sym in cg_quotes and cg_quotes[sym].get("market_cap_str"):
|
||||||
|
merged_b["market_cap_str"] = cg_quotes[sym]["market_cap_str"]
|
||||||
|
bars_by_dt[dt_s] = merged_b
|
||||||
|
else:
|
||||||
|
if prev_bar.get("volume_ratio_20d") is None and b_obj.get("volume_ratio_20d") is not None:
|
||||||
|
prev_bar["volume_ratio_20d"] = b_obj["volume_ratio_20d"]
|
||||||
|
if prev_bar.get("change_pct") is None and b_obj.get("change_pct") is not None:
|
||||||
|
prev_bar["change_pct"] = b_obj["change_pct"]
|
||||||
|
prev_bar["change_bps"] = b_obj["change_bps"]
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
entry["bars_by_date"] = {k: bars_by_dt[k] for k in sorted(bars_by_dt.keys())}
|
||||||
|
|
||||||
doc["version"] = CURRENT_VERSION
|
doc["version"] = CURRENT_VERSION
|
||||||
doc["synthetic_data_eliminated"] = True
|
doc["synthetic_data_eliminated"] = True
|
||||||
h_path.parent.mkdir(parents=True, exist_ok=True)
|
h_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
@@ -807,17 +946,282 @@ def update_real_market_history_cache(
|
|||||||
return {"history_path": str(h_path), "appended_bars_count": appended_count, "synthetic_data_eliminated": True}
|
return {"history_path": str(h_path), "appended_bars_count": appended_count, "synthetic_data_eliminated": True}
|
||||||
|
|
||||||
|
|
||||||
|
_TELEMETRY_SNAPSHOT_FILES: tuple[str, ...] = (
|
||||||
|
"real-market-history.json",
|
||||||
|
"real-macro-indicators.json",
|
||||||
|
"daily-brief-state.json",
|
||||||
|
"financial-aq-harvest-latest.json",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def _excavate_git_json_versions(
|
||||||
|
repo_dir: Path,
|
||||||
|
rel_path: str,
|
||||||
|
max_commits: int = 35,
|
||||||
|
) -> list[dict[str, Any]]:
|
||||||
|
"""
|
||||||
|
Excavate valid JSON versions of `rel_path` from all Git stashes (`stash@{0..N}` and
|
||||||
|
untracked stash parents `stash@{i}^3`) and recent Git commits (`git log --all`).
|
||||||
|
"""
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
if not (repo_dir / ".git").exists():
|
||||||
|
return []
|
||||||
|
revs: list[str] = []
|
||||||
|
try:
|
||||||
|
stash_out = subprocess.run(
|
||||||
|
["git", "-C", str(repo_dir), "stash", "list", "--format=%gd"],
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
check=False,
|
||||||
|
).stdout
|
||||||
|
for s_ref in [ln.strip() for ln in stash_out.splitlines() if ln.strip()]:
|
||||||
|
revs.append(s_ref)
|
||||||
|
revs.append(f"{s_ref}^3")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
log_out = subprocess.run(
|
||||||
|
["git", "-C", str(repo_dir), "log", "--all", f"-n{max_commits}", "--format=%H", "--", rel_path],
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
check=False,
|
||||||
|
).stdout
|
||||||
|
for sha in [ln.strip() for ln in log_out.splitlines() if ln.strip()]:
|
||||||
|
if sha not in revs:
|
||||||
|
revs.append(sha)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
docs: list[dict[str, Any]] = []
|
||||||
|
for rev in revs:
|
||||||
|
try:
|
||||||
|
proc = subprocess.run(
|
||||||
|
["git", "-C", str(repo_dir), "show", f"{rev}:{rel_path}"],
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
check=False,
|
||||||
|
)
|
||||||
|
if proc.returncode == 0 and proc.stdout.strip():
|
||||||
|
obj = json.loads(proc.stdout)
|
||||||
|
if isinstance(obj, dict):
|
||||||
|
docs.append(obj)
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
return docs
|
||||||
|
|
||||||
|
|
||||||
|
def snapshot_local_telemetry(
|
||||||
|
snapshot_dir: str | Path,
|
||||||
|
quant_dir: str | Path | None = None,
|
||||||
|
excavate_git: bool = True,
|
||||||
|
) -> dict[str, Any]:
|
||||||
|
"""
|
||||||
|
Save a lossless copy of local `site/quant/` telemetry JSON ledgers into `snapshot_dir`
|
||||||
|
prior to pulling or resetting the Git working tree during VPS deployment sync.
|
||||||
|
When `excavate_git=True` on the repository's `site/quant` directory, also excavates
|
||||||
|
any observations present in `git stash list` or `git log --all` (`>= 2026-11-01`).
|
||||||
|
"""
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
cfg = load_workspace_config()
|
||||||
|
default_q_dir = cfg.core_dir / "site" / "quant"
|
||||||
|
q_dir = Path(quant_dir) if quant_dir else default_q_dir
|
||||||
|
s_dir = Path(snapshot_dir)
|
||||||
|
s_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
saved: list[str] = []
|
||||||
|
for fname in _TELEMETRY_SNAPSHOT_FILES:
|
||||||
|
src = q_dir / fname
|
||||||
|
if src.is_file():
|
||||||
|
try:
|
||||||
|
json.loads(src.read_text(encoding="utf-8"))
|
||||||
|
shutil.copy2(src, s_dir / fname)
|
||||||
|
saved.append(fname)
|
||||||
|
except Exception:
|
||||||
|
continue
|
||||||
|
|
||||||
|
if excavate_git and q_dir.resolve() == default_q_dir.resolve() and (cfg.core_dir / ".git").exists():
|
||||||
|
max_dt = latest_completed_closing_bell_date_utc()
|
||||||
|
# 1. Excavate stashed/committed real-market-history.json bars (>= 2026-11-01)
|
||||||
|
snap_rmh_p = s_dir / "real-market-history.json"
|
||||||
|
if snap_rmh_p.is_file():
|
||||||
|
try:
|
||||||
|
base_rmh = json.loads(snap_rmh_p.read_text(encoding="utf-8"))
|
||||||
|
insts = base_rmh.setdefault("instruments", {})
|
||||||
|
for hist_doc in _excavate_git_json_versions(cfg.core_dir, "site/quant/real-market-history.json"):
|
||||||
|
for sym, s_obj in (hist_doc.get("instruments") or {}).items():
|
||||||
|
if sym == "ANTHR-PVT" or not isinstance(s_obj, dict):
|
||||||
|
continue
|
||||||
|
t_entry = insts.setdefault(
|
||||||
|
sym, {"symbol": sym, "data_available": True, "status": "ok", "bars_by_date": {}}
|
||||||
|
)
|
||||||
|
t_bars = t_entry.setdefault("bars_by_date", {})
|
||||||
|
for dt_s, b_obj in (s_obj.get("bars_by_date") or {}).items():
|
||||||
|
if not re.match(r"^\d{4}-\d{2}-\d{2}$", str(dt_s)):
|
||||||
|
continue
|
||||||
|
if dt_s < MIN_SCOPE_DATE_UTC or dt_s > max_dt:
|
||||||
|
continue
|
||||||
|
if not isinstance(b_obj, dict) or b_obj.get("close_usd") is None:
|
||||||
|
continue
|
||||||
|
if dt_s not in t_bars or t_bars[dt_s].get("close_usd") is None:
|
||||||
|
t_bars[dt_s] = b_obj
|
||||||
|
else:
|
||||||
|
if not t_bars[dt_s].get("market_cap_str") and b_obj.get("market_cap_str"):
|
||||||
|
t_bars[dt_s]["market_cap_str"] = b_obj["market_cap_str"]
|
||||||
|
if t_bars[dt_s].get("volume_ratio_20d") is None and b_obj.get("volume_ratio_20d") is not None:
|
||||||
|
t_bars[dt_s]["volume_ratio_20d"] = b_obj["volume_ratio_20d"]
|
||||||
|
snap_rmh_p.write_text(json.dumps(base_rmh, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
return {"ok": True, "snapshot_dir": str(s_dir), "saved_files": saved}
|
||||||
|
|
||||||
|
|
||||||
|
def reconcile_telemetry_snapshot(
|
||||||
|
snapshot_dir: str | Path,
|
||||||
|
quant_dir: str | Path | None = None,
|
||||||
|
max_date_utc: str | None = None,
|
||||||
|
recompile_bundles: bool = True,
|
||||||
|
) -> dict[str, Any]:
|
||||||
|
"""
|
||||||
|
Losslessly union-merge any valid completed harvest bars or FRED macro observations
|
||||||
|
(`>= 2026-11-01` and `<= max_date_utc`) from `snapshot_dir` that are absent in `quant_dir`
|
||||||
|
(the newly pulled `origin/main` checkout).
|
||||||
|
If `origin/main` already contains 100% of completed observations (`merged_bars_count == 0`
|
||||||
|
and `merged_macro_obs_count == 0`), performs 0 disk writes so `git status` remains clean.
|
||||||
|
"""
|
||||||
|
cfg = load_workspace_config()
|
||||||
|
q_dir = Path(quant_dir) if quant_dir else (cfg.core_dir / "site" / "quant")
|
||||||
|
s_dir = Path(snapshot_dir)
|
||||||
|
effective_max_date = max_date_utc or latest_completed_closing_bell_date_utc()
|
||||||
|
|
||||||
|
merged_bars_count = 0
|
||||||
|
merged_macro_obs_count = 0
|
||||||
|
|
||||||
|
snap_hist_p = s_dir / "real-market-history.json"
|
||||||
|
cur_hist_p = q_dir / "real-market-history.json"
|
||||||
|
if snap_hist_p.is_file() and cur_hist_p.is_file():
|
||||||
|
try:
|
||||||
|
snap_hist = json.loads(snap_hist_p.read_text(encoding="utf-8"))
|
||||||
|
cur_hist = json.loads(cur_hist_p.read_text(encoding="utf-8"))
|
||||||
|
cur_insts = cur_hist.setdefault("instruments", {})
|
||||||
|
for sym, snap_obj in (snap_hist.get("instruments") or {}).items():
|
||||||
|
if sym == "ANTHR-PVT":
|
||||||
|
continue
|
||||||
|
cur_entry = cur_insts.setdefault(
|
||||||
|
sym, {"symbol": sym, "data_available": True, "status": "ok", "bars_by_date": {}}
|
||||||
|
)
|
||||||
|
cur_bars = cur_entry.setdefault("bars_by_date", {})
|
||||||
|
for dt_s, b_obj in (snap_obj.get("bars_by_date") or {}).items():
|
||||||
|
if not re.match(r"^\d{4}-\d{2}-\d{2}$", str(dt_s)):
|
||||||
|
continue
|
||||||
|
if dt_s < MIN_SCOPE_DATE_UTC or dt_s > effective_max_date:
|
||||||
|
continue
|
||||||
|
if not isinstance(b_obj, dict) or b_obj.get("close_usd") is None:
|
||||||
|
continue
|
||||||
|
if dt_s not in cur_bars or cur_bars[dt_s].get("close_usd") is None:
|
||||||
|
cur_bars[dt_s] = b_obj
|
||||||
|
merged_bars_count += 1
|
||||||
|
else:
|
||||||
|
if not cur_bars[dt_s].get("market_cap_str") and b_obj.get("market_cap_str"):
|
||||||
|
cur_bars[dt_s]["market_cap_str"] = b_obj["market_cap_str"]
|
||||||
|
merged_bars_count += 1
|
||||||
|
if cur_bars[dt_s].get("volume_ratio_20d") is None and b_obj.get("volume_ratio_20d") is not None:
|
||||||
|
cur_bars[dt_s]["volume_ratio_20d"] = b_obj["volume_ratio_20d"]
|
||||||
|
merged_bars_count += 1
|
||||||
|
cur_entry["bars_by_date"] = {k: cur_bars[k] for k in sorted(cur_bars.keys())}
|
||||||
|
if merged_bars_count > 0:
|
||||||
|
cur_hist_p.write_text(json.dumps(cur_hist, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
snap_macro_p = s_dir / "real-macro-indicators.json"
|
||||||
|
cur_macro_p = q_dir / "real-macro-indicators.json"
|
||||||
|
if snap_macro_p.is_file() and cur_macro_p.is_file():
|
||||||
|
try:
|
||||||
|
snap_macro = json.loads(snap_macro_p.read_text(encoding="utf-8"))
|
||||||
|
cur_macro = json.loads(cur_macro_p.read_text(encoding="utf-8"))
|
||||||
|
cur_series = cur_macro.setdefault("series", {})
|
||||||
|
for s_key, snap_s in (snap_macro.get("series") or {}).items():
|
||||||
|
if s_key not in cur_series or not isinstance(snap_s, dict):
|
||||||
|
continue
|
||||||
|
cur_obs_list = cur_series[s_key].get("recent_observations") or []
|
||||||
|
cur_obs_by_dt = {
|
||||||
|
str(o.get("date_utc") or o.get("date")): o
|
||||||
|
for o in cur_obs_list
|
||||||
|
if isinstance(o, dict) and (o.get("date_utc") or o.get("date"))
|
||||||
|
}
|
||||||
|
added_here = 0
|
||||||
|
for o in snap_s.get("recent_observations") or []:
|
||||||
|
if not isinstance(o, dict) or not (o.get("date_utc") or o.get("date")) or o.get("value") is None:
|
||||||
|
continue
|
||||||
|
dt_s = str(o.get("date_utc") or o.get("date"))
|
||||||
|
if dt_s > effective_max_date:
|
||||||
|
continue
|
||||||
|
if dt_s not in cur_obs_by_dt or cur_obs_by_dt[dt_s].get("value") is None:
|
||||||
|
cur_obs_by_dt[dt_s] = o
|
||||||
|
merged_macro_obs_count += 1
|
||||||
|
added_here += 1
|
||||||
|
if added_here > 0:
|
||||||
|
sorted_obs = [cur_obs_by_dt[k] for k in sorted(cur_obs_by_dt.keys())]
|
||||||
|
cur_series[s_key]["recent_observations"] = sorted_obs
|
||||||
|
latest_valid = [x for x in sorted_obs if x.get("value") is not None]
|
||||||
|
if latest_valid:
|
||||||
|
last_dt = latest_valid[-1].get("date_utc") or latest_valid[-1].get("date")
|
||||||
|
cur_series[s_key]["latest_date_utc"] = last_dt
|
||||||
|
cur_series[s_key]["latest_value"] = latest_valid[-1]["value"]
|
||||||
|
if merged_macro_obs_count > 0:
|
||||||
|
cur_macro_p.write_text(json.dumps(cur_macro, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||||
|
macro_js_p = q_dir / "real-macro-indicators-data.js"
|
||||||
|
js_body = (
|
||||||
|
"// Auto-generated by hyperstitionstud_io.quant.macro — DO NOT EDIT MANUALLY\n"
|
||||||
|
f"window.HYPERSTITION_MACRO_DATA = {json.dumps(cur_macro, ensure_ascii=False)};\n"
|
||||||
|
)
|
||||||
|
macro_js_p.write_text(js_body, encoding="utf-8")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
reconciled_new_data = (merged_bars_count > 0) or (merged_macro_obs_count > 0)
|
||||||
|
if reconciled_new_data and recompile_bundles and q_dir == (cfg.core_dir / "site" / "quant"):
|
||||||
|
from hyperstitionstud_io.quant.daily_brief import build_daily_portfolio_brief
|
||||||
|
from hyperstitionstud_io.quant.timeseries import build_quant_timeseries_bundle
|
||||||
|
|
||||||
|
build_quant_timeseries_bundle(write_files=True)
|
||||||
|
build_daily_portfolio_brief(allow_live_network=False, write_files=True)
|
||||||
|
|
||||||
|
return {
|
||||||
|
"ok": True,
|
||||||
|
"reconciled_new_data": reconciled_new_data,
|
||||||
|
"merged_bars_count": merged_bars_count,
|
||||||
|
"merged_macro_obs_count": merged_macro_obs_count,
|
||||||
|
"min_scope_date_utc": MIN_SCOPE_DATE_UTC,
|
||||||
|
"max_date_utc": effective_max_date,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def main(argv: list[str] | None = None) -> int:
|
def main(argv: list[str] | None = None) -> int:
|
||||||
ap = argparse.ArgumentParser(prog="hs-quant-harvest", description="Periodic Quantitative Financial Telemetry & Contingent Meaning Collector.")
|
ap = argparse.ArgumentParser(prog="hs-quant-harvest", description="Periodic Quantitative Financial Telemetry & Contingent Meaning Collector.")
|
||||||
ap.add_argument("--mode", choices=["us-closing-bell", "utc-rollover"], default="us-closing-bell")
|
ap.add_argument("--mode", choices=["us-closing-bell", "utc-rollover"], default="us-closing-bell")
|
||||||
ap.add_argument("--from-snapshot", default=None, help="Optional offline JSON snapshot file.")
|
ap.add_argument("--from-snapshot", default=None, help="Optional offline JSON snapshot file.")
|
||||||
ap.add_argument("--live", action="store_true", help="Attempt live keyless HTTP fetch (Yahoo v8 / Stooq CSV / CoinGecko).")
|
ap.add_argument("--live", action="store_true", help="Attempt live keyless HTTP fetch (Yahoo v8 / Stooq CSV / CoinGecko).")
|
||||||
ap.add_argument("--append-history", action="store_true", help="Merge newly fetched real exchange bars into site/quant/real-market-history.json.")
|
ap.add_argument("--append-history", action="store_true", help="Merge newly fetched real exchange bars into site/quant/real-market-history.json.")
|
||||||
|
ap.add_argument("--snapshot-telemetry", default=None, help="Snapshot local site/quant/ telemetry JSON files into the specified directory.")
|
||||||
|
ap.add_argument("--reconcile-telemetry", default=None, help="Losslessly reconcile snapshotted telemetry JSON files from the specified directory.")
|
||||||
ap.add_argument("--join-news", default=None, help="Optional path to news-aq-harvest-latest.json.")
|
ap.add_argument("--join-news", default=None, help="Optional path to news-aq-harvest-latest.json.")
|
||||||
ap.add_argument("--write-dossier", default=None, help="Optional path to emit Markdown quant report.")
|
ap.add_argument("--write-dossier", default=None, help="Optional path to emit Markdown quant report.")
|
||||||
ap.add_argument("--out", default=None, help="Output JSON path (default: <core_dir>/site/quant/financial-aq-harvest-latest.json).")
|
ap.add_argument("--out", default=None, help="Output JSON path (default: <core_dir>/site/quant/financial-aq-harvest-latest.json).")
|
||||||
args = ap.parse_args(argv)
|
args = ap.parse_args(argv)
|
||||||
|
|
||||||
|
if args.snapshot_telemetry:
|
||||||
|
res = snapshot_local_telemetry(args.snapshot_telemetry)
|
||||||
|
print(json.dumps(res, indent=2))
|
||||||
|
return 0
|
||||||
|
|
||||||
|
if args.reconcile_telemetry:
|
||||||
|
res = reconcile_telemetry_snapshot(args.reconcile_telemetry)
|
||||||
|
print(json.dumps(res, indent=2))
|
||||||
|
return 0
|
||||||
|
|
||||||
cfg = load_workspace_config()
|
cfg = load_workspace_config()
|
||||||
if args.append_history:
|
if args.append_history:
|
||||||
update_real_market_history_cache(allow_live_network=args.live)
|
update_real_market_history_cache(allow_live_network=args.live)
|
||||||
|
|||||||
@@ -454,22 +454,48 @@ def build_daily_portfolio_brief(
|
|||||||
js_body = "// Auto-generated by hyperstitionstud_io.quant.daily_brief — DO NOT EDIT MANUALLY\nwindow.HYPERSTITION_DAILY_BRIEF = " + json.dumps(brief_payload, ensure_ascii=False) + ";\n"
|
js_body = "// Auto-generated by hyperstitionstud_io.quant.daily_brief — DO NOT EDIT MANUALLY\nwindow.HYPERSTITION_DAILY_BRIEF = " + json.dumps(brief_payload, ensure_ascii=False) + ";\n"
|
||||||
out_js_path.write_text(js_body, encoding="utf-8")
|
out_js_path.write_text(js_body, encoding="utf-8")
|
||||||
|
|
||||||
# Update append-only Bayesian state ledger outside read-only files
|
# Update append-only Bayesian state ledger outside read-only files (deduplicating same-day identical posteriors)
|
||||||
history_list = list(prior_state.get("run_history") or [])
|
raw_history = list(prior_state.get("run_history") or [])
|
||||||
history_list.append({
|
dedup_history: list[dict[str, Any]] = []
|
||||||
"run_number": run_number,
|
for entry in raw_history:
|
||||||
"generated_at_utc": brief_payload["generated_at_utc"],
|
if not isinstance(entry, dict):
|
||||||
"posterior_probabilities": bayesian_block["posterior_probabilities"],
|
continue
|
||||||
"question_id": current_question["question_id"],
|
e_dt = str(entry.get("generated_at_utc") or "")[:10]
|
||||||
"cidv1": brief_payload["ipld_dag_json_cidv1"]["/"],
|
e_post = entry.get("posterior_probabilities")
|
||||||
})
|
if dedup_history and str(dedup_history[-1].get("generated_at_utc") or "")[:10] == e_dt and dedup_history[-1].get("posterior_probabilities") == e_post:
|
||||||
|
dedup_history[-1] = entry
|
||||||
|
else:
|
||||||
|
dedup_history.append(entry)
|
||||||
|
cur_dt_10 = str(brief_payload["generated_at_utc"])[:10]
|
||||||
|
cur_post = bayesian_block["posterior_probabilities"]
|
||||||
|
if dedup_history and str(dedup_history[-1].get("generated_at_utc") or "")[:10] == cur_dt_10 and dedup_history[-1].get("posterior_probabilities") == cur_post:
|
||||||
|
dedup_history[-1] = {
|
||||||
|
"run_number": int(dedup_history[-1].get("run_number") or len(dedup_history)),
|
||||||
|
"generated_at_utc": brief_payload["generated_at_utc"],
|
||||||
|
"posterior_probabilities": cur_post,
|
||||||
|
"question_id": str(dedup_history[-1].get("question_id") or current_question["question_id"]),
|
||||||
|
"cidv1": brief_payload["ipld_dag_json_cidv1"]["/"],
|
||||||
|
}
|
||||||
|
else:
|
||||||
|
next_run_num = (int(dedup_history[-1].get("run_number") or len(dedup_history)) + 1) if dedup_history else 1
|
||||||
|
dedup_history.append({
|
||||||
|
"run_number": next_run_num,
|
||||||
|
"generated_at_utc": brief_payload["generated_at_utc"],
|
||||||
|
"posterior_probabilities": cur_post,
|
||||||
|
"question_id": f"Q-RUN-{next_run_num:04d}",
|
||||||
|
"cidv1": brief_payload["ipld_dag_json_cidv1"]["/"],
|
||||||
|
})
|
||||||
|
for idx, h_item in enumerate(dedup_history, start=1):
|
||||||
|
h_item["run_number"] = idx
|
||||||
|
h_item["question_id"] = f"Q-RUN-{idx:04d}"
|
||||||
|
effective_run_number = dedup_history[-1]["run_number"]
|
||||||
new_state = {
|
new_state = {
|
||||||
"version": CURRENT_VERSION,
|
"version": CURRENT_VERSION,
|
||||||
"run_number": run_number,
|
"run_number": effective_run_number,
|
||||||
"updated_at_utc": brief_payload["generated_at_utc"],
|
"updated_at_utc": brief_payload["generated_at_utc"],
|
||||||
"latest_posteriors": bayesian_block["posterior_probabilities"],
|
"latest_posteriors": bayesian_block["posterior_probabilities"],
|
||||||
"active_daily_question": current_question,
|
"active_daily_question": current_question,
|
||||||
"run_history": history_list[-30:],
|
"run_history": dedup_history[-30:],
|
||||||
}
|
}
|
||||||
state_path.parent.mkdir(parents=True, exist_ok=True)
|
state_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
state_path.write_text(json.dumps(new_state, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
state_path.write_text(json.dumps(new_state, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||||
|
|||||||
@@ -147,26 +147,60 @@ FRED_SERIES_SPEC: tuple[dict[str, Any], ...] = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def fetch_fred_series_csv(series_id: str, max_rows: int = 36, timeout: float = 8.0) -> list[dict[str, Any]]:
|
MIN_MACRO_DAILY_DATE_UTC = "2026-11-01"
|
||||||
|
|
||||||
|
|
||||||
|
def fetch_fred_series_csv(
|
||||||
|
series_id: str,
|
||||||
|
max_rows: int = 36,
|
||||||
|
timeout: float = 8.0,
|
||||||
|
min_date_utc: str | None = None,
|
||||||
|
max_date_utc: str | None = None,
|
||||||
|
) -> list[dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
Fetch real observations from `https://fred.stlouisfed.org/graph/fredgraph.csv?id=<series_id>&cosd=2024-10-01`.
|
Fetch real observations from `https://fred.stlouisfed.org/graph/fredgraph.csv?id=<series_id>&cosd=2025-09-01`
|
||||||
|
using IPv4-first transport (`curl -4` with `safe_urlopen` fallback so blackholed IPv6 routes never stall).
|
||||||
Preserves missing/holiday dates explicitly as `value = None` (`data_available = False`) rather than `0.0`.
|
Preserves missing/holiday dates explicitly as `value = None` (`data_available = False`) rather than `0.0`.
|
||||||
"""
|
"""
|
||||||
url = f"https://fred.stlouisfed.org/graph/fredgraph.csv?id={series_id}&cosd=2024-10-01"
|
import shutil
|
||||||
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT})
|
import subprocess
|
||||||
from hyperstitionstud_io.security import safe_urlopen
|
|
||||||
|
|
||||||
with safe_urlopen(req, timeout=timeout) as resp:
|
url = f"https://fred.stlouisfed.org/graph/fredgraph.csv?id={series_id}&cosd=2025-09-01"
|
||||||
lines = [ln.strip() for ln in resp.read().decode("utf-8").splitlines() if ln.strip()]
|
raw_text = ""
|
||||||
|
curl_bin = shutil.which("curl")
|
||||||
|
if curl_bin:
|
||||||
|
try:
|
||||||
|
proc = subprocess.run(
|
||||||
|
[curl_bin, "-4", "-sS", "-L", "--max-time", str(max(2, int(timeout))), url],
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
check=False,
|
||||||
|
)
|
||||||
|
if proc.returncode == 0 and proc.stdout.startswith("observation_date,"):
|
||||||
|
raw_text = proc.stdout
|
||||||
|
except Exception:
|
||||||
|
raw_text = ""
|
||||||
|
|
||||||
|
if not raw_text:
|
||||||
|
req = urllib.request.Request(url, headers={"User-Agent": _USER_AGENT})
|
||||||
|
from hyperstitionstud_io.security import safe_urlopen
|
||||||
|
|
||||||
|
with safe_urlopen(req, timeout=timeout) as resp:
|
||||||
|
raw_text = resp.read().decode("utf-8")
|
||||||
|
|
||||||
|
lines = [ln.strip() for ln in raw_text.splitlines() if ln.strip()]
|
||||||
if len(lines) <= 1:
|
if len(lines) <= 1:
|
||||||
return []
|
return []
|
||||||
tail = lines[1:][-max_rows:]
|
|
||||||
rows: list[dict[str, Any]] = []
|
rows: list[dict[str, Any]] = []
|
||||||
for ln in tail:
|
for ln in lines[1:]:
|
||||||
parts = ln.split(",", 1)
|
parts = ln.split(",", 1)
|
||||||
if len(parts) != 2:
|
if len(parts) != 2:
|
||||||
continue
|
continue
|
||||||
dt_s, val_s = parts[0].strip(), parts[1].strip()
|
dt_s, val_s = parts[0].strip(), parts[1].strip()
|
||||||
|
if min_date_utc and dt_s < min_date_utc:
|
||||||
|
continue
|
||||||
|
if max_date_utc and dt_s > max_date_utc:
|
||||||
|
continue
|
||||||
if not val_s or val_s == ".":
|
if not val_s or val_s == ".":
|
||||||
rows.append({
|
rows.append({
|
||||||
"date_utc": dt_s,
|
"date_utc": dt_s,
|
||||||
@@ -189,13 +223,13 @@ def fetch_fred_series_csv(series_id: str, max_rows: int = 36, timeout: float = 8
|
|||||||
"status": NO_DATA_AVAILABLE,
|
"status": NO_DATA_AVAILABLE,
|
||||||
"value": None,
|
"value": None,
|
||||||
})
|
})
|
||||||
return rows
|
return rows[-max_rows:]
|
||||||
|
|
||||||
|
|
||||||
def _score_macro_int(face_int: int, ing_map: dict[str, str]) -> dict[str, Any]:
|
def _score_macro_int(face_int: int, ing_map: dict[str, str]) -> dict[str, Any]:
|
||||||
sp_eng = int_to_spoken_words(abs(face_int))
|
sp_eng = int_to_spoken_words(abs(face_int))
|
||||||
sp_eng_aq = compute_aq(sp_eng)
|
sp_eng_aq = compute_aq(sp_eng)
|
||||||
sp_ing = ing_map.get(sp_eng, sp_eng)
|
sp_ing = ing_map.get(sp_eng) or translate_batch([sp_eng]).get(sp_eng, sp_eng)
|
||||||
sp_ing_aq = compute_aq(sp_ing)
|
sp_ing_aq = compute_aq(sp_ing)
|
||||||
ring_hits = sorted(
|
ring_hits = sorted(
|
||||||
{
|
{
|
||||||
@@ -299,20 +333,47 @@ def build_macro_indicators_bundle(
|
|||||||
cached_bundle = {}
|
cached_bundle = {}
|
||||||
|
|
||||||
cached_series = (cached_bundle.get("raw_fred_observations") or {}) if isinstance(cached_bundle, dict) else {}
|
cached_series = (cached_bundle.get("raw_fred_observations") or {}) if isinstance(cached_bundle, dict) else {}
|
||||||
|
from hyperstitionstud_io.quant.collector import latest_completed_closing_bell_date_utc
|
||||||
|
|
||||||
for spec in FRED_SERIES_SPEC:
|
max_closed_dt = latest_completed_closing_bell_date_utc()
|
||||||
|
|
||||||
|
def _fetch_one_spec(spec: dict[str, Any]) -> tuple[str, list[dict[str, Any]]]:
|
||||||
sid = spec["series_id"]
|
sid = spec["series_id"]
|
||||||
fetched: list[dict[str, Any]] = []
|
is_daily = spec["cadence"] == "1d"
|
||||||
|
min_dt = MIN_MACRO_DAILY_DATE_UTC if is_daily else None
|
||||||
|
fetched_rows: list[dict[str, Any]] = []
|
||||||
if allow_live_network:
|
if allow_live_network:
|
||||||
try:
|
try:
|
||||||
fetched = fetch_fred_series_csv(sid, max_rows=28)
|
fetched_rows = fetch_fred_series_csv(
|
||||||
|
sid,
|
||||||
|
max_rows=36,
|
||||||
|
min_date_utc=min_dt,
|
||||||
|
max_date_utc=max_closed_dt,
|
||||||
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
fetched = []
|
fetched_rows = []
|
||||||
if not fetched and sid in cached_series and cached_series[sid]:
|
prior_rows = list(cached_series.get(sid) or [])
|
||||||
fetched = list(cached_series[sid])
|
if not prior_rows and not fetched_rows and sid in _VERIFIED_FRED_SEED_OBSERVATIONS:
|
||||||
if not fetched and sid in _VERIFIED_FRED_SEED_OBSERVATIONS:
|
prior_rows = list(_VERIFIED_FRED_SEED_OBSERVATIONS[sid])
|
||||||
fetched = list(_VERIFIED_FRED_SEED_OBSERVATIONS[sid])
|
merged_by_dt: dict[str, dict[str, Any]] = {}
|
||||||
raw_series_by_id[sid] = fetched
|
for r in prior_rows + fetched_rows:
|
||||||
|
if not isinstance(r, dict) or not r.get("date_utc"):
|
||||||
|
continue
|
||||||
|
dt_s = str(r["date_utc"])
|
||||||
|
if min_dt and dt_s < min_dt:
|
||||||
|
continue
|
||||||
|
if dt_s > max_closed_dt:
|
||||||
|
continue
|
||||||
|
prev_r = merged_by_dt.get(dt_s)
|
||||||
|
if prev_r is None or (not prev_r.get("data_available") and r.get("data_available")):
|
||||||
|
merged_by_dt[dt_s] = r
|
||||||
|
return sid, [merged_by_dt[k] for k in sorted(merged_by_dt.keys())][-36:]
|
||||||
|
|
||||||
|
import concurrent.futures
|
||||||
|
|
||||||
|
with concurrent.futures.ThreadPoolExecutor(max_workers=7) as pool:
|
||||||
|
for sid, rows_list in pool.map(_fetch_one_spec, FRED_SERIES_SPEC):
|
||||||
|
raw_series_by_id[sid] = rows_list
|
||||||
|
|
||||||
# Pre-collect spoken integer strings for batch Ingglish translation
|
# Pre-collect spoken integer strings for batch Ingglish translation
|
||||||
phrases: set[str] = set()
|
phrases: set[str] = set()
|
||||||
@@ -433,7 +494,11 @@ def build_macro_indicators_bundle(
|
|||||||
"aq_evaluation": aq_eval,
|
"aq_evaluation": aq_eval,
|
||||||
"change_aq_evaluation": chg_eval,
|
"change_aq_evaluation": chg_eval,
|
||||||
"missing_observation_dates": missing_dates,
|
"missing_observation_dates": missing_dates,
|
||||||
"recent_observations": obs_list[-12:],
|
"recent_observations": (
|
||||||
|
[r for r in obs_list if r["date_utc"] >= MIN_MACRO_DAILY_DATE_UTC]
|
||||||
|
if spec["cadence"] == "1d"
|
||||||
|
else obs_list[-13:]
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
# Compute Derived Spreads & Velocity Ratios (Strictly Null-Preserving)
|
# Compute Derived Spreads & Velocity Ratios (Strictly Null-Preserving)
|
||||||
|
|||||||
@@ -447,7 +447,18 @@ def build_quant_timeseries_bundle(
|
|||||||
with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
|
with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
|
||||||
dated_dossiers = _extract_dated_news_dossiers(cfg.archive_dir)
|
dated_dossiers = _extract_dated_news_dossiers(cfg.archive_dir)
|
||||||
real_history = _load_real_market_history_bars(cfg)
|
real_history = _load_real_market_history_bars(cfg)
|
||||||
dates_utc = [f"2026-11-{d:02d}" for d in range(1, 31)]
|
all_dates: set[str] = set()
|
||||||
|
for sym_hist in real_history.values():
|
||||||
|
for k in sym_hist.keys():
|
||||||
|
if re.match(r"^\d{4}-\d{2}-\d{2}$", str(k)):
|
||||||
|
all_dates.add(str(k))
|
||||||
|
if all_dates:
|
||||||
|
start_d = datetime.date.fromisoformat(min(all_dates))
|
||||||
|
end_d = datetime.date.fromisoformat(max(all_dates))
|
||||||
|
span_days = (end_d - start_d).days
|
||||||
|
dates_utc = [(start_d + datetime.timedelta(days=i)).isoformat() for i in range(span_days + 1)]
|
||||||
|
else:
|
||||||
|
dates_utc = sorted(dated_dossiers.keys())
|
||||||
num_days = len(dates_utc)
|
num_days = len(dates_utc)
|
||||||
|
|
||||||
# Pre-collect all phrases needed for batch Ingglish translation from real observations only
|
# Pre-collect all phrases needed for batch Ingglish translation from real observations only
|
||||||
|
|||||||
+161
-112
@@ -315,10 +315,61 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert ts_full["periodicity_gate"]["enforced"] is True
|
assert ts_full["periodicity_gate"]["enforced"] is True
|
||||||
assert ts_full["periodicity_gate"]["non_periodic_records_ingested"] == 0
|
assert ts_full["periodicity_gate"]["non_periodic_records_ingested"] == 0
|
||||||
assert ts_full["periodicity_gate"]["dated_news_dossiers_ingested"] >= 20
|
assert ts_full["periodicity_gate"]["dated_news_dossiers_ingested"] >= 20
|
||||||
assert len(ts_full["dates_utc"]) == 30
|
assert len(ts_full["dates_utc"]) >= 30
|
||||||
assert all(re.match(r"^\d{4}-\d{2}-\d{2}$", d) for d in ts_full["dates_utc"])
|
assert all(re.match(r"^\d{4}-\d{2}-\d{2}$", d) for d in ts_full["dates_utc"])
|
||||||
assert len(ts_full["instruments"]) == 24
|
assert len(ts_full["instruments"]) == 24
|
||||||
|
|
||||||
|
# Strict regression check: Ensure all dates present in real market history are fully covered in dates_utc,
|
||||||
|
# timeseries.py contains 0 hardcoded year/month date generators, and telemetry snapshot reconciliation is lossless & zero-churn
|
||||||
|
import tempfile
|
||||||
|
from hyperstitionstud_io.quant.collector import (
|
||||||
|
latest_completed_closing_bell_date_utc,
|
||||||
|
reconcile_telemetry_snapshot,
|
||||||
|
snapshot_local_telemetry,
|
||||||
|
)
|
||||||
|
from hyperstitionstud_io.quant.timeseries import _load_real_market_history_bars
|
||||||
|
cfg_test = load_workspace_config()
|
||||||
|
ts_py_src = (cfg_test.core_dir / "src" / "hyperstitionstud_io" / "quant" / "timeseries.py").read_text(encoding="utf-8")
|
||||||
|
assert 'f"2026-' not in ts_py_src and 'startswith("2026-")' not in ts_py_src
|
||||||
|
real_hist_test = _load_real_market_history_bars(cfg_test)
|
||||||
|
history_dates = set()
|
||||||
|
for sym_obj in real_hist_test.values():
|
||||||
|
history_dates.update(sym_obj.keys())
|
||||||
|
for d in history_dates:
|
||||||
|
assert d in ts_full["dates_utc"], f"Regression: Real history date {d} missing from timeseries dates_utc!"
|
||||||
|
max_closed_dt = latest_completed_closing_bell_date_utc()
|
||||||
|
assert all(d <= max_closed_dt for d in history_dates), f"Premature unclosed date found in real market history (> {max_closed_dt})"
|
||||||
|
|
||||||
|
with tempfile.TemporaryDirectory() as tmp_reconcile_dir:
|
||||||
|
tmp_r = Path(tmp_reconcile_dir)
|
||||||
|
snap_d = tmp_r / "snap"
|
||||||
|
cur_d = tmp_r / "cur"
|
||||||
|
snap_res = snapshot_local_telemetry(snap_d)
|
||||||
|
assert snap_res["ok"] is True and "real-market-history.json" in snap_res["saved_files"]
|
||||||
|
snapshot_local_telemetry(cur_d)
|
||||||
|
cur_hist_file = cur_d / "real-market-history.json"
|
||||||
|
pre_bytes = cur_hist_file.read_bytes()
|
||||||
|
# 1. When cur_d already has all completed bars (even if snap_d has a premature future date), 0 writes occur
|
||||||
|
snap_doc = json.loads((snap_d / "real-market-history.json").read_text(encoding="utf-8"))
|
||||||
|
snap_doc["instruments"]["BTC-USD"]["bars_by_date"]["2099-12-31"] = {
|
||||||
|
"date_utc": "2099-12-31",
|
||||||
|
"close_usd": 99999.0,
|
||||||
|
}
|
||||||
|
(snap_d / "real-market-history.json").write_text(json.dumps(snap_doc), encoding="utf-8")
|
||||||
|
noop_rec = reconcile_telemetry_snapshot(snap_d, quant_dir=cur_d, max_date_utc=max_closed_dt, recompile_bundles=False)
|
||||||
|
assert noop_rec["reconciled_new_data"] is False and noop_rec["merged_bars_count"] == 0
|
||||||
|
assert cur_hist_file.read_bytes() == pre_bytes
|
||||||
|
# 2. When cur_d is missing a completed bar that exists in snap_d, reconcile_telemetry_snapshot losslessly restores it
|
||||||
|
cur_doc = json.loads(cur_hist_file.read_text(encoding="utf-8"))
|
||||||
|
nvda_bars_map = cur_doc["instruments"]["NVDA"]["bars_by_date"]
|
||||||
|
latest_nvda_dt = sorted(nvda_bars_map.keys())[-1]
|
||||||
|
removed_bar = nvda_bars_map.pop(latest_nvda_dt)
|
||||||
|
cur_hist_file.write_text(json.dumps(cur_doc), encoding="utf-8")
|
||||||
|
merge_rec = reconcile_telemetry_snapshot(snap_d, quant_dir=cur_d, max_date_utc=max_closed_dt, recompile_bundles=False)
|
||||||
|
assert merge_rec["reconciled_new_data"] is True and merge_rec["merged_bars_count"] == 1
|
||||||
|
restored_doc = json.loads(cur_hist_file.read_text(encoding="utf-8"))
|
||||||
|
assert restored_doc["instruments"]["NVDA"]["bars_by_date"][latest_nvda_dt]["close_usd"] == removed_bar["close_usd"]
|
||||||
|
|
||||||
anthr_ts = next(x for x in ts_full["instruments"] if x["symbol"] == "ANTHR-PVT")
|
anthr_ts = next(x for x in ts_full["instruments"] if x["symbol"] == "ANTHR-PVT")
|
||||||
assert anthr_ts["data_available"] is False
|
assert anthr_ts["data_available"] is False
|
||||||
assert anthr_ts["available_trading_days"] == 0
|
assert anthr_ts["available_trading_days"] == 0
|
||||||
@@ -341,8 +392,12 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
|
|
||||||
nvda_ts = next(x for x in ts_full["instruments"] if x["symbol"] == "NVDA")
|
nvda_ts = next(x for x in ts_full["instruments"] if x["symbol"] == "NVDA")
|
||||||
assert nvda_ts["data_available"] is True
|
assert nvda_ts["data_available"] is True
|
||||||
assert nvda_ts["available_trading_days"] == 19
|
total_dates = len(ts_full["dates_utc"])
|
||||||
assert sum(1 for b in nvda_ts["bars"] if not b["data_available"] and b["status"] == NO_DATA_AVAILABLE) == 11
|
avail_days = sum(1 for b in nvda_ts["bars"] if b["data_available"] is True)
|
||||||
|
missing_days = sum(1 for b in nvda_ts["bars"] if not b["data_available"] and b["status"] == NO_DATA_AVAILABLE)
|
||||||
|
assert nvda_ts["available_trading_days"] == avail_days
|
||||||
|
assert avail_days + missing_days == total_dates
|
||||||
|
assert len(nvda_ts["bars"]) == total_dates
|
||||||
assert nvda_ts["tradingview_symbol"] == "NASDAQ:NVDA"
|
assert nvda_ts["tradingview_symbol"] == "NASDAQ:NVDA"
|
||||||
assert "tradingview.com/chart/?symbol=NASDAQ%3ANVDA" in nvda_ts["tradingview_url"]
|
assert "tradingview.com/chart/?symbol=NASDAQ%3ANVDA" in nvda_ts["tradingview_url"]
|
||||||
assert "doc_references" in nvda_ts
|
assert "doc_references" in nvda_ts
|
||||||
@@ -510,7 +565,7 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert cat_res["counts"]["kg_nodes"] == 388
|
assert cat_res["counts"]["kg_nodes"] == 388
|
||||||
assert cat_res["counts"]["kg_edges"] == 1282
|
assert cat_res["counts"]["kg_edges"] == 1282
|
||||||
assert cat_res["counts"]["dossiers"] >= 71
|
assert cat_res["counts"]["dossiers"] >= 71
|
||||||
assert cat_res["counts"]["quant_timeseries_bars"] == 720
|
assert cat_res["counts"]["quant_timeseries_bars"] == 24 * len(ts_full["dates_utc"])
|
||||||
|
|
||||||
manifests = query_registry_manifests(cat_db)
|
manifests = query_registry_manifests(cat_db)
|
||||||
assert any(m["registry_slug"] == "encyclopedia-graph" and m["dag_json_cidv1"].startswith("baguqeera") for m in manifests)
|
assert any(m["registry_slug"] == "encyclopedia-graph" and m["dag_json_cidv1"].startswith("baguqeera") for m in manifests)
|
||||||
@@ -524,7 +579,10 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert len(coord_163["quant_timeseries_bars"]) >= 1
|
assert len(coord_163["quant_timeseries_bars"]) >= 1
|
||||||
|
|
||||||
nvda_bars = query_timeseries_bars(symbol="NVDA", min_points=None, db_path=cat_db)
|
nvda_bars = query_timeseries_bars(symbol="NVDA", min_points=None, db_path=cat_db)
|
||||||
assert len(nvda_bars) == 30 and sum(1 for b in nvda_bars if b["data_available"] == 1) == 19
|
avail_db = sum(1 for b in nvda_bars if b["data_available"] == 1)
|
||||||
|
missing_db = sum(1 for b in nvda_bars if b["data_available"] == 0 and b["status"] == NO_DATA_AVAILABLE)
|
||||||
|
assert len(nvda_bars) == len(ts_full["dates_utc"])
|
||||||
|
assert avail_db + missing_db == len(nvda_bars)
|
||||||
assert any(b["contingent_points"] is None for b in nvda_bars if b["data_available"] == 0)
|
assert any(b["contingent_points"] is None for b in nvda_bars if b["data_available"] == 0)
|
||||||
|
|
||||||
# Verify MCP and REST API calls automatically populate the SQLite REST API metadata database
|
# Verify MCP and REST API calls automatically populate the SQLite REST API metadata database
|
||||||
@@ -726,8 +784,12 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
mac_code, _, mac_body = dispatch_rest_v1("GET", "/api/v1/tools/hs_inspect_macro_indicators")
|
mac_code, _, mac_body = dispatch_rest_v1("GET", "/api/v1/tools/hs_inspect_macro_indicators")
|
||||||
assert mac_code == 200 and mac_body["data"]["synthetic_data_eliminated"] is True
|
assert mac_code == 200 and mac_body["data"]["synthetic_data_eliminated"] is True
|
||||||
assert mac_body["data"]["series_count"] == 14
|
assert mac_body["data"]["series_count"] == 14
|
||||||
assert mac_body["data"]["series"]["effr"]["aq_evaluation"]["face_int"] == 388
|
effr_series = mac_body["data"]["series"]["effr"]
|
||||||
assert mac_body["data"]["derived_indicators"]["m1_vs_m2_spread"]["m2_minus_m1_trillions_str"] == "$3.37T"
|
assert effr_series["aq_evaluation"]["face_int"] == int(round(float(effr_series["latest_value"]) * 100))
|
||||||
|
assert "2026-11-26" in effr_series["missing_observation_dates"]
|
||||||
|
assert mac_body["data"]["series"]["cpi"]["yoy_change_pct"] is not None
|
||||||
|
m2_m1_str = mac_body["data"]["derived_indicators"]["m1_vs_m2_spread"]["m2_minus_m1_trillions_str"]
|
||||||
|
assert isinstance(m2_m1_str, str) and m2_m1_str.startswith("$") and m2_m1_str.endswith("T")
|
||||||
|
|
||||||
# Verify Plan 4: 5-Agenda Daily Portfolio & Memetic Regime Update (hs-daily-brief)
|
# Verify Plan 4: 5-Agenda Daily Portfolio & Memetic Regime Update (hs-daily-brief)
|
||||||
brf_code, _, brf_body = dispatch_rest_v1("GET", "/api/v1/tools/hs_generate_daily_portfolio_brief")
|
brf_code, _, brf_body = dispatch_rest_v1("GET", "/api/v1/tools/hs_generate_daily_portfolio_brief")
|
||||||
@@ -974,39 +1036,35 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert "hs-guile-cartridge" not in (tmp_path / "eng_no_guile" / "index.html").read_text(encoding="utf-8")
|
assert "hs-guile-cartridge" not in (tmp_path / "eng_no_guile" / "index.html").read_text(encoding="utf-8")
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import shutil
|
|
||||||
|
|
||||||
if shutil.which("node"):
|
node_guile_test = subprocess.run(
|
||||||
node_guile_test = subprocess.run(
|
[
|
||||||
[
|
"node",
|
||||||
"node",
|
"-e",
|
||||||
"-e",
|
f"const R = require({json.dumps(str(guile_js_p))});"
|
||||||
f"const R = require({json.dumps(str(guile_js_p))});"
|
"const s = R.createSession();"
|
||||||
"const s = R.createSession();"
|
"if (s.evaluate('(aq-base36 \"LEMUR\")').formatted !== '114') process.exit(1);"
|
||||||
"if (s.evaluate('(aq-base36 \"LEMUR\")').formatted !== '114') process.exit(1);"
|
"if (s.evaluate('(prime-factors 666)').formatted !== '(2 3 3 37)') process.exit(2);"
|
||||||
"if (s.evaluate('(prime-factors 666)').formatted !== '(2 3 3 37)') process.exit(2);"
|
"if (s.evaluate('(+ 1/5 9/50 9/50 4/25 7/50 7/50)').formatted !== '1') process.exit(3);"
|
||||||
"if (s.evaluate('(+ 1/5 9/50 9/50 4/25 7/50 7/50)').formatted !== '1') process.exit(3);"
|
"if (s.evaluate('(variance-pop *cluster-292-gen0*)').formatted !== '4634/9') process.exit(4);"
|
||||||
"if (s.evaluate('(variance-pop *cluster-292-gen0*)').formatted !== '4634/9') process.exit(4);"
|
"if (s.evaluate('(variance-pop *cluster-292-gen1*)').formatted !== '0') process.exit(5);"
|
||||||
"if (s.evaluate('(variance-pop *cluster-292-gen1*)').formatted !== '0') process.exit(5);"
|
"if (Math.abs(s.evaluate('((derivative (lambda (x) (* x x x)) 1e-5) 2.0)').floatValue - 12.0) > 1e-3) process.exit(6);"
|
||||||
"if (Math.abs(s.evaluate('((derivative (lambda (x) (* x x x)) 1e-5) 2.0)').floatValue - 12.0) > 1e-3) process.exit(6);"
|
"if (Math.abs(s.evaluate('(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)').floatValue - 9.0) > 1e-4) process.exit(7);"
|
||||||
"if (Math.abs(s.evaluate('(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)').floatValue - 9.0) > 1e-4) process.exit(7);"
|
"if (s.evaluate(\"(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))\").formatted !== '(1/10 3/10 3/5)') process.exit(8);"
|
||||||
"if (s.evaluate(\"(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))\").formatted !== '(1/10 3/10 3/5)') process.exit(8);"
|
"if (s.evaluatePolyglot('aqBase36(\"LEMUR\")', 'ts').formatted !== '114') process.exit(9);"
|
||||||
"if (s.evaluatePolyglot('aqBase36(\"LEMUR\")', 'ts').formatted !== '114') process.exit(9);"
|
"if (s.evaluatePolyglot('aq_base36(\"LEMUR\")', 'rust').formatted !== '114') process.exit(10);"
|
||||||
"if (s.evaluatePolyglot('aq_base36(\"LEMUR\")', 'rust').formatted !== '114') process.exit(10);"
|
"if (s.evaluatePolyglot('primeFactors(666)', 'ts').formatted !== '[2,3,3,37]') process.exit(11);"
|
||||||
"if (s.evaluatePolyglot('primeFactors(666)', 'ts').formatted !== '[2,3,3,37]') process.exit(11);"
|
"if (s.evaluatePolyglot('prime_factors(666_u64)', 'rust').formatted !== 'vec![2, 3, 3, 37]') process.exit(12);"
|
||||||
"if (s.evaluatePolyglot('prime_factors(666_u64)', 'rust').formatted !== 'vec![2, 3, 3, 37]') process.exit(12);"
|
"if (s.evaluatePolyglot('(aq-base36 \"LEMUR\")', 'rust').formatted !== '114') process.exit(13);"
|
||||||
"if (s.evaluatePolyglot('(aq-base36 \"LEMUR\")', 'rust').formatted !== '114') process.exit(13);"
|
"if (s.evaluatePolyglot('let x: i64 = aq_base36(\"LEMUR\") + 23; x * 2', 'rust').formatted !== '274') process.exit(14);"
|
||||||
"if (s.evaluatePolyglot('let x: i64 = aq_base36(\"LEMUR\") + 23; x * 2', 'rust').formatted !== '274') process.exit(14);"
|
"if (s.evaluatePolyglot('const x: number = aqBase36(\"LEMUR\") + 23; x * 2', 'ts').formatted !== '274') process.exit(15);"
|
||||||
"if (s.evaluatePolyglot('const x: number = aqBase36(\"LEMUR\") + 23; x * 2', 'ts').formatted !== '274') process.exit(15);"
|
"if (s.evaluatePolyglot('(1..=5_i64).map(|x| x * x).sum::<i64>()', 'rust').formatted !== '55') process.exit(16);",
|
||||||
"if (s.evaluatePolyglot('(1..=5_i64).map(|x| x * x).sum::<i64>()', 'rust').formatted !== '55') process.exit(16);",
|
],
|
||||||
],
|
capture_output=True,
|
||||||
capture_output=True,
|
text=True,
|
||||||
text=True,
|
check=False,
|
||||||
check=False,
|
)
|
||||||
)
|
assert node_guile_test.returncode == 0, f"Node Polyglot REPL check failed ({node_guile_test.returncode}): {node_guile_test.stderr}"
|
||||||
assert node_guile_test.returncode == 0, f"Node Polyglot REPL check failed ({node_guile_test.returncode}): {node_guile_test.stderr}"
|
|
||||||
else:
|
|
||||||
print("[notice] 'node' executable not found in PATH; skipping Node.js polyglot REPL subtest.")
|
|
||||||
|
|
||||||
# Verify 4-Ring Sandbox Security & Resource Quota Guards (polyglot_sandbox.py)
|
# Verify 4-Ring Sandbox Security & Resource Quota Guards (polyglot_sandbox.py)
|
||||||
from hyperstitionstud_io.publishing.polyglot_sandbox import (
|
from hyperstitionstud_io.publishing.polyglot_sandbox import (
|
||||||
@@ -1015,33 +1073,30 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
evaluate_polyglot_sandbox,
|
evaluate_polyglot_sandbox,
|
||||||
)
|
)
|
||||||
|
|
||||||
if shutil.which("node"):
|
for bad_expr, bad_lang in (
|
||||||
for bad_expr, bad_lang in (
|
('({}).constructor.constructor("return process")()', "ts"),
|
||||||
('({}).constructor.constructor("return process")()', "ts"),
|
("globalThis.fetch('https://example.com')", "ts"),
|
||||||
("globalThis.fetch('https://example.com')", "ts"),
|
('(system "id")', "guile"),
|
||||||
('(system "id")', "guile"),
|
('std::process::Command::new("sh")', "rust"),
|
||||||
('std::process::Command::new("sh")', "rust"),
|
):
|
||||||
):
|
blocked = False
|
||||||
blocked = False
|
try:
|
||||||
try:
|
evaluate_polyglot_sandbox(bad_expr, lang=bad_lang)
|
||||||
evaluate_polyglot_sandbox(bad_expr, lang=bad_lang)
|
except SandboxSecurityError:
|
||||||
except SandboxSecurityError:
|
blocked = True
|
||||||
blocked = True
|
assert blocked, f"Failed to block escape attempt {bad_expr!r} in {bad_lang}"
|
||||||
assert blocked, f"Failed to block escape attempt {bad_expr!r} in {bad_lang}"
|
|
||||||
|
|
||||||
for inf_expr, inf_lang in (
|
for inf_expr, inf_lang in (
|
||||||
("((Z (lambda (r) (lambda (x) (r (+ x 1))))) 0)", "guile"),
|
("((Z (lambda (r) (lambda (x) (r (+ x 1))))) 0)", "guile"),
|
||||||
("Array.from({length: 1000000}, (_, i): number => i + 1).reduce((a, b) => a + b, 0)", "ts"),
|
("Array.from({length: 1000000}, (_, i): number => i + 1).reduce((a, b) => a + b, 0)", "ts"),
|
||||||
("(1..=1000000_i64).fold(0_i64, |acc, x| acc + x)", "rust"),
|
("(1..=1000000_i64).fold(0_i64, |acc, x| acc + x)", "rust"),
|
||||||
):
|
):
|
||||||
halted = False
|
halted = False
|
||||||
try:
|
try:
|
||||||
evaluate_polyglot_sandbox(inf_expr, lang=inf_lang, max_steps=2000)
|
evaluate_polyglot_sandbox(inf_expr, lang=inf_lang, max_steps=2000)
|
||||||
except SandboxResourceError:
|
except SandboxResourceError:
|
||||||
halted = True
|
halted = True
|
||||||
assert halted, f"Failed to halt resource exhaustion {inf_expr!r} in {inf_lang}"
|
assert halted, f"Failed to halt resource exhaustion {inf_expr!r} in {inf_lang}"
|
||||||
else:
|
|
||||||
print("[notice] 'node' executable not found in PATH; skipping Node.js polyglot sandbox security & resource exhaustion subtests.")
|
|
||||||
|
|
||||||
# Verify 5-state #hsPolyglotModeSelector on /engineering/ and /math/
|
# Verify 5-state #hsPolyglotModeSelector on /engineering/ and /math/
|
||||||
eng_idx_txt = (cfg.core_dir / "site" / "engineering" / "index.html").read_text(encoding="utf-8")
|
eng_idx_txt = (cfg.core_dir / "site" / "engineering" / "index.html").read_text(encoding="utf-8")
|
||||||
@@ -1126,27 +1181,24 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert "hs-sigil-seal" in surf_txt, f"Missing hs-sigil-seal in {surf_p}"
|
assert "hs-sigil-seal" in surf_txt, f"Missing hs-sigil-seal in {surf_p}"
|
||||||
assert "hs-sigil-colophon" in surf_txt, f"Missing hs-sigil-colophon in {surf_p}"
|
assert "hs-sigil-colophon" in surf_txt, f"Missing hs-sigil-colophon in {surf_p}"
|
||||||
|
|
||||||
if shutil.which("node"):
|
node_rain_test = subprocess.run(
|
||||||
node_rain_test = subprocess.run(
|
[
|
||||||
[
|
"node",
|
||||||
"node",
|
"-e",
|
||||||
"-e",
|
f"const CR = require({json.dumps(str(coderain_js_p))});"
|
||||||
f"const CR = require({json.dumps(str(coderain_js_p))});"
|
"if (CR.MATRIX_CHARS.length !== 66) process.exit(1);"
|
||||||
"if (CR.MATRIX_CHARS.length !== 66) process.exit(1);"
|
"if (CR.SIGIL_GLINTS.length < 8) process.exit(2);"
|
||||||
"if (CR.SIGIL_GLINTS.length < 8) process.exit(2);"
|
"const sub = CR.PROFILES.subtle;"
|
||||||
"const sub = CR.PROFILES.subtle;"
|
"if (sub.frameIntervalMs !== 80 || sub.colPitchPx !== 24 || sub.canvasOpacity !== 0.45) process.exit(3);"
|
||||||
"if (sub.frameIntervalMs !== 80 || sub.colPitchPx !== 24 || sub.canvasOpacity !== 0.45) process.exit(3);"
|
"const aCenter = CR.computeColumnAlpha(500, 1000, sub, false);"
|
||||||
"const aCenter = CR.computeColumnAlpha(500, 1000, sub, false);"
|
"const aOuter = CR.computeColumnAlpha(50, 1000, sub, false);"
|
||||||
"const aOuter = CR.computeColumnAlpha(50, 1000, sub, false);"
|
"if (!(aCenter < aOuter && aCenter <= 0.09 && aOuter >= 0.20)) process.exit(4);",
|
||||||
"if (!(aCenter < aOuter && aCenter <= 0.09 && aOuter >= 0.20)) process.exit(4);",
|
],
|
||||||
],
|
capture_output=True,
|
||||||
capture_output=True,
|
text=True,
|
||||||
text=True,
|
check=False,
|
||||||
check=False,
|
)
|
||||||
)
|
assert node_rain_test.returncode == 0, f"Node Code-Rain check failed ({node_rain_test.returncode}): {node_rain_test.stderr}"
|
||||||
assert node_rain_test.returncode == 0, f"Node Code-Rain check failed ({node_rain_test.returncode}): {node_rain_test.stderr}"
|
|
||||||
else:
|
|
||||||
print("[notice] 'node' executable not found in PATH; skipping Node.js code-rain subtest.")
|
|
||||||
|
|
||||||
# Verify PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA
|
# Verify PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA
|
||||||
# and PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX
|
# and PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX
|
||||||
@@ -1243,32 +1295,29 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert js_sig_1["js_ui_sha256"] != js_sig_2["js_ui_sha256"], "Mutating JS DOM control must change js_ui_sha256 fingerprint"
|
assert js_sig_1["js_ui_sha256"] != js_sig_2["js_ui_sha256"], "Mutating JS DOM control must change js_ui_sha256 fingerprint"
|
||||||
assert js_sig_1["has_lens_select_highlight"] is True and js_sig_1["speech_text_count"] == 25
|
assert js_sig_1["has_lens_select_highlight"] is True and js_sig_1["speech_text_count"] == 25
|
||||||
|
|
||||||
if shutil.which("node"):
|
node_quant_tut_test = subprocess.run(
|
||||||
node_quant_tut_test = subprocess.run(
|
[
|
||||||
[
|
"node",
|
||||||
"node",
|
"-e",
|
||||||
"-e",
|
f"const QT = require({json.dumps(str(quant_tut_js_p))});"
|
||||||
f"const QT = require({json.dumps(str(quant_tut_js_p))});"
|
"if (QT.episodes.length !== 5) process.exit(1);"
|
||||||
"if (QT.episodes.length !== 5) process.exit(1);"
|
"let totalScenes = 0;"
|
||||||
"let totalScenes = 0;"
|
"QT.episodes.forEach((ep) => {"
|
||||||
"QT.episodes.forEach((ep) => {"
|
" ep.keyframes.forEach((kf) => {"
|
||||||
" ep.keyframes.forEach((kf) => {"
|
" totalScenes++;"
|
||||||
" totalScenes++;"
|
" if (!Array.isArray(kf.uiTargets) || kf.uiTargets.length === 0) process.exit(2);"
|
||||||
" if (!Array.isArray(kf.uiTargets) || kf.uiTargets.length === 0) process.exit(2);"
|
" if (!kf.uiElementLabel || !kf.speechText) process.exit(3);"
|
||||||
" if (!kf.uiElementLabel || !kf.speechText) process.exit(3);"
|
" });"
|
||||||
" });"
|
"});"
|
||||||
"});"
|
"if (totalScenes !== 25) process.exit(4);"
|
||||||
"if (totalScenes !== 25) process.exit(4);"
|
"const ep04 = QT.episodes[3];"
|
||||||
"const ep04 = QT.episodes[3];"
|
"if (!ep04.keyframes.every((kf) => kf.uiTargets.includes('lensSelect') && kf.uiTargets.includes('lensProjectionCard'))) process.exit(5);",
|
||||||
"if (!ep04.keyframes.every((kf) => kf.uiTargets.includes('lensSelect') && kf.uiTargets.includes('lensProjectionCard'))) process.exit(5);",
|
],
|
||||||
],
|
capture_output=True,
|
||||||
capture_output=True,
|
text=True,
|
||||||
text=True,
|
check=False,
|
||||||
check=False,
|
)
|
||||||
)
|
assert node_quant_tut_test.returncode == 0, f"Node QuantTutorials check failed ({node_quant_tut_test.returncode}): {node_quant_tut_test.stderr}"
|
||||||
assert node_quant_tut_test.returncode == 0, f"Node QuantTutorials check failed ({node_quant_tut_test.returncode}): {node_quant_tut_test.stderr}"
|
|
||||||
else:
|
|
||||||
print("[notice] 'node' executable not found in PATH; skipping Node.js quant tutorials subtest.")
|
|
||||||
|
|
||||||
# Verify Plan #57 (Strategies 1A, 2A, 3A): Zero-Git-Audio deploy-time WAV voice compiler (quant_voice.py) & 0 audio files in Git
|
# Verify Plan #57 (Strategies 1A, 2A, 3A): Zero-Git-Audio deploy-time WAV voice compiler (quant_voice.py) & 0 audio files in Git
|
||||||
from hyperstitionstud_io.publishing.quant_voice import build_quant_tour_voice_assets
|
from hyperstitionstud_io.publishing.quant_voice import build_quant_tour_voice_assets
|
||||||
|
|||||||
Reference in new issue
Block a user