Skip to content

Atlas: restore current catalogue, closed history and shared data contract - #321

Merged
nerd27dk merged 7 commits into
mainfrom
atlas/restore-current-catalogue-20261125
Nov 25, 2026
Merged

nerd27dk merged 7 commits into
mainfrom
atlas/restore-current-catalogue-20261125

Conversation

@cw-instinct

@cw-instinct cw-instinct Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Restore the Atlas layout, Live counters, card controls and badge embeds.
  • Serve 349 current records consistently through HTML, Markdown, JSON, search and MCP. Retain 38 closed records by permanent ID and in a separate archive, with external resource links disabled.
  • Add Aptets separately from the historical Agent Knowledge Network record. Keep the 71-entry earning-opportunity list.
  • Derive Verified badge dates from overview visits and preserve separate actual-use notes during overview updates.
  • Keep the frozen original inputs. The current catalogue includes 347 unchanged original packages, one independently reviewed Meta Muse revisit/reshoot and the Aptets addition.
  • Align documentation and site copy with the current contract, remove obsolete filters and regenerate the committed data mirror.

Compatibility

This is an intentional breaking replacement of general and earning record formats on existing URLs. Old claim, money and first-task fields are removed from current records. No legacy default feed is retained. Version 1.12.0 does not imply backwards compatibility.

Out-of-range former list pages redirect temporarily with 302 and no-store. Never-existing page numbers return 404.

Verification

Independent review passed, including an accepted-mode build, reproducible committed mirror, archive preservation and rejection of genuine record loss. Static checks passed for 427 indexable pages and 45,694 internal links.

The latest full Python run passed 673 tests, with skips. The final copy-only change passed 10 targeted tests. Release preparation passed 106 relevant platform tests and typecheck. All 953 platform tests passed on the earlier baseline, not on the exact final revision.

The 12 pagination redirect variants were exercised against an earlier local candidate. Final rules were checked; the exact final assets were not rerun through the Worker.

Supplemental privacy scans covered source, mirror, docs and fixtures. The protected private-term denylist was unavailable locally and has not run. Its CI check must pass before merge. Supplemental scans are not equivalent.

No merge, deployment or workflow activation. Private audit materials and local logs are excluded.

…ract

Restore the Atlas layout and Live counters, serve the 349 current records
consistently across HTML, Markdown, JSON, search and MCP, keep the 38
closed records in a separate archive, add Aptets, and regenerate the
committed data mirror. Breaking replacement of the general and earning
record shapes on existing URLs.
@cw-instinct
cw-instinct Bot requested a review from nerd27dk as a code owner November 24, 2026 22:29
@github-actions github-actions Bot added the outside-signal Report or PR from outside the Commonworld team; picked up by our sweep label Nov 24, 2026
Comment thread atlas/site/static/atlas.js Fixed
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T01:18:28.968157Z bebfaee Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5cd2ff8b9b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/site/build.py
Comment on lines +3940 to +3941
earning.attach(site, os.path.join(HERE, '..', 'catalogue', 'earning.json'))
site.earn = {'rows': site.earning_rows}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the legacy build path when attaching earning records

When build.py runs without --overviews, no cards have _overview, but this unconditional call now requires it for every selected earning entry. I reproduced this with CW_SCREENS=off python3 atlas/site/build.py --no-mirror --out /tmp/commonworld-review-dist, which exits with ValueError: agent-colony-juluo: earning selection requires a current overview. The Build step in .github/workflows/refresh.yml still invokes the bare builder, so that workflow cannot reach its checks or PR creation when run. Gate the current earning implementation on catalogue mode and preserve a working non-overview path, as required by the documented legacy compatibility.

AGENTS.md reference: AGENTS.md:L53-L53

Useful? React with 👍 / 👎.

Comment thread atlas/site/events.py Outdated
Comment on lines +103 to +104
closed = {c['slug'] for c in site.cards if c.get('status') == 'closed'}
return [inert(e) if e.get('slug') in closed else e for e in events]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Derive archived event IDs from the retained full card collection

In catalogue builds, main() filters site.cards to current Live overview cards before generating events, so this comprehension always produces an empty set. Consequently, the newly added inert-history transformation never runs: the existing IssueHunt closure event still emits https://oss.issuehunt.io in JSON and an active <https://oss.issuehunt.io> link in Markdown, despite closed resource links being excluded from current safety queries. Use site.all_cards to identify archived IDs, and update the analogous archived-ID calculation in check.py::events_checks so the checker detects this regression.

Useful? React with 👍 / 👎.

Comment thread platform/src/mcp/tools.ts
@@ -213,7 +213,7 @@ function restTool(op: Operation, spec: RestToolSpec): ToolDef {
// ---------------------------------------------------------------- Atlas tools

const atlasAnn = (title: string, untrusted: boolean): ToolAnnotations => ({ title, readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: untrusted });
const ATLAS_NOTE = 'Atlas data as published (CC BY 4.0, credit "Commonworld Atlas"): read current_limitation first, otherwise overview; legacy claims and dates retain historical meaning. A source visit is not availability or functionality verification. null means unknown. IDs are permanent slugs: take them from search results, never construct one.';
const ATLAS_NOTE = 'Atlas data as published (CC BY 4.0, credit "Commonworld Atlas"): current Live records use the same overview text, source visit date, screenshot and optional actual trials as human cards. Old claims and tasks are not current output; closed IDs return inert history. A source visit is not availability or functionality verification. null means unknown. IDs are permanent slugs: take them from search results, never construct one.';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the published agent documentation for the new contract

This changes the public MCP contract by removing historical fields and search filters, but the required platform agent documentation still describes the previous contract. In particular, platform/docs/MCP.md:222 advertises status=limited and status=closed, and lines 261–264 promise compact rows containing summary, money fields and first-task data; platform/src/pages/agent-docs.ts:163 likewise tells consumers that legacy fields retain their historical meaning. Consumers following those instructions now request unsupported filters or expect absent fields. Update these documents and the platform changelog alongside the tool definitions; AGENTS.md explicitly makes those documentation surfaces part of the definition of done.

AGENTS.md reference: AGENTS.md:L90-L95

Useful? React with 👍 / 👎.

Comment thread atlas/site/build.py Outdated
Comment on lines +3865 to +3867
if a.overviews:
from current_catalogue import apply_closures, add_new
data = add_new(apply_closures(data, os.path.join(HERE, '..', 'catalogue')), os.path.join(HERE, '..', 'catalogue'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Apply safety removals after adding catalogue overlay entries

If Aptets is subsequently safety-removed, the earlier gone filter cannot suppress it because it exists only in additions.json; this call adds it back afterward. Its overview is correctly suppressed, but it remains in site.all_cards, so the card-generation loop renders its legacy Markdown with Status: Live and Official site: https://aptets.com/. The removed-entry loop replaces only the HTML with a neutral stub, leaving /atlas/platforms/aptets/index.md publicly accessible with the removed destination. I reproduced that output using a synthetic Aptets removal and screenshot-metadata fixture. Apply the overlays before filtering removed IDs, or filter their result before constructing Site, so safety-removed additions cannot retain public card content.

AGENTS.md reference: AGENTS.md:L83-L84

Useful? React with 👍 / 👎.

Comment thread atlas/site/build.py
write(b + '/platforms/' + c['slug'] + '.json', json.dumps(one, ensure_ascii=False, indent=1) + '\n')
site.api_docs.append(('/atlas/platforms/' + c['slug'] + '.json', one, 'platform.schema.json', True))
archive = {'format': 'commonworld-atlas-archive/1', 'count': sum(c['status'] == 'closed' for c in site.all_cards), 'platforms': [agent_record(site, c) for c in site.all_cards if c['status'] == 'closed']}
write(b + '/closed.json', json.dumps(archive, ensure_ascii=False, indent=1) + '\n')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the archive JSON response headers before publishing it

The new /atlas/closed.json has no matching JSON rule in the generated _headers: only the site-wide security-header rule applies, so it receives neither Access-Control-Allow-Origin: * nor X-Robots-Tag: noindex. This affects production Static Assets as well as the Pages fallback: the production run_worker_first configuration in platform/wrangler.toml explicitly excludes /atlas/*.json, and serveAtlasAsset does not add these headers to successful responses anyway. Browser clients on another origin therefore cannot fetch the newly advertised archive index, and crawlers can index it contrary to the repository's JSON-response convention. Add an explicit archive rule with the same CORS, content-type and noindex headers as the other Atlas JSON indexes.

AGENTS.md reference: AGENTS.md:L157-L158

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5cd2ff8b9b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/site/build.py
Comment on lines +3940 to +3941
earning.attach(site, os.path.join(HERE, '..', 'catalogue', 'earning.json'))
site.earn = {'rows': site.earning_rows}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the legacy build path when attaching earning records

When build.py runs without --overviews, no cards have _overview, but this unconditional call now requires it for every selected earning entry. I reproduced this with CW_SCREENS=off python3 atlas/site/build.py --no-mirror --out /tmp/commonworld-review-dist, which exits with ValueError: agent-colony-juluo: earning selection requires a current overview. The Build step in .github/workflows/refresh.yml still invokes the bare builder, so that workflow cannot reach its checks or PR creation when run. Gate the current earning implementation on catalogue mode and preserve a working non-overview path, as required by the documented legacy compatibility.

AGENTS.md reference: AGENTS.md:L53-L53

Useful? React with 👍 / 👎.

Comment thread atlas/site/events.py Outdated
Comment on lines +103 to +104
closed = {c['slug'] for c in site.cards if c.get('status') == 'closed'}
return [inert(e) if e.get('slug') in closed else e for e in events]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Derive archived event IDs from the retained full card collection

In catalogue builds, main() filters site.cards to current Live overview cards before generating events, so this comprehension always produces an empty set. Consequently, the newly added inert-history transformation never runs: the existing IssueHunt closure event still emits https://oss.issuehunt.io in JSON and an active <https://oss.issuehunt.io> link in Markdown, despite closed resource links being excluded from current safety queries. Use site.all_cards to identify archived IDs, and update the analogous archived-ID calculation in check.py::events_checks so the checker detects this regression.

Useful? React with 👍 / 👎.

Comment thread platform/src/mcp/tools.ts
@@ -213,7 +213,7 @@ function restTool(op: Operation, spec: RestToolSpec): ToolDef {
// ---------------------------------------------------------------- Atlas tools

const atlasAnn = (title: string, untrusted: boolean): ToolAnnotations => ({ title, readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: untrusted });
const ATLAS_NOTE = 'Atlas data as published (CC BY 4.0, credit "Commonworld Atlas"): read current_limitation first, otherwise overview; legacy claims and dates retain historical meaning. A source visit is not availability or functionality verification. null means unknown. IDs are permanent slugs: take them from search results, never construct one.';
const ATLAS_NOTE = 'Atlas data as published (CC BY 4.0, credit "Commonworld Atlas"): current Live records use the same overview text, source visit date, screenshot and optional actual trials as human cards. Old claims and tasks are not current output; closed IDs return inert history. A source visit is not availability or functionality verification. null means unknown. IDs are permanent slugs: take them from search results, never construct one.';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the published agent documentation for the new contract

This changes the public MCP contract by removing historical fields and search filters, but the required platform agent documentation still describes the previous contract. In particular, platform/docs/MCP.md:222 advertises status=limited and status=closed, and lines 261–264 promise compact rows containing summary, money fields and first-task data; platform/src/pages/agent-docs.ts:163 likewise tells consumers that legacy fields retain their historical meaning. Consumers following those instructions now request unsupported filters or expect absent fields. Update these documents and the platform changelog alongside the tool definitions; AGENTS.md explicitly makes those documentation surfaces part of the definition of done.

AGENTS.md reference: AGENTS.md:L90-L95

Useful? React with 👍 / 👎.

Comment thread atlas/site/build.py Outdated
Comment on lines +3865 to +3867
if a.overviews:
from current_catalogue import apply_closures, add_new
data = add_new(apply_closures(data, os.path.join(HERE, '..', 'catalogue')), os.path.join(HERE, '..', 'catalogue'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Apply safety removals after adding catalogue overlay entries

If Aptets is subsequently safety-removed, the earlier gone filter cannot suppress it because it exists only in additions.json; this call adds it back afterward. Its overview is correctly suppressed, but it remains in site.all_cards, so the card-generation loop renders its legacy Markdown with Status: Live and Official site: https://aptets.com/. The removed-entry loop replaces only the HTML with a neutral stub, leaving /atlas/platforms/aptets/index.md publicly accessible with the removed destination. I reproduced that output using a synthetic Aptets removal and screenshot-metadata fixture. Apply the overlays before filtering removed IDs, or filter their result before constructing Site, so safety-removed additions cannot retain public card content.

AGENTS.md reference: AGENTS.md:L83-L84

Useful? React with 👍 / 👎.

Comment thread atlas/site/build.py
write(b + '/platforms/' + c['slug'] + '.json', json.dumps(one, ensure_ascii=False, indent=1) + '\n')
site.api_docs.append(('/atlas/platforms/' + c['slug'] + '.json', one, 'platform.schema.json', True))
archive = {'format': 'commonworld-atlas-archive/1', 'count': sum(c['status'] == 'closed' for c in site.all_cards), 'platforms': [agent_record(site, c) for c in site.all_cards if c['status'] == 'closed']}
write(b + '/closed.json', json.dumps(archive, ensure_ascii=False, indent=1) + '\n')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the archive JSON response headers before publishing it

The new /atlas/closed.json has no matching JSON rule in the generated _headers: only the site-wide security-header rule applies, so it receives neither Access-Control-Allow-Origin: * nor X-Robots-Tag: noindex. This affects production Static Assets as well as the Pages fallback: the production run_worker_first configuration in platform/wrangler.toml explicitly excludes /atlas/*.json, and serveAtlasAsset does not add these headers to successful responses anyway. Browser clients on another origin therefore cannot fetch the newly advertised archive index, and crawlers can index it contrary to the repository's JSON-response convention. Add an explicit archive rule with the same CORS, content-type and noindex headers as the other Atlas JSON indexes.

AGENTS.md reference: AGENTS.md:L157-L158

Useful? React with 👍 / 👎.

Make closed event source links inert, apply safety removals after editorial
additions, add archive JSON headers, align published MCP/agent docs and
changelog with the current contract, make the bare builder select the
current inputs, restore the platform README subtitle and update the browser
smoke checks to the current-only catalogue. Add regression tests.
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8a0e5cd276

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/site/badges.py Outdated
Comment on lines +49 to +50
if card.get('_overview') and card.get('status') != 'closed':
return 'verified', 'Verified · ' + card['_overview']['visited_at'][:10]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Guard badge generation for undated draft overviews

When an overview is a draft with visited_at: null, which overviews.problems() explicitly permits and the migration tool produces, this branch raises TypeError: 'NoneType' object is not subscriptable. I reproduced this by calling status_of() with an undated draft. overviews.render_html() calls badge_block() even for pending cards, so these valid drafts cannot be rendered for local review. Require a reviewed overview with a valid visit date before generating a Verified badge, and handle undated drafts without slicing a null value.

Useful? React with 👍 / 👎.

Replace the generic data-href redirect handler with a native link for the
Earn counter. Make badge status and the draft page identity safe for
undated draft overviews: only a reviewed overview with a valid UTC visit
time is Verified. Add regression tests.
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6321e95dcd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/site/build.py Outdated
site.by_cat = defaultdict(list)
for c in site.cards: site.by_cat[c['category']].append(c)
if getattr(site, 'catalogue_mode', False):
site.latest = max((parse_time(c['_overview']['visited_at']) for c in site.cards), default=None)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude undated drafts from the newest-visit calculation

When --draft-preview includes an overview with visited_at: null, which overviews.problems() explicitly permits for drafts, parse_time() returns None and this max() raises a TypeError when comparing it with another overview's datetime. I reproduced this through build.main() using synthetic screenshot metadata and the current overview document with Kradleverse changed to an undated draft. Although badge rendering now handles these drafts, the preview build still crashes before rendering any pages. Filter out missing dates before taking the maximum, retaining None when no dated visits exist.

Useful? React with 👍 / 👎.

Ignore missing visit dates when computing the newest visit in the build
and on the Earn page. Draft previews name separate preview-only Earn
schemas that allow a null visit date; release schemas are unchanged.
Add full mixed and all-undated preview regressions and document the
local preview contract.
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31d1afb23e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/site/build.py
Comment on lines +901 to +903
site.catalogue_mode = False
try:
raw = build_platform(site, c)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Bypass current-overview rendering for closed cards

When a reviewed current card is subsequently added to closures.json, it retains _overview. Disabling catalogue_mode does not bypass the recursive call's _overview branch, so it renders the current overview rather than historical content. I reproduced this by marking Kradleverse closed: both HTML and Markdown still say Live · Verified, historical claims are absent, and JSON correctly says closed. The archive transformation disables links but does not correct that status. Use an archive-specific rendering path that preserves history and consistently displays Closed in both twins.

AGENTS.md reference: AGENTS.md:L83-L84

Useful? React with 👍 / 👎.

Comment thread atlas/site/build.py Outdated
Comment on lines +3933 to +3934
from current_catalogue import new_overviews
doc = new_overviews(doc, os.path.join(HERE, '..', 'catalogue'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restrict catalogue overlays to the matching source package

For an isolated overview batch that omits Meta Muse, this unconditional merge applies the repository's current-revisions.json to the unrelated input and raises current revision has unknown permanent ID. I reproduced this with a one-card Kradleverse draft using --draft-preview --no-mirror. This breaks the offline batch-preview command still generated by overview_bundle.make() in atlas/site/overview_bundle.py:77–80; the builder's --help also explicitly advertises --data as a custom snapshot with a matching overview source. Apply repository overlays only to the matching catalogue input, or resolve overlays from the explicitly selected source package, so isolated handoffs remain previewable.

Useful? React with 👍 / 👎.

A card closed after review no longer renders the current overview. The
overview text stays as a labelled historical section and in the archive
JSON. Closures run after additions and current counters exclude closed
cards. Catalogue-wide overlays apply only to the canonical snapshot and
overviews pair, so a custom review batch no longer inherits unrelated
cards, revisions or captures. Add lifecycle regression tests.
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa3f264754

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/tools/link_safety.py Outdated
directory = Path(catalogue)
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'site'))
from catalogue_safety import current_links
out = {h: set(v) for h, v in linked_hosts(snap, files).items()}
from current_catalogue import apply_closures, add_new, new_overviews
snap = add_new(apply_closures(snap, directory), directory)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Apply closures after additions in both safety projections

If Aptets is subsequently added to closures.json, this ordering applies its closure before the card exists, then inserts it as Live. Using a temporary copy of the actual catalogue with that closure added, I confirmed that catalogue_hosts() still returns aptets.com: ['aptets']. The same ordering in apply_removals() leaves it outside the closed-ID exemption, so a flagged result can replace its retained history with a safety-removal stub even though the builder correctly treats it as closed. Apply additions before closures in both functions, matching the builder, so closed additions are neither queried nor removed.

AGENTS.md reference: AGENTS.md:L83-L84

Useful? React with 👍 / 👎.

Add one shared snapshot projection that adds new cards first and then
applies closures. The builder, link safety host query and removal, the
overview workbench and the growth check now use it, so a closed added
card is treated as closed in every tool. Add regression tests and an
inventory guard against direct composition.
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 295bb8b84b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread atlas/site/build.py
Comment on lines 3950 to 3952
doc = catalogue_safety.active_document(doc, gone)
selection = [s for s in selection if s not in gone] if selection is not None else None
overviews.attach(site, doc, allow_drafts=a.draft_preview, expected=selection)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Exempt closed overviews from current-host safety validation

After a reviewed card is added to closures.json and the catalogue safety report is regenerated, its retained overview still passes through overviews.attach()'s clean-host gate. However, catalogue_hosts() now excludes closed IDs, and build_report() drops their otherwise-unused hosts. Consequently, closing Kradleverse and regenerating that host set makes attachment fail with kradleverse: source domain lacks a clean safety result: kradle.ai, blocking the next accepted build despite the archive disabling external links. Keep historical content validation, but exempt closed cards from current-host safety requirements.

AGENTS.md reference: AGENTS.md:L83-L84

Useful? React with 👍 / 👎.

A closed card keeps its reviewed overview as archive history with external
links disabled. Its hosts are no longer in the regenerated safety report, so
the accepted build must not require a clean current-host result for it.
Only an explicit closed status is exempt, after the structure, receipt,
capture and selection checks. Live and unknown cards keep the clean gate,
including a live card that shares a historical host. Add a lifecycle test that
regenerates the safety report through the CLI from recorded answers, and
boundary tests for the exemption.
@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: bebfaee5ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@nerd27dk
nerd27dk merged commit 5be6bf0 into main Nov 25, 2026
14 checks passed
@nerd27dk
nerd27dk deleted the atlas/restore-current-catalogue-20261125 branch November 25, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

outside-signal Report or PR from outside the Commonworld team; picked up by our sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants