Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"name": "Te-Shu Wang"
},
"metadata": {
"description": "Content-readiness lint with evidence-bounded AI discovery experiments",
"description": "Content-readiness lint with an evidence-bounded SEO experiment ledger",
"version": "0.10.0"
},
"plugins": [
{
"name": "geoptimize",
"source": "./",
"description": "CLI and Claude Code skills for reproducible content-readiness checks",
"description": "CLI and skills for content-readiness checks and SEO experiments",
"category": "seo",
"tags": ["geo", "seo", "ai-search", "llms-txt", "structured-data"],
"homepage": "https://github.com/cucuwang/geoptimize",
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geoptimize",
"description": "Content-readiness lint and evidence-bounded discovery experiments",
"description": "Content-readiness lint with an evidence-bounded SEO experiment ledger",
"version": "0.10.0",
"author": {
"name": "Te-Shu Wang"
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable user-visible changes will be documented here. The project follows Semantic Versioning after the v0.6 evidence baseline is released.

## Unreleased

### Documentation

- Updated current-state documentation after the verified v0.10.0 publication.
- Aligned migration, maintainer-security, OpenSSF, Action sample, and plugin descriptions with the published release.

## 0.10.0

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@ npx skills add cucuwang/geoptimize

## Project status

Version 0.10 adds a separate, evidence-bounded SEO experiment ledger while retaining the existing readiness score and audit contracts. Release acceptance and rollback are documented in [docs/release-v0.10.md](docs/release-v0.10.md); longer-term adoption work remains in [ROADMAP.md](ROADMAP.md).
Version 0.10.0 is published on [npm](https://www.npmjs.com/package/geoptimize) and [GitHub](https://github.com/cucuwang/geoptimize/releases/tag/v0.10.0). It adds a separate, evidence-bounded SEO experiment ledger while retaining the existing readiness score and audit contracts. Release acceptance and rollback are documented in [docs/release-v0.10.md](docs/release-v0.10.md); longer-term adoption work remains in [ROADMAP.md](ROADMAP.md).

Contributions are welcome. Rule changes require an evidence note and positive/negative fixtures; see [CONTRIBUTING.md](CONTRIBUTING.md). Report vulnerabilities through the process in [SECURITY.md](SECURITY.md).

## Release integrity and security maintenance

The next-release trust-hardening path is documented in [the v0.10 runbook](docs/release-v0.10.md).
The v0.10 trust-hardening and release path is documented in [the v0.10 runbook](docs/release-v0.10.md).
CI validates Node 22/24 tarballs, package contents and CLI/Action contracts; the
release preparation exports SHA-256 checksums and an SPDX production-dependency SBOM.
Repository settings and npm authorization remain explicit [maintainer gates](docs/maintainer-security-settings.md).
Expand Down
10 changes: 5 additions & 5 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ The code-level gates are enforced by `npm run release:check`, `src/core/__tests_
- automatic deployment of generated JSON-LD or crawler policy;
- adding more AI scorers and calling their average consensus.

## v0.10 — Trust hardening
## v0.10 — Trust hardening (released)

Repository preparation covers SHA-pinned Actions, minimal token permissions, a
reusable release pipeline, OIDC preparation, tarball hashes/SPDX/attestations,
dependency review, CodeQL, Dependabot, Scorecard and maintainer governance guidance.
Account settings, signing identity and actual publication are separate gates;
OpenSSF Passing is pending assessment. Package version remains 0.9.0 until release
approval. Bundled Action runtime evaluation is tracked separately to preserve the
package-spec contract. See [release-v0.10](docs/release-v0.10.md).
Version 0.10.0 is published with npm OIDC provenance, an SSH-signed immutable tag,
SHA-256 checksums, an SPDX SBOM and a GitHub artifact attestation. OpenSSF Passing
remains pending assessment. Bundled Action runtime evaluation is tracked separately
to preserve the package-spec contract. See [release-v0.10](docs/release-v0.10.md).
9 changes: 5 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Release candidates retain the high/critical npm audit gate. Pull requests add
dependency review; weekly Dependabot and CodeQL/Scorecard workflows support ongoing
triage. Configuration alone does not establish a clean scan or certification.

The next automated release uses npm OIDC, tarball attestations, checksums and a locked
production SBOM. Follow [release verification](docs/release-v0.10.md) and
[maintainer security settings](docs/maintainer-security-settings.md). Existing releases
are not retroactively signed or attested. No long-lived npm credential is required.
Automated releases use npm OIDC, tarball attestations, checksums and a locked
production SBOM. Version 0.10.0 is the first release published through this path.
Follow [release verification](docs/release-v0.10.md) and [maintainer security
settings](docs/maintainer-security-settings.md). Earlier releases are not
retroactively signed or attested. No long-lived npm credential is required.
5 changes: 3 additions & 2 deletions docs/action-reproducibility.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Action reproducibility decision

Decision: retain the composite Action for this PR; evaluate a bundle separately in [issue #20](https://github.com/cucuwang/geoptimize/issues/20).
The v0.10 trust-hardening review retained the composite Action and left bundle
evaluation to [issue #20](https://github.com/cucuwang/geoptimize/issues/20).
Both Action metadata paths now pin setup-node to an upstream commit. The default
package-spec remains the exact published geoptimize version. No runtime behavior
or package-spec override has been removed.
Expand All @@ -18,7 +19,7 @@ The public `package-spec` input deliberately permits test tarballs/alternate spe
Always running a fixed bundle would ignore that input; retaining an installer fallback
preserves much of the current surface. Puppeteer-core/browser paths, ESM dependencies,
and dynamic imports need bundle testing even though the Action's normal scan is local.
A broad runtime rewrite is outside this security PR.
A broad runtime rewrite remains outside this decision.

Follow-up acceptance: prototype size and cold-run timing; build the bundle twice from
npm ci and compare hashes; preserve both metadata paths, package-spec semantics,
Expand Down
66 changes: 34 additions & 32 deletions docs/maintainer-security-settings.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Maintainer security settings

Snapshot: 2026-09-09. Configuration files do not prove account settings are enabled.
The states below were read back through the repository administration API after an
authorized settings update. No credentials, production tags or releases were changed.
Snapshot: 2026-09-11. Configuration files do not prove account settings are enabled.
The states below were read back through the repository administration API, npm package
settings and the completed v0.10 release. No credential values are stored here.

## GitHub rulesets

Expand Down Expand Up @@ -36,8 +36,9 @@ The first five job identifiers and Node matrix values are preserved. The ruleset
the observed PR context names rather than nested `validate / …` names from the manual
release workflow. It requires branches to be up to date and has no path filters.

`protect-release-tags` (ID 22617499) is already Active for `v*.*.*`, blocking updates,
deletion and non-fast-forward changes with no bypass actors. Preserve it and v0.9.0.
`protect-release-tags` (ID 22617499) is Active for `v*.*.*`, blocking updates,
deletion and non-fast-forward changes with no bypass actors. Preserve the existing
v0.9.0 and signed v0.10.0 tags.

## Security feature settings

Expand All @@ -52,49 +53,50 @@ and analysis). Enable/check each independently:
| Secret Protection → Secret scanning | Enabled |
| Secret Protection → Push protection | Enabled |
| Private vulnerability reporting | Enabled; the repository API returned `enabled: true` |
| Code scanning → CodeQL | Advanced workflow passed on PR #19; first main execution remains pending |
| Code scanning → CodeQL | Advanced workflow passes on current main and protected pull requests |

The initial Dependency Review failure reported that the dependency graph was disabled.
After enablement, the same head passed without suppressing the check or adding a PAT.
Recheck these settings through the API and UI after ownership or security-plan changes.

## Immutable releases (state not confirmed)
## Immutable releases

Settings → General → Releases → **Enable release immutability**. This applies to
future releases, not existing v0.9.0. Save before the next publication.
The workflow creates a draft, uploads tarball/checksums/SBOM, publishes npm, then
publishes the draft. A finalized immutable release cannot have assets replaced;
recover by fixing forward. Review Marketplace metadata/terms before dispatch because
finalization must happen only after all desired assets and metadata are in place.
Release immutability is enabled for the repository. It applies to v0.10.0 and future
releases; historical v0.9.0 predates this setting. The workflow creates a draft,
uploads tarball/checksums/SBOM, publishes npm, then publishes the draft. A finalized
immutable release cannot have assets replaced; recover by fixing forward. Review all
assets and metadata before finalization.

## npm Trusted Publisher and release gate

1. npmjs.com → package **geoptimize** → Settings → Trusted Publisher → GitHub Actions.
2. Organization/user: `cucuwang`; repository: `geoptimize`; workflow filename:
`release.yml`; environment: `npm-release` (exact spelling; no directory prefix).
3. GitHub Settings → Environments → New environment `npm-release`. Restrict deployment
branches to `main`. Configure cucuwang as reviewer if available; allow self-review
for a single maintainer, otherwise the workflow cannot be approved.
4. After all checklist items and a successful dry run, Settings → Secrets and
variables → Actions → Variables: set `RELEASE_ENABLED` to `true`.
5. Do not add an npm token. The publication job uses GitHub-hosted Node 24 and checks
npm >=11.5.1; npm OIDC supplies short-lived authorization.
6. Actual publication requires a separate authorization and manual dispatch with
`publish=true`; the default remains false. No tag-push auto-publication exists.
Current state

- npm Trusted Publisher binds `cucuwang/geoptimize`, `release.yml` and the
`npm-release` environment. It permits `npm publish` and `npm stage publish`.
- The GitHub `npm-release` environment accepts only `main` through a custom branch
policy. Repository variable `RELEASE_ENABLED` is `true`.
- The publication job uses GitHub-hosted Node 24 and npm OIDC. No long-lived npm token
is configured for this path.
- Publication still requires a separately authorized manual dispatch with
`publish=true`; the default remains false. Tag pushes do not publish automatically.

For future releases, preserve the exact publisher owner, repository, workflow filename
and environment spelling. Review the signed tag, source SHA and release assets before
dispatching publication.

## Signing identity and OpenSSF

GitHub account Settings → SSH and GPG keys: register an existing approved public
signing key (SSH key type: Signing key, or GPG public key). Configure signing locally
following GitHub's signing guide. This PR does not create or manage keys. Verify a
new annotated signed tag with `git tag -v` and GitHub's Verified indicator; a verified
commit with an unsigned/lightweight tag is insufficient.
An approved existing SSH public key is registered with GitHub as a signing key. The
repository-local signing configuration uses that public-key path, while the private key
remains local. GitHub verified the annotated v0.10.0 tag as valid and linked it to the
release commit. Future release tags require the same explicit signing and readback;
a verified commit with an unsigned or lightweight tag is insufficient.

At https://www.bestpractices.dev/ sign in and register
`https://github.com/cucuwang/geoptimize`. Complete the Passing questionnaire using
[the gap analysis](openssf-best-practices.md). Only add its badge after the service
actually awards Passing. Scorecard's result badge is likewise deferred until a
successful main-branch upload is visible at scorecard.dev.
actually awards Passing. Scorecard workflows now succeed on main; add a result badge
only after its public score page and repository identity are read back.

References: [npm OIDC](https://docs.npmjs.com/trusted-publishers/),
[immutable releases](https://docs.github.com/en/code-security/how-tos/secure-your-supply-chain/establish-provenance-and-integrity/prevent-release-changes),
Expand Down
10 changes: 5 additions & 5 deletions docs/migrating-from-aeoptimize.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

`geoptimize` continues the same project previously published as `aeoptimize`. Version 0.7.0 was released under the old npm name; version 0.8.0 is the first release under the new name. The GitHub repository retains the project history, issues, releases, and stars.

[geoptimize on npm](https://www.npmjs.com/package/geoptimize) · [aeoptimize on npm](https://www.npmjs.com/package/aeoptimize) · [v0.7.0 release](https://github.com/cucuwang/geoptimize/releases/tag/v0.7.0) · [v0.8.0 release](https://github.com/cucuwang/geoptimize/releases/tag/v0.8.0)
[geoptimize on npm](https://www.npmjs.com/package/geoptimize) · [aeoptimize on npm](https://www.npmjs.com/package/aeoptimize) · [v0.7.0 release](https://github.com/cucuwang/geoptimize/releases/tag/v0.7.0) · [current release](https://github.com/cucuwang/geoptimize/releases/tag/v0.10.0)

## Update an existing project

If the old package installed a pre-commit hook, remove that hook before uninstalling the package, using the hook instructions below. For a development dependency, replace the package and update the commands and imports below. If the package is a runtime dependency, keep it in `dependencies` instead of using `--save-dev`.

```bash
npm uninstall aeoptimize
npm install --save-dev geoptimize@0.8.0
npm install --save-dev geoptimize@0.10.0
```

| Integration | aeoptimize 0.7.0 | geoptimize 0.8.0 |
| Integration | aeoptimize 0.7.0 | geoptimize 0.8.0 and later |
| --- | --- | --- |
| npm package and core imports | `aeoptimize` | `geoptimize` |
| CLI commands | `aeoptimize`, `aeo`, `aeo-cli` | `geoptimize`, `geo`, `geo-cli` |
| Vite import | `aeoPlugin` from `aeoptimize/vite` | `geoPlugin` from `geoptimize/vite` |
| Next.js import | `withAeo` from `aeoptimize/next` | `withGeo` from `geoptimize/next` |
| GitHub Action | `cucuwang/aeoptimize@v0.7.0` | `cucuwang/geoptimize@v0.8.0` |
| GitHub Action | `cucuwang/aeoptimize@v0.7.0` | `cucuwang/geoptimize@v0.10.0` |
| Bundled skills | `aeo-scan`, `aeo-generate`, `aeo-transform` | `geo-scan`, `geo-generate`, `geo-transform` |
| Generated schema directory | `_aeo` | `_geo` |

Expand All @@ -34,7 +34,7 @@ npx --no-install geoptimize --version
npx --no-install geoptimize audit-build ./dist --json
```

The version should be `0.8.0`. Build the consuming project and review its output after updating Vite or Next.js imports. Deterministic scoring and audit evidence contracts are preserved across the rename.
The installed version should be `0.10.0`. Build the consuming project and review its output after updating Vite or Next.js imports. Deterministic scoring and audit evidence contracts are preserved across the rename.

## Package history and download counts

Expand Down
8 changes: 4 additions & 4 deletions docs/openssf-best-practices.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OpenSSF Best Practices: Passing gap analysis

Assessment date: 2026-09-09. This is evidence preparation, not a certification or
Assessment date: 2026-09-09; release evidence reviewed 2026-09-11. This is evidence preparation, not a certification or
completed questionnaire. [Official Passing criteria](https://www.bestpractices.dev/en/criteria/0?details=true&rationale=true)
remain authoritative; review every applicable MUST/MUST NOT and justify SHOULD items
when registering. Silver and Gold are outside scope.
Expand All @@ -21,13 +21,13 @@ These are observable artifacts, not a declaration that every criterion in an are
is met. Public source availability does not establish license compatibility of every
transitive dependency or the maintainer's historical response performance.

## Repository changes required
## Repository and evidence status

| Work | Status / evidence needed |
| --- | --- |
| Static analysis for application and workflow sources | CodeQL passed on PR #19; first main run and ongoing finding triage remain |
| Static analysis for application and workflow sources | CodeQL and Scorecard workflows pass on current main; ongoing finding triage remains |
| Automated dependency review and updates | Dependency Review passed; Dependabot alerts, security updates and weekly version updates are enabled |
| Verifiable release integrity | OIDC workflow, SBOM, checksums and attestation prepared; next authorized release supplies public evidence |
| Verifiable release integrity | v0.10.0 is public with npm OIDC provenance, an SSH-signed tag, checksums, an SPDX SBOM and a GitHub attestation; future releases must repeat the same gates |
| Document operational trust boundaries | Release/settings/Action decision documents added |
| Release notes for security fixes | Changelog process exists; describe actual fixes and identifiers when applicable |

Expand Down
Loading
Loading