Skip to content

feat!: one private site at the root, no full or staff split (SW-345) - #64

Merged
brunosouzas-agent merged 8 commits into
mainfrom
feature/sw-345-single-site
Dec 6, 2026
Merged

brunosouzas-agent merged 8 commits into
mainfrom
feature/sw-345-single-site

Conversation

@brunosouzas-agent

@brunosouzas-agent brunosouzas-agent commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Plan

  • Repository: stackledger (public). Spec: OpenSpec. Delivery: B package, Model 2 (release PR). Tracker: SW-345. Approver: brunosouzas.
  • Size: spec (changes where stackledger build writes, _redirects, Settings handling, hosting recipes).
  • Change: implements ADR 13: stackledger build writes one private site at the root, with every field; old /full/... links redirect with 301 (_redirects and the Caddy example); the staff view stays in code but is deprecated and unreachable from the build; spec.sites and spec.views.staff.hide warn; --view staff on mcp and map prints a deprecation line.
  • Breaking: feat!. The version is set by release-please only.
  • Out of scope: stackledger-catalog and its pipeline (SW-350), SW-346 to SW-349, the brand mark (SW-304).

What changed

  • src/site/: one build into <staging>/site/, the marker in <staging>/root/, an entries list. Publication swaps every name of the new and the previous build (sorted, marker last), so an older full/ and staff/ move into old/ and disappear. Undo, the UndoFailed path and the manual restore (docs/site.md, test/manual-restore.ts) follow the new layout.
  • _redirects: /full / 301 and /full/* /:splat 301.
  • Site pages: no view name in the footer, Reports and the calendar always there.
  • examples/hosting/Caddyfile: one group, readers; /full and /full/<path> redirect to /<path> after the check.
  • examples/catalogue-repository/: the handoff copies the build folder without its marker; README with one Access application.
  • Docs: site.md, hosting.md, how-it-works.md, catalogue-format.md, mcp.md, map.md, reports.md, architecture.md, demo.md, roadmap.md, README, AGENTS.md.
  • OpenSpec change archived in this branch (openspec/changes/archive/2026-12-06-single-site/), specs merged.

Exit checklist

  • S1 Checks: npm run build ok; npm test 1432 passed, 11 skipped (the Caddy tests are skipped here: caddy is not installed on this Mac, CI installs a pinned one, so the Caddyfile is unverified locally); npm run test:browser 82 passed; openspec validate --all --strict 21 passed. Every scenario of the change maps to a test in openspec/changes/archive/2026-12-06-single-site/tasks.md.
  • S2 Review: 1 round by an independent reviewer (clean context). Fixed: the pipeline handoff now stops when a .stackledger-tmp-* folder is left (workflow, demo, docs); added tests for exact published entries, spec.sites changing nothing, /staff/ and a double slash in Caddy, and a crawl under a path prefix (/catalogue/) in Playwright; Caddy redirect no longer matches /full//host; docs (README, AGENTS.md, catalogue-format example, restore note for the old layout) corrected. Not fixed: dead staff branch in src/site/data.ts (goes with the staff view); the pins at 0.8.0 (follow-up after the release); Cloudflare's handling of :splat with a double slash not verifiable here.
  • S3 Documentation: updated: docs/site.md, docs/hosting.md, docs/how-it-works.md, docs/catalogue-format.md, docs/mcp.md, docs/map.md, docs/reports.md, docs/architecture.md, docs/demo.md, docs/roadmap.md, docs/skills.md, README.md, AGENTS.md, examples/. After merge: the public demo (docs/demo.md) and the private catalogue repository (SW-350) move to the new layout once the release is out.
  • S4 Preview: n/a (no hosted preview; the browser tests serve the built site at /).
  • S5 Merge: level 2, brunosouzas approves; release-please's release PR is his too.

For Bruno

  • The one-site layout is in the first release after 0.10.1. The template and demo pin older versions (@0.8.0); with an older pin the build still writes full/ and staff/, and the new handoff would publish both. Move the pins in the same pull request that adopts the release.
  • Before the catalogue repository (SW-350) deploys this layout: one Access application on the whole address, allowing only the people who were on /full/*, before the first deploy (docs/hosting.md).
  • G1: not run as a separate stop. Bruno's decisions came in the task brief; the open choices (301, group readers, --view staff kept with a deprecation line) are in the spec's design.md for you to correct here.

Part of SW-345

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Dec 6, 2026

Copy link
Copy Markdown

SW-345

brunosouzas-agent and others added 2 commits December 6, 2026 07:24
stackledger build writes one site at the root of the output folder, with every
field, instead of full/ and staff/. The old /full/ addresses redirect to the
same path at the root (_redirects and the Caddy example). The staff view stays
in the code but is deprecated and unreachable from the build; spec.sites and
spec.views.staff.hide warn, and mcp/map --view staff print a deprecation line.
Publication replaces every entry of the marked output folder, so an older
full/ and staff/ disappear. Hosting, the catalogue pipeline template, the
Caddy example and the docs move to one Access application on the whole address.

BREAKING CHANGE: the build no longer writes full/ and staff/; publish the
files at the root of the output folder, and put one access rule on the whole
address that admits only people who may see everything.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, double-slash redirect)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@brunosouzas-agent
brunosouzas-agent marked this pull request as ready for review December 6, 2026 07:33
brunosouzas-agent and others added 4 commits December 6, 2026 07:47
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@brunosouzas-agent
brunosouzas-agent merged commit 1c6ffb2 into main Dec 6, 2026
8 checks passed
@brunosouzas
brunosouzas deleted the feature/sw-345-single-site branch December 6, 2026 08:23
brunosouzas-agent pushed a commit that referenced this pull request Dec 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.11.0](v0.10.1...v0.11.0)
(2026-12-06)


### ⚠ BREAKING CHANGES

* one private site at the root, no full or staff split (SW-345)
([#64](#64))

### Features

* one private site at the root, no full or staff split (SW-345)
([#64](#64))
([1c6ffb2](1c6ffb2))
* read Claude Code plugin marketplaces as skill sets
([#65](#65))
([e3edbff](e3edbff))
* skills map draws journeys as lines and marketplaces as zones
([#69](#69))
([5770b76](5770b76))
* the favicon and header mark are the family mark (SW-304)
([#66](#66))
([84d9c11](84d9c11))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: brunosouzas-stackledger-release[bot] <354400371+brunosouzas-stackledger-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants