[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D6F8410WHA3NPWW15KHJJT":3,"skill-same:01M7D6F8410WHA3NPWW15KHJJT":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M7D6F8410WHA3NPWW15KHJJT","aeon-update",null,"Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.","LiamVisionary\u002Faeon-template","LiamVisionary","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F102138294?v=4","01M73379NZZ99TT4ZS17XR3Q9D","01M7D6D62V1SGGMKGT08Q1D2R8",0,"MIT","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Faeon-update\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: aeon-update\ndescription: Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.\nmetadata:\n  title: Aeon Update\n  category: core\n  var: \"\"\n  tags:\n    - dev\n    - meta\n  cron: \"0 11 * * 1\"\n  mode: write\n---\n> **${var}** — mode selector; space-separated tokens, order-independent, all optional:\n> - **mode** (`sync` | `report`, default `sync`) — `sync` opens a PR with the framework changes; `report` computes the delta and notifies, mutating nothing (dry run).\n> - **`repo=owner\u002Fname`** — override the upstream source repo (else auto-resolved from this instance's `parent`, falling back to `aeonfun\u002Faeon`).\n> - **`reset=\u003Csha|fork-point>`** — force the stored baseline to `\u003Csha>` (or the merge-base with upstream) before running. Recovery \u002F backfill lever.\n>\n> Empty ⇒ **sync** from the auto-resolved upstream. Examples: `` · `report` · `repo=aeonfun\u002Faeon` · `reset=fork-point`.\n\nToday is ${today}. This is the fleet's **downstream updater** - the counterpart to `fork-fleet`. `fork-fleet` looks *outward* from the parent to find work in the forks worth pulling *up*; this skill runs *inside* an instance and pulls the parent's shipped framework changes *down* - new skills, script\u002Fharness fixes, workflow and doc updates - and lands them as a reviewable PR. It is how an instance stays current with `aeonfun\u002Faeon` without a hand-run rsync-overlay rebase.\n\n## Operating principles\n\n- **PR, never push to `main`.** Every framework change ships as one reviewable PR. The operator merges.\n- **Never clobber operator config.** `aeon.yml`, `STRATEGY.md`, `soul\u002F`, `memory\u002F`, `output\u002F`, `.mcp.json` and the git-derived catalogs are instance-owned. Upstream changes to them are **surfaced for manual review in the PR body**, never written into the tree.\n- **3-way, not blind overwrite.** A framework file the operator has already customized is **auto-merged** when its local edits and upstream's edits touch disjoint regions (a real `git merge-file` 3-way, S6); it is only listed as a **conflict** for a human when the same lines changed on both sides. This is what lets a hand-narrowed workflow keep receiving unrelated upstream fixes without a manual merge every run.\n- **Silent when in sync.** Baseline == upstream HEAD ⇒ nothing to do, no notification.\n- **The baseline is the watermark, and it advances by merge.** The new baseline SHA is written *into the PR branch*, so the watermark only moves when the operator merges the PR. Unresolved conflicts are tracked separately so advancing the baseline can never silently drop them.\n\n---\n\n## Steps\n\n### S0. Bootstrap + load state\n\n```bash\nmkdir -p memory\u002Ftopics\n[ -f memory\u002Ftopics\u002Faeon-update-state.json ] || echo '{\"baseline_sha\":null,\"upstream\":null,\"last_run\":null,\"last_pr\":null,\"pending_conflicts\":[]}' > memory\u002Ftopics\u002Faeon-update-state.json\n```\n\nRead `memory\u002FMEMORY.md` for context and scan the last ~3 days of `memory\u002Flogs\u002F` - drop anything already reported so a repeat run isn't re-sent. Read the state file:\n- `BASELINE` = `.baseline_sha` (the upstream commit this instance was last synced to).\n- `PENDING` = `.pending_conflicts` (files surfaced as conflicts in a prior run, not yet resolved).\n\n### S1. Parse `${var}`\n\n- `MODE` = `report` if the token `report` (or `dry`) is present, else `sync`.\n- `REPO_OVERRIDE` = value of a `repo=owner\u002Fname` token, if any.\n- `RESET` = value of a `reset=` token, if any (`fork-point` or a 7-40 char SHA).\n\n### S2. Resolve the upstream source\n\n```bash\nSELF=$(gh repo view --json nameWithOwner -q .nameWithOwner)\nUPSTREAM=\"${REPO_OVERRIDE:-$(gh api \"repos\u002F${SELF}\" --jq '.parent.full_name \u002F\u002F empty')}\"\n[ -z \"$UPSTREAM\" ] && UPSTREAM=\"aeonfun\u002Faeon\"\n```\n\nIf `UPSTREAM` == `SELF`, this instance **is** canon - there is nothing upstream to pull. Write status `AEON_UPDATE_IS_UPSTREAM` to `memory\u002Flogs\u002F${today}.md`, send **no** notification, and stop.\n\n```bash\nUP_DEFAULT=$(gh api \"repos\u002F${UPSTREAM}\" --jq '.default_branch')\nHEAD_SHA=$(gh api \"repos\u002F${UPSTREAM}\u002Fcommits\u002F${UP_DEFAULT}\" --jq '.sha')\n```\n\n### S3. Establish \u002F reset the baseline\n\n- **`reset=fork-point`** → `BASELINE=$(gh api \"repos\u002F${UPSTREAM}\u002Fcompare\u002F${HEAD_SHA}...$(git rev-parse HEAD)\" --jq '.merge_base_commit.sha')`. `reset=\u003Csha>` → `BASELINE=\u003Csha>`. Persist immediately to state, then continue.\n- **First run (`BASELINE` null and no `reset`):** a fresh instance already carries all of canon from fork time, so there is no delta to apply - just **anchor the watermark**. Set `baseline_sha = HEAD_SHA`, write state, log `AEON_UPDATE_BASELINE_SET`, send a one-line notify (`baseline initialized at \u003Chead7>; future runs sync from here`), and stop. (To backfill everything since the fork point instead, re-run with `reset=fork-point`.)\n- **`BASELINE` == `HEAD_SHA`:** in sync. Re-verify `PENDING` (S8) in case a prior conflict is now resolved, update state, log `AEON_UPDATE_IN_SYNC`, notify nothing, stop.\n\n### S4. Compare baseline → HEAD\n\n```bash\ngh api \"repos\u002F${UPSTREAM}\u002Fcompare\u002F${BASELINE}...${HEAD_SHA}\" --jq '{\n  ahead: .ahead_by, behind: .behind_by, status,\n  commits: [.commits[]? | {sha: .sha[0:7], msg: (.commit.message | split(\"\\n\")[0]), date: .commit.author.date}],\n  files:   [.files[]?   | {filename, status, previous_filename, additions, deletions}]\n}' > \u002Ftmp\u002Faeon-update-compare.json\n```\n\nError handling:\n- **404 \u002F `status: \"diverged\"` with no merge base** (baseline not an ancestor of HEAD - history rewrite or unrelated repo): stop with `AEON_UPDATE_BASELINE_UNREACHABLE`; notify the operator to re-run with `reset=fork-point` or `reset=\u003Csha>`.\n- Cross-repo compare returns at most **300 files**; if `.files` looks truncated, note `files_truncated=true` in the report - the operator can run again after merging to pick up the remainder.\n\n### S5. Partition changed files\n\nClassify every entry in `.files` by path. A file is **OPERATOR-owned** (surfaced, never auto-written) if its path matches any of:\n\n```\naeon.yml            STRATEGY.md         soul\u002F**             memory\u002F**\noutput\u002F**           .mcp.json           .env*               aeon.db\nskills.lock         eyebrowlock.json    catalog\u002F*.json      .claude\u002F**  (except .claude\u002Fskills\u002Faeon\u002F**)\napps\u002Fdashboard\u002Foutputs\u002F**\n```\n\nEverything else is **OWNED** (a candidate for auto-apply): `skills\u002F**`, `scripts\u002F**`, `bin\u002F**`, `harness-adapter\u002F**`, `.github\u002F**`, `apps\u002F**` (except `apps\u002Fdashboard\u002Foutputs\u002F**`), `CLAUDE.md`, `AGENTS.md`, `docs\u002F**`, `.github\u002FREADME.md`, `LICENSE`, `CHANGELOG.md`, `.gitignore`, `eyebrow.policy.json`, and tracked root helpers (`aeon`, ...).\n\n`catalog\u002F*.json` and `eyebrowlock.json` are OPERATOR-owned here **only** so they are never blindly copied - they are **regenerated** from the synced sources in S7, which is the correct way to reconcile them.\n\n### S6. 3-way classify each OWNED file\n\nSet up a workspace and, for each OWNED file `f`, fetch upstream's HEAD and BASELINE blobs:\n\n```bash\nWORK=$(mktemp -d)\nfetch() { gh api \"repos\u002F${UPSTREAM}\u002Fcontents\u002F$1?ref=$2\" --jq '.content' 2>\u002Fdev\u002Fnull | base64 -d; }   # $1=path $2=ref\nh() { sha256sum 2>\u002Fdev\u002Fnull | cut -d' ' -f1; }\n```\n\nDecide `f`'s disposition from its `status` and a content 3-way (local-current vs upstream@BASELINE vs upstream@HEAD):\n\n| `status` | Test | Disposition |\n|----------|------|-------------|\n| `added` | path absent locally | **CLEAN-ADD** (write HEAD blob) |\n| `added` | path present locally (collision, e.g. a fork-only skill) | **CONFLICT** |\n| `modified` | `sha256(local) == sha256(HEAD blob)` | already synced → **SKIP** |\n| `modified` | `sha256(local) == sha256(BASELINE blob)` (operator never touched it) | **CLEAN-UPDATE** (write HEAD blob) |\n| `modified` | otherwise (operator customized it) | **3-WAY MERGE** → CLEAN-MERGE or CONFLICT (see below) |\n| `removed` | `sha256(local) == sha256(BASELINE blob)` | **CLEAN-DELETE** (`git rm`) |\n| `removed` | local differs or absent | **CONFLICT** (or already gone → SKIP if absent) |\n| `renamed` | treat as `removed previous_filename` + `added filename` under the rules above | per-part |\n\nNever CLEAN-DELETE a `skills\u002F\u003Cname>\u002F` directory whose `\u003Cname>` is not present in upstream's tree - fork-only skills are operator work and are structurally untouched (upstream's compare can only reference paths that exist upstream).\n\nAlso never CLEAN-DELETE a `skills\u002F\u003Cname>\u002F` directory if `\u003Cname>` is currently `enabled: true` in the operator's `aeon.yml` (`grep -E \"^  ${name}: *\\{[^}]*enabled: true\" aeon.yml`) - upstream retiring a skill the operator has actively scheduled is exactly the case `validate-config.js`'s skill-refs check exists to catch, but only *after* the PR is merged; nothing in the PR review itself would otherwise flag it. Downgrade this case to **CONFLICT** (reason: `enabled-skill-removed-upstream`) instead of deleting - the directory stays, and S9 surfaces it as its own loud PR-body section rather than folding it into \"Applied cleanly\" or the generic conflict list.\n\n**3-way content merge (OWNED files only).** A `modified` file that reached the `otherwise` row means the operator diverged from BASELINE *and* upstream changed the file too. Do not give up on it - most of the time the two sets of edits are in different parts of the file (e.g. the operator narrowed the workflow's `env:` secrets block while upstream bumped a `timeout` and a retry loop elsewhere), and a real 3-way merge combines both losslessly. Attempt it before declaring a conflict:\n\n```bash\nfetch \"$f\" \"$BASELINE\"  > \"$WORK\u002Fbase\"    # upstream@BASELINE (the common ancestor)\nfetch \"$f\" \"$HEAD_SHA\"  > \"$WORK\u002Fhead\"    # upstream@HEAD (what to bring in)\ncp \"$f\" \"$WORK\u002Flocal\"                      # operator's current copy (ours)\nif git merge-file -p --diff3 \"$WORK\u002Flocal\" \"$WORK\u002Fbase\" \"$WORK\u002Fhead\" > \"$WORK\u002Fmerged.$$\" 2>\u002Fdev\u002Fnull; then\n  disposition=CLEAN-MERGE   # exit 0 = disjoint hunks; the merged file carries BOTH edits - write it in S7\nelse\n  disposition=CONFLICT      # exit >0 = the same lines changed on both sides; surface for a human as before\nfi\n```\n\n`git merge-file` exits `0` only when the merge is clean (operator and upstream touched disjoint regions); the merged output preserves the operator's customization AND applies upstream's change. A non-zero exit means a genuine overlap - keep it a **CONFLICT** and list it with the upstream diff (S9). **Only OWNED files are ever 3-way-merged; OPERATOR-owned paths are always surfaced, never written.** A merged file gets the same S7 YAML\u002FJSON parse-check as any written file - if the merge produced something that no longer parses, abort that file back to CONFLICT rather than committing it.\n\n### S7. Apply CLEAN changes on a branch (sync mode only)\n\nIf `MODE == report`, skip to S9. Otherwise:\n\n```bash\nBR=\"aeon-update\u002Fsync-$(echo \"$HEAD_SHA\" | cut -c1-7)\"\ngit checkout -b \"$BR\"\n```\n\nWrite every **CLEAN-ADD** \u002F **CLEAN-UPDATE** (`mkdir -p \"$(dirname f)\"` then write the HEAD blob to `f`), write every **CLEAN-MERGE** (the merged file `$WORK\u002Fmerged.$$` from S6, over the existing `f`), and `git rm` every **CLEAN-DELETE**. **CONFLICT** and **OPERATOR** files are *not* touched - they go in the PR body only. (CLEAN-MERGE counts as a clean apply for the \"nothing CLEAN applied\" test below.)\n\nIf any `skills\u002F**` path was applied, regenerate the derived catalogs from the synced sources (never copy them from upstream):\n\n```bash\nbin\u002Fgenerate-skills-json && bin\u002Fgenerate-packs-json && bin\u002Fgenerate-skill-icons\nnode scripts\u002Fgen-agents-md.js || true\n```\n\n**Refresh the eyebrow integrity lock for any NEWLY-ADDED skill.** `ci-skill-integrity` fails a PR when a present skill's `skills\u002F\u003Cslug>\u002FSKILL.md` has no `\"discoveredFrom\": \"skills\u002F\u003Cslug>\u002FSKILL.md\"` entry in `eyebrowlock.json`. That entry is produced only by the `eyebrow` binary, which is **not preinstalled in this run** - so a CLEAN-ADD of a new skill would otherwise land the PR CI-red. Fetch the binary at the **exact version `ci-skill-integrity.yml` pins**, parsed from that workflow's `alexverify\u002Feyebrow\u002Faction@\u003Csha> # vX.Y.Z` line so it can never drift from CI - a hardcoded version writes a lock that CI's (newer) `eyebrow verify` then rejects as drift, which is the recurring cause of red sync PRs. Verify the downloaded tarball against the release's own `checksums.txt` before running it (the same checksum-verified install the action does), then rescan:\n\n```bash\nEYEBROW_OK=0\nEB=$(command -v eyebrow || true)\nif [ -z \"$EB\" ]; then\n  # Use the SAME eyebrow version ci-skill-integrity.yml pins, parsed from the\n  # workflow's `alexverify\u002Feyebrow\u002Faction@\u003Csha> # vX.Y.Z` comment. A hardcoded\n  # version silently drifts from CI (the lock this writes with an older binary\n  # then fails CI's newer `eyebrow verify` as drift - the recurring sync red);\n  # deriving it self-heals across action bumps. Fall back to v0.4.2 if unparsable.\n  EBV=$(grep -oE 'alexverify\u002Feyebrow\u002Faction@[0-9a-f]+ *# *v[0-9]+\\.[0-9]+\\.[0-9]+' .github\u002Fworkflows\u002Fci-skill-integrity.yml | grep -oE 'v[0-9]+\\.[0-9]+\\.[0-9]+' | head -1)\n  EBV=${EBV:-v0.4.2}\n  # Linux runner (ubuntu-latest) assumed; unknown arch => skip to the fail-safe.\n  case \"$(uname -m)\" in\n    x86_64)        A=amd64 ;;\n    aarch64|arm64) A=arm64 ;;\n    *)             A= ;;\n  esac\n  TB=\"eyebrow_${EBV#v}_linux_${A}.tar.gz\"\n  # Download the tarball + the release's checksums.txt and verify the tarball\n  # against it BEFORE extract or exec (mirrors the action's checksum-verified\n  # install). A tampered or moved asset fails the check, so we do NOT run it and\n  # fall through to the fail-safe. --ignore-missing checks only the asset present.\n  if [ -n \"$A\" ] && gh release download \"$EBV\" -R alexverify\u002Feyebrow -p \"$TB\" -p checksums.txt -D \"$WORK\u002Feb\" 2>\u002Fdev\u002Fnull; then\n    if (cd \"$WORK\u002Feb\" && shasum -a 256 --check --ignore-missing --strict checksums.txt >\u002Fdev\u002Fnull 2>&1); then\n      tar xzf \"$WORK\u002Feb\u002F$TB\" -C \"$WORK\u002Feb\" 2>\u002Fdev\u002Fnull \\\n        && EB=$(find \"$WORK\u002Feb\" -type f -name eyebrow | head -1) && chmod +x \"$EB\" 2>\u002Fdev\u002Fnull || true\n    else\n      echo \"::warning::eyebrow $TB failed checksums.txt verification - not executing\"; EB=\n    fi\n  fi\nfi\n# Run with a SCRUBBED env (allowlist PATH+HOME only). eyebrow scan is a local\n# file-hasher - it needs no secrets and no network - so denying it the run's\n# secret env (GH_GLOBAL + provider\u002Fnotify keys) means even a bad binary that\n# slipped the checksum cannot read or exfiltrate them. If the scan fails, EYEBROW_OK\n# stays 0 and the fail-safe below covers it.\n[ -n \"$EB\" ] && env -i PATH=\"$PATH\" HOME=\"$HOME\" \"$EB\" scan --path . --lockfile eyebrowlock.json 2>\u002Fdev\u002Fnull && EYEBROW_OK=1\n```\n\n**Fail-safe - guarantees a green PR without the binary.** If `EYEBROW_OK` is still `0` (binary unavailable or scan failed), do not ship any skill whose `eyebrowlock.json` entry this run would invalidate: revert it from the branch (`git rm -r --cached skills\u002F\u003Cslug>` for a new skill, or `git checkout ${UP_DEFAULT} -- skills\u002F\u003Cslug>\u002FSKILL.md` to drop an edit to an existing one) and re-classify it as **CONFLICT** with reason `needs-eyebrowlock-scan`. S9 surfaces each with the exact operator command (`eyebrow scan --path . --lockfile eyebrowlock.json` then commit). Two cases invalidate the lock:\n\n- **CLEAN-ADD of a `skills\u002F**` SKILL.md** - a brand-new skill has no lock entry, so `ci-skill-integrity`'s coverage precheck fails outright.\n- **CLEAN-UPDATE \u002F CLEAN-MERGE of an existing skill's `SKILL.md` that already has one or more findings in `eyebrowlock.json`.** This is NOT safe to keep unscanned. `eyebrow.policy.json` sets `failOnCapabilityExpansion: true`, and an edit that changes the line count *above* a pinned finding relocates that finding to a new line - which `eyebrow verify --ci` reports as an expanded capability and fails, **even though `allowContentDrift: true`** (byte-level drift is allowed; a finding surfacing at a new location is not). This is the recurring cause of red sync PRs on prose-only edits. Detect it: the slug has a `\"discoveredFrom\": \"skills\u002F\u003Cslug>\u002FSKILL.md\"` entry in `eyebrowlock.json` **and** that entry's `findings` array is non-empty. An existing skill with **zero** lock findings is safe to keep (no finding to relocate; pure content drift).\n\nAfter any such revert, re-run the S7 catalog regeneration (`bin\u002Fgenerate-skills-json && bin\u002Fgenerate-packs-json`) so `skills.json`\u002F`packs.json` reflect the final tree, not the reverted-out file. This trades deferring a rescan-needing change (rare) for never landing a red PR; the change still arrives, just as a one-line manual step in the PR.\n\nThen validate config:\n\n```bash\nnode scripts\u002Fvalidate-config.js aeon.yml || echo \"validate-config flagged (may be pre-existing drift; note, do not abort on it)\"\n```\n\nIf **nothing CLEAN applied** (every upstream change was CONFLICT or OPERATOR): open no PR. Fold all changes into the report, log `AEON_UPDATE_MANUAL_ONLY`, and go to S10 (notify the operator that the sync needs a manual merge). If a file we wrote breaks YAML\u002FJSON parsing, abort: `git checkout . && git checkout ${UP_DEFAULT} && git branch -D \"$BR\"`, exit `AEON_UPDATE_VALIDATION_FAILED`, notify with the failing file.\n\n### S8. Advance the baseline + reconcile conflicts (in the branch)\n\nRecompute `PENDING`: for every CONFLICT file this run **plus** every prior `PENDING` entry, keep it only if `sha256(local) != sha256(HEAD blob)` (still genuinely divergent). Drop the rest (resolved). **A file that was CLEAN-MERGE-applied this run is resolved - never carry it as pending** (its `sha256(local) != sha256(HEAD blob)` because it still holds the operator's edits, but the upstream change is now merged in, so the naive test would wrongly keep it forever; a 3-way-merged file is only a CONFLICT again if a *future* upstream change overlaps the operator's lines). Likewise drop any prior PENDING entry whose file was CLEAN-MERGE- or CLEAN-UPDATE-applied this run. Exception: `enabled-skill-removed-upstream` entries have no HEAD blob to diff (the path is deleted upstream) - resolve them instead when the skill is no longer `enabled: true` in the operator's current `aeon.yml` (they disabled it, so the CLEAN-DELETE rule can now apply next run) or upstream re-adds a path of that name (re-classify as CONFLICT\u002Fmodified or CLEAN-UPDATE under the normal rules).\n\nWrite `memory\u002Ftopics\u002Faeon-update-state.json` and commit it **with** the sync so merging advances the watermark:\n\n```json\n{\n  \"baseline_sha\": \"${HEAD_SHA}\",\n  \"upstream\": \"${UPSTREAM}\",\n  \"last_run\": \"${today}\",\n  \"last_pr\": null,\n  \"applied\": { \"added\": N, \"updated\": N, \"deleted\": N },\n  \"pending_conflicts\": [\n    { \"path\": \"scripts\u002Ffoo.sh\", \"reason\": \"operator-customized\", \"upstream_commits\": [\"abc1234\"] }\n  ]\n}\n```\n\nAdvancing `baseline_sha` to HEAD means clean files never re-notify, while `pending_conflicts` carries unresolved merges forward independently - so they resurface each run until the operator actually reconciles them, and are also written to the PR body. (In `report` mode, do **not** write state - a dry run mutates nothing.)\n\n### S9. Commit + open the PR (sync mode; skip in report mode)\n\n```bash\ngit add -A\ngit commit -F \u002Ftmp\u002Faeon-update-commit.txt      # never inline the message with -m (backticks\u002F`$()` in commit text get shell-substituted)\ngit push -u origin \"$BR\"\ngh pr create --repo \"$SELF\" --base \"$UP_DEFAULT\" \\\n  --title \"aeon-update: sync ${N_COMMITS} upstream commits (${BASE7}..${HEAD7})\" \\\n  --body-file \u002Ftmp\u002Faeon-update-pr-body.md\n```\n\n`\u002Ftmp\u002Faeon-update-commit.txt`:\n```\naeon-update: sync upstream ${BASE7}..${HEAD7}\n\n${N_COMMITS} upstream commits from ${UPSTREAM}. ${N_APPLIED} files applied cleanly, ${N_CONFLICT} need manual review. Baseline advanced to ${HEAD7}.\n```\n\nPR body (`\u002Ftmp\u002Faeon-update-pr-body.md`) - only include sections that have content:\n```markdown\n## Upstream sync: `${UPSTREAM}` `${BASE7}..${HEAD7}`\n\n**${N_COMMITS} commits** ({earliest date} → {latest date}) · **${N_APPLIED} applied** · **${N_CONFLICT} manual** · baseline → `${HEAD7}`.\n\n### Applied cleanly\n- **New skills:** `foo`, `bar`   _(regenerated catalogs + agents.md + skill-icons)_\n- **Modified skills:** `baz`\n- **Scripts \u002F harness:** `scripts\u002Fnotify.sh`, ...\n- **Workflows:** `.github\u002Fworkflows\u002F...`\n- **Auto-merged (3-way):** `.github\u002Fworkflows\u002Faeon.yml`, ...  _(your local customization kept; upstream's disjoint changes applied - review the merged hunks)_\n- **Docs \u002F other:** `docs\u002F...`, `CLAUDE.md`, ...\n\n### ⚠️ Currently-enabled skills removed upstream\nFor each CONFLICT with reason `enabled-skill-removed-upstream` (S6):\n- `verdikta-hunter` — enabled in your `aeon.yml`, deleted upstream in {commit(s)}. **Not deleted here** so nothing breaks. Pick one: keep it as a fork-only skill going forward (nothing else to do), or disable it in `aeon.yml` to match upstream's current default set.\n\n### Needs manual review (conflicts - your local copy diverges from upstream)\nFor each *other* conflict reason (`enabled-skill-removed-upstream` is covered above, don't duplicate it here): what upstream changed and why it wasn't auto-applied.\n- `scripts\u002Ffoo.sh` — you customized this locally; upstream changed it in {commits}. Upstream diff:\n  ```diff\n  {short upstream base..head diff for the file}\n  ```\n\n### Operator config changed upstream (not auto-applied - reconcile by hand)\n- `aeon.yml` — upstream added skills \u002F changed defaults: {summary}. Merge the new entries you want (keep your enable\u002Fschedule\u002Fmodel choices).\n- `soul\u002F…`, `STRATEGY.md` — {summary, if changed}\n\n### Upstream commits\n| SHA | Summary |\n|-----|---------|\n| abc1234 | ... |\n```\n\nCapture the PR URL; write it back into `last_pr` in the branch's state file (amend the state commit) so the merged watermark records its own PR.\n\n### S10. Log + notify\n\nAppend to `memory\u002Flogs\u002F${today}.md` under `### aeon-update`: status, `UPSTREAM`, `${BASE7}..${HEAD7}`, applied\u002Fconflict counts, PR URL (or `report`\u002F`manual-only`), and `pending_conflicts` count.\n\n**Notify only on signal** - match `soul\u002F` voice if present. Send when there is a PR, a report with changes, or a manual-only situation; stay silent for `IN_SYNC` \u002F `BASELINE_SET`-with-nothing. Keep it ≤4000 chars:\n\n```\n*aeon-update — ${today}*\n{verdict: \"synced N commits → PR\" | \"N changes need manual merge\" | \"report: N commits behind\"}\n\nUpstream `${UPSTREAM}` is ${AHEAD} commits ahead. Applied ${N_APPLIED} cleanly, ${N_CONFLICT} need review.\n{Top applied highlight: e.g. \"new skill: `token-radar`; harness fix in run-harness\"}\n{If conflicts: \"Manual: `aeon.yml` (new skills), `scripts\u002Ffoo.sh` (local edit)\"}\n\nPR: {url}   (or \"dry run — nothing changed\")\n```\n\nPass `--mute-key \"aeon-update:${HEAD7}\"` so a muted sync doesn't re-ping for the same upstream HEAD.\n\n## Exit taxonomy\n\n| Code | When | Notify |\n|------|------|--------|\n| `AEON_UPDATE_OK` | PR opened with ≥1 clean file (conflicts, if any, listed in it) | Yes - PR link |\n| `AEON_UPDATE_MANUAL_ONLY` | Upstream changed only operator-owned \u002F conflicting files - no clean apply, no PR | Yes - manual call-out |\n| `AEON_UPDATE_REPORT` | `report` mode - delta computed, nothing mutated | Yes - dry-run summary |\n| `AEON_UPDATE_IN_SYNC` | Baseline already == upstream HEAD | No (log only) |\n| `AEON_UPDATE_BASELINE_SET` | First run - watermark anchored, nothing applied | One-line notify |\n| `AEON_UPDATE_IS_UPSTREAM` | This instance is the upstream repo itself | No (log only) |\n| `AEON_UPDATE_BASELINE_UNREACHABLE` | Baseline is not an ancestor of HEAD (history rewrite) | Yes - asks for `reset=` |\n| `AEON_UPDATE_VALIDATION_FAILED` | An applied file broke YAML\u002FJSON parsing → branch reverted | Yes - failing file |\n\n## Constraints\n\n- **Never** push to `main` or auto-write an OPERATOR-owned path (`aeon.yml`, `soul\u002F`, `memory\u002F`, `STRATEGY.md`, `.mcp.json`, `output\u002F`).\n- **Never** delete a fork-only skill, and **never** copy `catalog\u002F*.json` \u002F `eyebrowlock.json` from upstream - regenerate them.\n- **Never** advance `baseline_sha` without carrying unresolved conflicts forward in `pending_conflicts`.\n- Cross-repo compare caps at 300 files - note `files_truncated=true` and let a follow-up run pick up the rest.\n- A clean, in-sync run is **correct**, not a failure - it notifies nothing.\n\n## Network note\n\nEvery network call is `gh api`, which authenticates via `GITHUB_TOKEN` automatically - no `curl`, no `.\u002Fsecretcurl`, no `$SECRET` on the command line for the Bash permission layer to refuse, and no secret beyond the default `GITHUB_TOKEN`. There are no irreversible side-effects: the skill's only mutation is a PR against this instance's own repo, which the operator reviews and merges. Retry policy: on `403` with `X-RateLimit-Remaining: 0`, sleep 60s and retry once; on a persistent contents-API failure for one file, mark it `UNREADABLE` in the report and continue with a partial sync rather than aborting the whole run.\n","> **${var}** — mode selector; space-separated tokens, order-independent, all optional:\n> - **mode** (`sync` | `report`, default `sync`) — `sync` opens a PR with the framework changes; `report` computes the delta and notifies, mutating nothing (dry run).\n> - **`repo=owner\u002Fname`** — override the upstream source repo (else auto-resolved from this instance's `parent`, falling back to `aeonfun\u002Faeon`).\n> - **`reset=\u003Csha|fork-point>`** — force the stored baseline to `\u003Csha>` (or the merge-base with upstream) before running. Recovery \u002F backfill lever.\n>\n> Empty ⇒ **sync** from the auto-resolved upstream. Examples: `` · `report` · `repo=aeonfun\u002Faeon` · `reset=fork-point`.\n\nToday is ${today}. This is the fleet's **downstream updater** - the counterpart to `fork-fleet`. `fork-fleet` looks *outward* from the parent to find work in the forks worth pulling *up*; this skill runs *inside* an instance and pulls the parent's shipped framework changes *down* - new skills, script\u002Fharness fixes, workflow and doc updates - and lands them as a reviewable PR. It is how an instance stays current with `aeonfun\u002Faeon` without a hand-run rsync-overlay rebase.\n\n## Operating principles\n\n- **PR, never push to `main`.** Every framework change ships as one reviewable PR. The operator merges.\n- **Never clobber operator config.** `aeon.yml`, `STRATEGY.md`, `soul\u002F`, `memory\u002F`, `output\u002F`, `.mcp.json` and the git-derived catalogs are instance-owned. Upstream changes to them are **surfaced for manual review in the PR body**, never written into the tree.\n- **3-way, not blind overwrite.** A framework file the operator has already customized is **auto-merged** when its local edits and upstream's edits touch disjoint regions (a real `git merge-file` 3-way, S6); it is only listed as a **conflict** for a human when the same lines changed on both sides. This is what lets a hand-narrowed workflow keep receiving unrelated upstream fixes without a manual merge every run.\n- **Silent when in sync.** Baseline == upstream HEAD ⇒ nothing to do, no notification.\n- **The baseline is the watermark, and it advances by merge.** The new baseline SHA is written *into the PR branch*, so the watermark only moves when the operator merges the PR. Unresolved conflicts are tracked separately so advancing the baseline can never silently drop them.\n\n---\n\n## Steps\n\n### S0. Bootstrap + load state\n\n```bash\nmkdir -p memory\u002Ftopics\n[ -f memory\u002Ftopics\u002Faeon-update-state.json ] || echo '{\"baseline_sha\":null,\"upstream\":null,\"last_run\":null,\"last_pr\":null,\"pending_conflicts\":[]}' > memory\u002Ftopics\u002Faeon-update-state.json\n```\n\nRead `memory\u002FMEMORY.md` for context and scan the last ~3 days of `memory\u002Flogs\u002F` - drop anything already reported so a repeat run isn't re-sent. Read the state file:\n- `BASELINE` = `.baseline_sha` (the upstream commit this instance was last synced to).\n- `PENDING` = `.pending_conflicts` (files surfaced as conflicts in a prior run, not yet resolved).\n\n### S1. Parse `${var}`\n\n- `MODE` = `report` if the token `report` (or `dry`) is present, else `sync`.\n- `REPO_OVERRIDE` = value of a `repo=owner\u002Fname` token, if any.\n- `RESET` = value of a `reset=` token, if any (`fork-point` or a 7-40 char SHA).\n\n### S2. Resolve the upstream source\n\n```bash\nSELF=$(gh repo view --json nameWithOwner -q .nameWithOwner)\nUPSTREAM=\"${REPO_OVERRIDE:-$(gh api \"repos\u002F${SELF}\" --jq '.parent.full_name \u002F\u002F empty')}\"\n[ -z \"$UPSTREAM\" ] && UPSTREAM=\"aeonfun\u002Faeon\"\n```\n\nIf `UPSTREAM` == `SELF`, this instance **is** canon - there is nothing upstream to pull. Write status `AEON_UPDATE_IS_UPSTREAM` to `memory\u002Flogs\u002F${today}.md`, send **no** notification, and stop.\n\n```bash\nUP_DEFAULT=$(gh api \"repos\u002F${UPSTREAM}\" --jq '.default_branch')\nHEAD_SHA=$(gh api \"repos\u002F${UPSTREAM}\u002Fcommits\u002F${UP_DEFAULT}\" --jq '.sha')\n```\n\n### S3. Establish \u002F reset the baseline\n\n- **`reset=fork-point`** → `BASELINE=$(gh api \"repos\u002F${UPSTREAM}\u002Fcompare\u002F${HEAD_SHA}...$(git rev-parse HEAD)\" --jq '.merge_base_commit.sha')`. `reset=\u003Csha>` → `BASELINE=\u003Csha>`. Persist immediately to state, then continue.\n- **First run (`BASELINE` null and no `reset`):** a fresh instance already carries all of canon from fork time, so there is no delta to apply - just **anchor the watermark**. Set `baseline_sha = HEAD_SHA`, write state, log `AEON_UPDATE_BASELINE_SET`, send a one-line notify (`baseline initialized at \u003Chead7>; future runs sync from here`), and stop. (To backfill everything since the fork point instead, re-run with `reset=fork-point`.)\n- **`BASELINE` == `HEAD_SHA`:** in sync. Re-verify `PENDING` (S8) in case a prior conflict is now resolved, update state, log `AEON_UPDATE_IN_SYNC`, notify nothing, stop.\n\n### S4. Compare baseline → HEAD\n\n```bash\ngh api \"repos\u002F${UPSTREAM}\u002Fcompare\u002F${BASELINE}...${HEAD_SHA}\" --jq '{\n  ahead: .ahead_by, behind: .behind_by, status,\n  commits: [.commits[]? | {sha: .sha[0:7], msg: (.commit.message | split(\"\\n\")[0]), date: .commit.author.date}],\n  files:   [.files[]?   | {filename, status, previous_filename, additions, deletions}]\n}' > \u002Ftmp\u002Faeon-update-compare.json\n```\n\nError handling:\n- **404 \u002F `status: \"diverged\"` with no merge base** (baseline not an ancestor of HEAD - history rewrite or unrelated repo): stop with `AEON_UPDATE_BASELINE_UNREACHABLE`; notify the operator to re-run with `reset=fork-point` or `reset=\u003Csha>`.\n- Cross-repo compare returns at most **300 files**; if `.files` looks truncated, note `files_truncated=true` in the report - the operator can run again after merging to pick up the remainder.\n\n### S5. Partition changed files\n\nClassify every entry in `.files` by path. A file is **OPERATOR-owned** (surfaced, never auto-written) if its path matches any of:\n\n```\naeon.yml            STRATEGY.md         soul\u002F**             memory\u002F**\noutput\u002F**           .mcp.json           .env*               aeon.db\nskills.lock         eyebrowlock.json    catalog\u002F*.json      .claude\u002F**  (except .claude\u002Fskills\u002Faeon\u002F**)\napps\u002Fdashboard\u002Foutputs\u002F**\n```\n\nEverything else is **OWNED** (a candidate for auto-apply): `skills\u002F**`, `scripts\u002F**`, `bin\u002F**`, `harness-adapter\u002F**`, `.github\u002F**`, `apps\u002F**` (except `apps\u002Fdashboard\u002Foutputs\u002F**`), `CLAUDE.md`, `AGENTS.md`, `docs\u002F**`, `.github\u002FREADME.md`, `LICENSE`, `CHANGELOG.md`, `.gitignore`, `eyebrow.policy.json`, and tracked root helpers (`aeon`, ...).\n\n`catalog\u002F*.json` and `eyebrowlock.json` are OPERATOR-owned here **only** so they are never blindly copied - they are **regenerated** from the synced sources in S7, which is the correct way to reconcile them.\n\n### S6. 3-way classify each OWNED file\n\nSet up a workspace and, for each OWNED file `f`, fetch upstream's HEAD and BASELINE blobs:\n\n```bash\nWORK=$(mktemp -d)\nfetch() { gh api \"repos\u002F${UPSTREAM}\u002Fcontents\u002F$1?ref=$2\" --jq '.content' 2>\u002Fdev\u002Fnull | base64 -d; }   # $1=path $2=ref\nh() { sha256sum 2>\u002Fdev\u002Fnull | cut -d' ' -f1; }\n```\n\nDecide `f`'s disposition from its `status` and a content 3-way (local-current vs upstream@BASELINE vs upstream@HEAD):\n\n| `status` | Test | Disposition |\n|----------|------|-------------|\n| `added` | path absent locally | **CLEAN-ADD** (write HEAD blob) |\n| `added` | path present locally (collision, e.g. a fork-only skill) | **CONFLICT** |\n| `modified` | `sha256(local) == sha256(HEAD blob)` | already synced → **SKIP** |\n| `modified` | `sha256(local) == sha256(BASELINE blob)` (operator never touched it) | **CLEAN-UPDATE** (write HEAD blob) |\n| `modified` | otherwise (operator customized it) | **3-WAY MERGE** → CLEAN-MERGE or CONFLICT (see below) |\n| `removed` | `sha256(local) == sha256(BASELINE blob)` | **CLEAN-DELETE** (`git rm`) |\n| `removed` | local differs or absent | **CONFLICT** (or already gone → SKIP if absent) |\n| `renamed` | treat as `removed previous_filename` + `added filename` under the rules above | per-part |\n\nNever CLEAN-DELETE a `skills\u002F\u003Cname>\u002F` directory whose `\u003Cname>` is not present in upstream's tree - fork-only skills are operator work and are structurally untouched (upstream's compare can only reference paths that exist upstream).\n\nAlso never CLEAN-DELETE a `skills\u002F\u003Cname>\u002F` directory if `\u003Cname>` is currently `enabled: true` in the operator's `aeon.yml` (`grep -E \"^  ${name}: *\\{[^}]*enabled: true\" aeon.yml`) - upstream retiring a skill the operator has actively scheduled is exactly the case `validate-config.js`'s skill-refs check exists to catch, but only *after* the PR is merged; nothing in the PR review itself would otherwise flag it. Downgrade this case to **CONFLICT** (reason: `enabled-skill-removed-upstream`) instead of deleting - the directory stays, and S9 surfaces it as its own loud PR-body section rather than folding it into \"Applied cleanly\" or the generic conflict list.\n\n**3-way content merge (OWNED files only).** A `modified` file that reached the `otherwise` row means the operator diverged from BASELINE *and* upstream changed the file too. Do not give up on it - most of the time the two sets of edits are in different parts of the file (e.g. the operator narrowed the workflow's `env:` secrets block while upstream bumped a `timeout` and a retry loop elsewhere), and a real 3-way merge combines both losslessly. Attempt it before declaring a conflict:\n\n```bash\nfetch \"$f\" \"$BASELINE\"  > \"$WORK\u002Fbase\"    # upstream@BASELINE (the common ancestor)\nfetch \"$f\" \"$HEAD_SHA\"  > \"$WORK\u002Fhead\"    # upstream@HEAD (what to bring in)\ncp \"$f\" \"$WORK\u002Flocal\"                      # operator's current copy (ours)\nif git merge-file -p --diff3 \"$WORK\u002Flocal\" \"$WORK\u002Fbase\" \"$WORK\u002Fhead\" > \"$WORK\u002Fmerged.$$\" 2>\u002Fdev\u002Fnull; then\n  disposition=CLEAN-MERGE   # exit 0 = disjoint hunks; the merged file carries BOTH edits - write it in S7\nelse\n  disposition=CONFLICT      # exit >0 = the same lines changed on both sides; surface for a human as before\nfi\n```\n\n`git merge-file` exits `0` only when the merge is clean (operator and upstream touched disjoint regions); the merged output preserves the operator's customization AND applies upstream's change. A non-zero exit means a genuine overlap - keep it a **CONFLICT** and list it with the upstream diff (S9). **Only OWNED files are ever 3-way-merged; OPERATOR-owned paths are always surfaced, never written.** A merged file gets the same S7 YAML\u002FJSON parse-check as any written file - if the merge produced something that no longer parses, abort that file back to CONFLICT rather than committing it.\n\n### S7. Apply CLEAN changes on a branch (sync mode only)\n\nIf `MODE == report`, skip to S9. Otherwise:\n\n```bash\nBR=\"aeon-update\u002Fsync-$(echo \"$HEAD_SHA\" | cut -c1-7)\"\ngit checkout -b \"$BR\"\n```\n\nWrite every **CLEAN-ADD** \u002F **CLEAN-UPDATE** (`mkdir -p \"$(dirname f)\"` then write the HEAD blob to `f`), write every **CLEAN-MERGE** (the merged file `$WORK\u002Fmerged.$$` from S6, over the existing `f`), and `git rm` every **CLEAN-DELETE**. **CONFLICT** and **OPERATOR** files are *not* touched - they go in the PR body only. (CLEAN-MERGE counts as a clean apply for the \"nothing CLEAN applied\" test below.)\n\nIf any `skills\u002F**` path was applied, regenerate the derived catalogs from the synced sources (never copy them from upstream):\n\n```bash\nbin\u002Fgenerate-skills-json && bin\u002Fgenerate-packs-json && bin\u002Fgenerate-skill-icons\nnode scripts\u002Fgen-agents-md.js || true\n```\n\n**Refresh the eyebrow integrity lock for any NEWLY-ADDED skill.** `ci-skill-integrity` fails a PR when a present skill's `skills\u002F\u003Cslug>\u002FSKILL.md` has no `\"discoveredFrom\": \"skills\u002F\u003Cslug>\u002FSKILL.md\"` entry in `eyebrowlock.json`. That entry is produced only by the `eyebrow` binary, which is **not preinstalled in this run** - so a CLEAN-ADD of a new skill would otherwise land the PR CI-red. Fetch the binary at the **exact version `ci-skill-integrity.yml` pins**, parsed from that workflow's `alexverify\u002Feyebrow\u002Faction@\u003Csha> # vX.Y.Z` line so it can never drift from CI - a hardcoded version writes a lock that CI's (newer) `eyebrow verify` then rejects as drift, which is the recurring cause of red sync PRs. Verify the downloaded tarball against the release's own `checksums.txt` before running it (the same checksum-verified install the action does), then rescan:\n\n```bash\nEYEBROW_OK=0\nEB=$(command -v eyebrow || true)\nif [ -z \"$EB\" ]; then\n  # Use the SAME eyebrow version ci-skill-integrity.yml pins, parsed from the\n  # workflow's `alexverify\u002Feyebrow\u002Faction@\u003Csha> # vX.Y.Z` comment. A hardcoded\n  # version silently drifts from CI (the lock this writes with an older binary\n  # then fails CI's newer `eyebrow verify` as drift - the recurring sync red);\n  # deriving it self-heals across action bumps. Fall back to v0.4.2 if unparsable.\n  EBV=$(grep -oE 'alexverify\u002Feyebrow\u002Faction@[0-9a-f]+ *# *v[0-9]+\\.[0-9]+\\.[0-9]+' .github\u002Fworkflows\u002Fci-skill-integrity.yml | grep -oE 'v[0-9]+\\.[0-9]+\\.[0-9]+' | head -1)\n  EBV=${EBV:-v0.4.2}\n  # Linux runner (ubuntu-latest) assumed; unknown arch => skip to the fail-safe.\n  case \"$(uname -m)\" in\n    x86_64)        A=amd64 ;;\n    aarch64|arm64) A=arm64 ;;\n    *)             A= ;;\n  esac\n  TB=\"eyebrow_${EBV#v}_linux_${A}.tar.gz\"\n  # Download the tarball + the release's checksums.txt and verify the tarball\n  # against it BEFORE extract or exec (mirrors the action's checksum-verified\n  # install). A tampered or moved asset fails the check, so we do NOT run it and\n  # fall through to the fail-safe. --ignore-missing checks only the asset present.\n  if [ -n \"$A\" ] && gh release download \"$EBV\" -R alexverify\u002Feyebrow -p \"$TB\" -p checksums.txt -D \"$WORK\u002Feb\" 2>\u002Fdev\u002Fnull; then\n    if (cd \"$WORK\u002Feb\" && shasum -a 256 --check --ignore-missing --strict checksums.txt >\u002Fdev\u002Fnull 2>&1); then\n      tar xzf \"$WORK\u002Feb\u002F$TB\" -C \"$WORK\u002Feb\" 2>\u002Fdev\u002Fnull \\\n        && EB=$(find \"$WORK\u002Feb\" -type f -name eyebrow | head -1) && chmod +x \"$EB\" 2>\u002Fdev\u002Fnull || true\n    else\n      echo \"::warning::eyebrow $TB failed checksums.txt verification - not executing\"; EB=\n    fi\n  fi\nfi\n# Run with a SCRUBBED env (allowlist PATH+HOME only). eyebrow scan is a local\n# file-hasher - it needs no secrets and no network - so denying it the run's\n# secret env (GH_GLOBAL + provider\u002Fnotify keys) means even a bad binary that\n# slipped the checksum cannot read or exfiltrate them. If the scan fails, EYEBROW_OK\n# stays 0 and the fail-safe below covers it.\n[ -n \"$EB\" ] && env -i PATH=\"$PATH\" HOME=\"$HOME\" \"$EB\" scan --path . --lockfile eyebrowlock.json 2>\u002Fdev\u002Fnull && EYEBROW_OK=1\n```\n\n**Fail-safe - guarantees a green PR without the binary.** If `EYEBROW_OK` is still `0` (binary unavailable or scan failed), do not ship any skill whose `eyebrowlock.json` entry this run would invalidate: revert it from the branch (`git rm -r --cached skills\u002F\u003Cslug>` for a new skill, or `git checkout ${UP_DEFAULT} -- skills\u002F\u003Cslug>\u002FSKILL.md` to drop an edit to an existing one) and re-classify it as **CONFLICT** with reason `needs-eyebrowlock-scan`. S9 surfaces each with the exact operator command (`eyebrow scan --path . --lockfile eyebrowlock.json` then commit). Two cases invalidate the lock:\n\n- **CLEAN-ADD of a `skills\u002F**` SKILL.md** - a brand-new skill has no lock entry, so `ci-skill-integrity`'s coverage precheck fails outright.\n- **CLEAN-UPDATE \u002F CLEAN-MERGE of an existing skill's `SKILL.md` that already has one or more findings in `eyebrowlock.json`.** This is NOT safe to keep unscanned. `eyebrow.policy.json` sets `failOnCapabilityExpansion: true`, and an edit that changes the line count *above* a pinned finding relocates that finding to a new line - which `eyebrow verify --ci` reports as an expanded capability and fails, **even though `allowContentDrift: true`** (byte-level drift is allowed; a finding surfacing at a new location is not). This is the recurring cause of red sync PRs on prose-only edits. Detect it: the slug has a `\"discoveredFrom\": \"skills\u002F\u003Cslug>\u002FSKILL.md\"` entry in `eyebrowlock.json` **and** that entry's `findings` array is non-empty. An existing skill with **zero** lock findings is safe to keep (no finding to relocate; pure content drift).\n\nAfter any such revert, re-run the S7 catalog regeneration (`bin\u002Fgenerate-skills-json && bin\u002Fgenerate-packs-json`) so `skills.json`\u002F`packs.json` reflect the final tree, not the reverted-out file. This trades deferring a rescan-needing change (rare) for never landing a red PR; the change still arrives, just as a one-line manual step in the PR.\n\nThen validate config:\n\n```bash\nnode scripts\u002Fvalidate-config.js aeon.yml || echo \"validate-config flagged (may be pre-existing drift; note, do not abort on it)\"\n```\n\nIf **nothing CLEAN applied** (every upstream change was CONFLICT or OPERATOR): open no PR. Fold all changes into the report, log `AEON_UPDATE_MANUAL_ONLY`, and go to S10 (notify the operator that the sync needs a manual merge). If a file we wrote breaks YAML\u002FJSON parsing, abort: `git checkout . && git checkout ${UP_DEFAULT} && git branch -D \"$BR\"`, exit `AEON_UPDATE_VALIDATION_FAILED`, notify with the failing file.\n\n### S8. Advance the baseline + reconcile conflicts (in the branch)\n\nRecompute `PENDING`: for every CONFLICT file this run **plus** every prior `PENDING` entry, keep it only if `sha256(local) != sha256(HEAD blob)` (still genuinely divergent). Drop the rest (resolved). **A file that was CLEAN-MERGE-applied this run is resolved - never carry it as pending** (its `sha256(local) != sha256(HEAD blob)` because it still holds the operator's edits, but the upstream change is now merged in, so the naive test would wrongly keep it forever; a 3-way-merged file is only a CONFLICT again if a *future* upstream change overlaps the operator's lines). Likewise drop any prior PENDING entry whose file was CLEAN-MERGE- or CLEAN-UPDATE-applied this run. Exception: `enabled-skill-removed-upstream` entries have no HEAD blob to diff (the path is deleted upstream) - resolve them instead when the skill is no longer `enabled: true` in the operator's current `aeon.yml` (they disabled it, so the CLEAN-DELETE rule can now apply next run) or upstream re-adds a path of that name (re-classify as CONFLICT\u002Fmodified or CLEAN-UPDATE under the normal rules).\n\nWrite `memory\u002Ftopics\u002Faeon-update-state.json` and commit it **with** the sync so merging advances the watermark:\n\n```json\n{\n  \"baseline_sha\": \"${HEAD_SHA}\",\n  \"upstream\": \"${UPSTREAM}\",\n  \"last_run\": \"${today}\",\n  \"last_pr\": null,\n  \"applied\": { \"added\": N, \"updated\": N, \"deleted\": N },\n  \"pending_conflicts\": [\n    { \"path\": \"scripts\u002Ffoo.sh\", \"reason\": \"operator-customized\", \"upstream_commits\": [\"abc1234\"] }\n  ]\n}\n```\n\nAdvancing `baseline_sha` to HEAD means clean files never re-notify, while `pending_conflicts` carries unresolved merges forward independently - so they resurface each run until the operator actually reconciles them, and are also written to the PR body. (In `report` mode, do **not** write state - a dry run mutates nothing.)\n\n### S9. Commit + open the PR (sync mode; skip in report mode)\n\n```bash\ngit add -A\ngit commit -F \u002Ftmp\u002Faeon-update-commit.txt      # never inline the message with -m (backticks\u002F`$()` in commit text get shell-substituted)\ngit push -u origin \"$BR\"\ngh pr create --repo \"$SELF\" --base \"$UP_DEFAULT\" \\\n  --title \"aeon-update: sync ${N_COMMITS} upstream commits (${BASE7}..${HEAD7})\" \\\n  --body-file \u002Ftmp\u002Faeon-update-pr-body.md\n```\n\n`\u002Ftmp\u002Faeon-update-commit.txt`:\n```\naeon-update: sync upstream ${BASE7}..${HEAD7}\n\n${N_COMMITS} upstream commits from ${UPSTREAM}. ${N_APPLIED} files applied cleanly, ${N_CONFLICT} need manual review. Baseline advanced to ${HEAD7}.\n```\n\nPR body (`\u002Ftmp\u002Faeon-update-pr-body.md`) - only include sections that have content:\n```markdown\n## Upstream sync: `${UPSTREAM}` `${BASE7}..${HEAD7}`\n\n**${N_COMMITS} commits** ({earliest date} → {latest date}) · **${N_APPLIED} applied** · **${N_CONFLICT} manual** · baseline → `${HEAD7}`.\n\n### Applied cleanly\n- **New skills:** `foo`, `bar`   _(regenerated catalogs + agents.md + skill-icons)_\n- **Modified skills:** `baz`\n- **Scripts \u002F harness:** `scripts\u002Fnotify.sh`, ...\n- **Workflows:** `.github\u002Fworkflows\u002F...`\n- **Auto-merged (3-way):** `.github\u002Fworkflows\u002Faeon.yml`, ...  _(your local customization kept; upstream's disjoint changes applied - review the merged hunks)_\n- **Docs \u002F other:** `docs\u002F...`, `CLAUDE.md`, ...\n\n### ⚠️ Currently-enabled skills removed upstream\nFor each CONFLICT with reason `enabled-skill-removed-upstream` (S6):\n- `verdikta-hunter` — enabled in your `aeon.yml`, deleted upstream in {commit(s)}. **Not deleted here** so nothing breaks. Pick one: keep it as a fork-only skill going forward (nothing else to do), or disable it in `aeon.yml` to match upstream's current default set.\n\n### Needs manual review (conflicts - your local copy diverges from upstream)\nFor each *other* conflict reason (`enabled-skill-removed-upstream` is covered above, don't duplicate it here): what upstream changed and why it wasn't auto-applied.\n- `scripts\u002Ffoo.sh` — you customized this locally; upstream changed it in {commits}. Upstream diff:\n  ```diff\n  {short upstream base..head diff for the file}\n  ```\n\n### Operator config changed upstream (not auto-applied - reconcile by hand)\n- `aeon.yml` — upstream added skills \u002F changed defaults: {summary}. Merge the new entries you want (keep your enable\u002Fschedule\u002Fmodel choices).\n- `soul\u002F…`, `STRATEGY.md` — {summary, if changed}\n\n### Upstream commits\n| SHA | Summary |\n|-----|---------|\n| abc1234 | ... |\n```\n\nCapture the PR URL; write it back into `last_pr` in the branch's state file (amend the state commit) so the merged watermark records its own PR.\n\n### S10. Log + notify\n\nAppend to `memory\u002Flogs\u002F${today}.md` under `### aeon-update`: status, `UPSTREAM`, `${BASE7}..${HEAD7}`, applied\u002Fconflict counts, PR URL (or `report`\u002F`manual-only`), and `pending_conflicts` count.\n\n**Notify only on signal** - match `soul\u002F` voice if present. Send when there is a PR, a report with changes, or a manual-only situation; stay silent for `IN_SYNC` \u002F `BASELINE_SET`-with-nothing. Keep it ≤4000 chars:\n\n```\n*aeon-update — ${today}*\n{verdict: \"synced N commits → PR\" | \"N changes need manual merge\" | \"report: N commits behind\"}\n\nUpstream `${UPSTREAM}` is ${AHEAD} commits ahead. Applied ${N_APPLIED} cleanly, ${N_CONFLICT} need review.\n{Top applied highlight: e.g. \"new skill: `token-radar`; harness fix in run-harness\"}\n{If conflicts: \"Manual: `aeon.yml` (new skills), `scripts\u002Ffoo.sh` (local edit)\"}\n\nPR: {url}   (or \"dry run — nothing changed\")\n```\n\nPass `--mute-key \"aeon-update:${HEAD7}\"` so a muted sync doesn't re-ping for the same upstream HEAD.\n\n## Exit taxonomy\n\n| Code | When | Notify |\n|------|------|--------|\n| `AEON_UPDATE_OK` | PR opened with ≥1 clean file (conflicts, if any, listed in it) | Yes - PR link |\n| `AEON_UPDATE_MANUAL_ONLY` | Upstream changed only operator-owned \u002F conflicting files - no clean apply, no PR | Yes - manual call-out |\n| `AEON_UPDATE_REPORT` | `report` mode - delta computed, nothing mutated | Yes - dry-run summary |\n| `AEON_UPDATE_IN_SYNC` | Baseline already == upstream HEAD | No (log only) |\n| `AEON_UPDATE_BASELINE_SET` | First run - watermark anchored, nothing applied | One-line notify |\n| `AEON_UPDATE_IS_UPSTREAM` | This instance is the upstream repo itself | No (log only) |\n| `AEON_UPDATE_BASELINE_UNREACHABLE` | Baseline is not an ancestor of HEAD (history rewrite) | Yes - asks for `reset=` |\n| `AEON_UPDATE_VALIDATION_FAILED` | An applied file broke YAML\u002FJSON parsing → branch reverted | Yes - failing file |\n\n## Constraints\n\n- **Never** push to `main` or auto-write an OPERATOR-owned path (`aeon.yml`, `soul\u002F`, `memory\u002F`, `STRATEGY.md`, `.mcp.json`, `output\u002F`).\n- **Never** delete a fork-only skill, and **never** copy `catalog\u002F*.json` \u002F `eyebrowlock.json` from upstream - regenerate them.\n- **Never** advance `baseline_sha` without carrying unresolved conflicts forward in `pending_conflicts`.\n- Cross-repo compare caps at 300 files - note `files_truncated=true` and let a follow-up run pick up the rest.\n- A clean, in-sync run is **correct**, not a failure - it notifies nothing.\n\n## Network note\n\nEvery network call is `gh api`, which authenticates via `GITHUB_TOKEN` automatically - no `curl`, no `.\u002Fsecretcurl`, no `$SECRET` on the command line for the Bash permission layer to refuse, and no secret beyond the default `GITHUB_TOKEN`. There are no irreversible side-effects: the skill's only mutation is a PR against this instance's own repo, which the operator reviews and merges. Retry policy: on `403` with `X-RateLimit-Remaining: 0`, sleep 60s and retry once; on a persistent contents-API failure for one file, mark it `UNREADABLE` in the report and continue with a partial sync rather than aborting the whole run.\n",{"name":5,"metadata":23,"description":7},{"var":24,"cron":25,"mode":26,"tags":27,"title":30,"category":31},"","0 11 * * 1","write",[28,29],"dev","meta","Aeon Update","core","main","fa8f75cd49adcad9214508fdb5d1ead8fab420be","skills\u002Faeon-update","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template","https:\u002F\u002Fgithub.com\u002FLiamVisionary","2026-11-15 04:34:04",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add LiamVisionary\u002Faeon-template --skill aeon-update",{"tool":44,"command":45},"bunx","bunx skills add LiamVisionary\u002Faeon-template --skill aeon-update",{"tool":47,"command":48},"pnpm","pnpm dlx skills add LiamVisionary\u002Faeon-template --skill aeon-update","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Faeon-update\u002FSKILL.md",true,[],[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7D6W8WRJH3JVJ2JQ674AD77","you-web-search","Web search using You.com Search API with high-quality, cited results and optional real-time web crawling","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Fyou-web-search\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7D6W2XPBZZPPXPX76WMPSDA","write-tweet","Multi-format tweet studio - standalone drafts (10 across 5 size tiers), a 5-10 tweet thread, or 10 remixes of past tweets, selected via ${var}","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tweet\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7D6VZVWK4RATPHM90N71QZD","weekly-aeoncard","Build a weekly token-consumption recap image from memory\u002Ftoken-usage.csv - this week + all-time totals, top skills, rendered as a shareable SVG card.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-aeoncard\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7D6VQ7H3DHAAP0BEWTC3HK4","vuln-tracker","One lifecycle poll over everything vuln-scanner produces - PR and advisory status, PVR triage transitions, and pending-disclosure aging, with a stars-secured impact headline and one action queue.","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Fvuln-tracker\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7D6VDRA94RJKDPKJ65S47KT","vuln-scanner","Audit trending repos for real security vulnerabilities and disclose responsibly - scan and route findings (PVR \u002F dependency PR), re-submit queued advisories, and send armed email disclosures","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Fvuln-scanner\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7D6V8BNPHCTPJBJD89H8DZF","video-script","Turn a repo, product page, or update into a recording-ready video script in a receipts-first format - verifies every claim against live sources, then writes timestamped VO + on-screen direction with a plain-language glossary, assets checklist, anti-tells, and a verify-before-recording list","https:\u002F\u002Fgithub.com\u002FLiamVisionary\u002Faeon-template\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-script\u002FSKILL.md",[],[]]