Repository navigation
Vital: autonomous publishing (AI narrate → independent AI review → publish), analyst, living-nature value, AWS hosting, rebrand - #4
Merged
Conversation
…once`) src/analyst/: Opus narrates confirmed findings as strict JSON (structured outputs), a deterministic faithfulness check (key numbers verbatim in cited evidence, no unsourced numbers, no personal names) rejects + retries once, a different model (Sonnet) reviews with forced overrides (control AOI ⇒ reject, individual named ⇒ hold), then narrated → reviewed → published (with gates) / false_positive. Journaled as analyst_* with usage + cost. Raw fetch against the Messages API (no new deps). Events are shaped for the incoming model-review publish policy; local canPublish mirrors it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…hdeck as the audited valuation layer Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…cked gates Publishing becomes an AI act verified afterwards. confirmed → published by a model: actor now needs a narration plus a later publish verdict from a different identity, tier <= 2 (tier 3 needs a reviewer:), and gates recorded on the event that checkAppend re-checks against the ledger. Naming a party needs two distinct reviewer identities (not the narrator) and a >= 72 h private notice to the party (or a recorded unreachable notice). reviewed gains verdict, notified gains unreachable, status_changed gains gates; publishGates is exported for the analyst step. The v1 human route (reviewer:, no gates) is kept so existing ledgers verify. ledger_advance drops the blanket refusal and can retract; ledger_review takes a verdict. Adds TRUST.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…aithfulness accepts rounded numbers (from the first live run) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…g value on forest-loss findings - Sourced registry (src/clients/naturalvalue.ts): per-biome USD/ha/yr in 2020 USD (mid = Costanza et al. 2014 Table 3, band = de Groot et al. 2012 min-max, service shares from de Groot Table 2, CPI-U 2007->2020 x1.2482), organism anchors (great whale, forest elephant, street tree, reef flood protection), GLOBAL_NATURE_VALUE, and a low-grade "cleared" comparator for Para. - Land-cover mix from CLMS Global Land Cover 2020 10 m via the CDSE Statistics API (new CopernicusClient.classHistogram); falls back to a stated latitude assumption. - natural_value tool: area by biome, annual value low/mid/high, 100-yr undiscounted + NPV (default 2%) with a discount-rate sensitivity table, per-service breakdown, method + blind spots; pulse card. - forest_loss: livingValueForFinding() adds living_value_* evidence values and a context note (Candidate.notes, appended by the kernel; the ledger schema is unchanged). - Research: docs/research/2026-09-26_valuing-living-nature.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…loy scripts - infra/earthdeck.yaml: state/site/artifacts S3 buckets, CloudFront + OAC + ACM (DNS validated) + Route 53 A/AAAA, Lambda (Node 22 arm64, 900 s, concurrency 1) with a least-privilege role, EventBridge Scheduler (6 h, staggered sweeps/analyst/export), JobSuccess-missing-14h alarm -> SNS email. DeployFunction=false phase solves the artifacts-bucket chicken-and-egg. - src/runner/: AWS-free core (payload validation, key<->path mapping, headers, upload guard, orchestration behind a stub-able interface) + SDK-backed deps + handler. The AWS SDK is runtime-provided; @aws-sdk/* are exact-pinned devDependencies for types only. - scripts/: build-lambda.sh (5.4 MB zip, prod deps only), deploy.sh (idempotent, create-if-absent SecureStrings, ledger-key adoption/generation), run-job.sh, seed-state.sh (verify + key-match guard), ledger-pubkey.mjs. - infra/README.md + README Hosting section; 17 offline tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
… channels Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
- docs/research/2026-09-26_google-earth-engine.md: 2026 access model (noncommercial tiers, commercial pricing), service-account auth, REST surface + expression graph, dataset survey for Vital with open-mirror checks, top-6 recommendation, setup steps. - src/clients/gee.ts: RS256 service-account JWT via node:crypto -> OAuth token (cached, 401 refresh), value:compute, expression builder, landCoverMix (Dynamic World / MapBiomas incl. pasture / WorldCover), GEDI L4B biomass, WorldPop population. - gee_query MCP tool, doctor line, GEE_SERVICE_ACCOUNT_JSON / GEE_PROJECT config. - Offline tests; live API shapes UNCONFIRMED (no credentials on the build machine). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…, in-browser proofs
- src/watch/export.ts: `earthdeck watch export --out <dir> [--base-url] [--contact]
[--no-pulse|--pulse-cache] [--trust] [--force]` writes a self-contained static site:
server-rendered landing, cases index and one page per finding (watch/case/<id>/),
LedgerView's own JSON bodies (api/ledger*.json, feed.json, feed.geojson), the
verification surface (checkpoint, pub, entries.jsonl, tiles — never ledger.key or the
journal), api/stats.json (counts, published false-positive rate per rule with its
definition, last sweep, living value), api/pulse.json (fresh world_pulse, else cache),
schema, trust.html, sitemap.xml, robots.txt. All links relative; absolute URLs only in
canonical/og/JSON-LD/sitemap, from --base-url (default in site.config.ts).
- src/watch/site-render.ts: escape-first HTML renderer (canonical, OG/Twitter, JSON-LD
Organization/WebSite/Dataset/Report, noindex for unpublished cases, http(s)-only hrefs).
- src/site.config.ts: the one place for name/tagline/base URL ("Vital").
- web/site + vite.site.config.ts: map-free template bundle (~23 KB JS, 46 KB CSS) built by
`pnpm build` to dist/site; web/src/site/main.ts enhances (copy, relative times, include-
unpublished switch, world pulse via cards.ts, WebCrypto checkpoint-signature + tile +
inclusion-proof check in web/src/proof.ts); web/src/api.ts maps live vs static paths.
- worldpulse: extract worldPulse() so the export can snapshot it.
- .github/ISSUE_TEMPLATE: right-of-reply.md, false-positive.md; og.png social card.
- test/site-export.test.ts: files, JSON shapes, no localhost, stats math, XSS, SEO tags,
sitemap, path mapping, browser proof code cross-checked against the Node ledger.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…ng-form name Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…undecided; --base-url overrides) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…atch-m3 # Conflicts: # src/cli.ts
…atch-m3 # Conflicts: # src/index.ts
…oy domain via EARTHDECK_DOMAIN; PROGRESS 8c Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
…Vital Earth' is a taken mark Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
marcoloco23
marked this pull request as ready for review
September 26, 2026 19:23
…t from the stack) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round 2 — the system publishes on its own
TRUST.md,src/ledger/schema.ts): amodel:actor may move confirmed → published only with a narration + a review by a different model with verdictpublish; tier ≤ 2; naming a party needs two distinct reviewers + 72 h notice;status_changed.gatesrecords why.publishGates()exported; JSON Schema regenerated.earthdeck analyst --once): Opus narrates (strict JSON, faithfulness check: every number must exist in evidence, rounding-tolerant; no-persons detector), Sonnet reviews, publish/hold/reject appended through the contract. First two autonomous publications are in the real ledger (São Félix, Novo Progresso), 4 API calls ≈ $0.12.natural_value,docs/research/2026-09-26_valuing-living-nature.md, VISION §15): sourced per-biome ecosystem-service values (Costanza 2014 / de Groot 2012), organism references (whale, elephant, tree), 100-year living value vs one-time clearing; forest-loss findings now carryliving_value_*. São Félix ≈ $2.0 bn/yr alive; the 232 ha case ≈ $1.56 M/yr. NAC / bioeconomy / valuation-provider research included.infra/earthdeck.yaml,src/runner/,scripts/deploy.sh): S3 + CloudFront + ACM + Route 53, scheduled Lambda runner (sweeps every 6 h staggered, analyst, export), SSM secrets, heartbeat alarm. Not yet deployed (blocked by a permission rule in the operator's settings, see conversation).🤖 Generated with Claude Code
https://claude.ai/code/session_017KN8pr3M1ayKPTNRcNSc2D