OpenSpec-practise

From Security Hardening to Linked Specs: OpenSpec v1.14.3 Workflow Practice

OpenSpec shipped six releases between v1.13.1 and v1.14.3 in about a month, none with breaking changes. Unlike v1.13.0’s theme of “eliminating silent failures,” this stretch is about tightening boundaries: configuration injection, path escapes, symlinks, and unknown metadata are closed off one by one, while validation and archiving become more predictable.

This article walks the post-upgrade workflow through a real, small practice — “Python order detail lookup” (python-order-get-by-id) — and records the compatibility checks actually performed during the upgrade. The change is also the first use of skip_specs: true in this repository, a mechanism worth explaining on its own.

1. What Changed Across Six Releases (Practice Perspective)

1.1 v1.13.1: Security Hardening and Profile-Aware Skills

This is the most security-heavy release of the six:

1.2 v1.13.2: Verify and Windows Archive

1.3 v1.14.0: Ten Tools and Archived-Change Browsing

1.4 v1.14.1: Faster Startup and Incremental Writes

1.5 v1.14.2: Extension Metadata and Archive Warnings

1.6 v1.14.3: Linked Specs and Glob Boundaries

2. Upgrade Steps and Compatibility Checks

The repository followed the same upgrade path recorded in previous CHANGELOG entries:

npm install -g @fission-ai/openspec@1.14.3
openspec --version       # 1.14.3
openspec update --force  # refresh commands and skills under .claude/

openspec update --force refreshed 12 files (6 commands + 6 skills) with +353/−97 lines. The command ended with an important note:

Note: 6 more workflows are available (new, continue, ff, bulk-archive, verify, onboard).
Add them with `openspec config profile`.

This confirms that the default core profile still contains six commands: propose, explore, apply, update, sync, and archive. new, continue, ff, bulk-archive, verify, and onboard are optional workflows that require openspec config profile followed by openspec update. This upgrade did not change the repository’s default command surface, so .claude/commands/opsx/ still contains the same six files.

Post-upgrade compatibility checks:

$ openspec validate --specs --report findings
Scope: specs (7 items)
No item findings.
Totals: 7 passed, 0 failed (7 items)

$ openspec validate --archived
✓ change/2025-01-27-v1-mvp
✓ change/2026-07-08-add-product-get-by-id
✓ change/2026-07-28-add-product-search
✓ change/2026-09-02-cart-query-and-remove
✓ change/2026-09-10-order-list-query
Totals: 5 passed, 0 failed (5 items)

Two strict-validation changes that commonly bite during upgrades do not affect this repository:

Node 18/18 and Python 6/6 remained green after the upgrade.

3. The Practice Change: python-order-get-by-id

3.1 Explore: Finding the Gap from the Spec Inventory

Following the template introduced in v1.13, the first step is the capability inventory:

$ openspec list --specs
Specs:
  cart-management        requirements 4
  catalog-management     requirements 4
  domain-model           requirements 5
  error-handling         requirements 2
  order-management       requirements 4
  payment                requirements 2
  product-query          requirements 1

The “订单查询” requirement in order-management already defines the 200 and 404 scenarios, but comparing the route tables of both implementations shows that Node’s server.js has GET /api/orders/:id, while Python’s server.py has no matching route. The v1.13.0 practice article had already named this gap in its “Open Observations” section, making it a good small practice.

Why pick it:

3.2 Propose: The First Use of skip_specs

Following the v1.14 template, openspec context --json runs first to confirm the authoritative root, then the change is created:

openspec new change python-order-get-by-id \
  --goal "Close the Python implementation gap for GET /api/orders/{id}"

The key decision is not writing a delta spec. order-management already fully describes the “order query” behavior; this change is implementation alignment only. openspec validate rejects a zero-delta change unless .openspec.yaml declares:

schema: spec-driven
created: 2026-10-19
goal: Close the Python implementation gap for GET /api/orders/{id}
skip_specs: true

skip_specs is not a shortcut for skipping spec thinking. It applies to pure refactors, tooling, documentation, or — as here — cases where the behavior contract is unchanged and only the implementation is being completed. proposal, design, and tasks are still generated as usual; the specs artifact shows as skipped in openspec status:

proposal: done
specs: skipped
design: done
tasks: done

Inventing a MODIFIED requirement just to pass validation would pollute the main spec’s single source of truth.

3.3 Apply: Service Method, Route, and Test

Three Python files changed:

The test uses a dedicated user_order_detail instead of reusing another test’s user ID. Python’s MemoryRepo is a module-level singleton in server.py, so tests share one in-memory state; a dedicated user ID avoids order-dependent coupling. The assertions check camelCase fields (userId, totalCents, items[].productId, items[].priceCents) to ensure Python’s Pydantic aliases match Node’s order JSON.

Node needed no changes: GET /api/orders/:id already existed. One known difference remains — Node returns {code, message}, while Python returns FastAPI’s {detail}. That is global debt at the error-handling spec level, and this change deliberately did not widen its scope to fix it.

Results:

Node:   18 passed
Python: 7 passed

3.4 Validate: skip_specs Is Visible

$ openspec validate python-order-get-by-id --type change
Change 'python-order-get-by-id' is valid
ℹ [INFO] file: skip_specs is set in .openspec.yaml: change declares no spec-level
  behavior changes, zero deltas accepted

This INFO matters: the tool does not silently pass skip_specs; it explicitly tells the reader that the change declares no spec-level behavior changes. The main specs are still checked in findings mode:

$ openspec validate --specs --report findings
Scope: specs (7 items)
No item findings.
Totals: 7 passed, 0 failed (7 items)

3.5 Archive: Archiving Without Delta Merges

$openspec archive python-order-get-by-id

There were no deltas to merge, so the archive step only moved the change directory and performed cleanup. Afterwards:

$ openspec validate --archived
Totals: 6 passed, 0 failed (6 items)

$ openspec list --archived
Archived Changes:
  2026-10-19-python-order-get-by-id     ✓ Complete    2026/10/19
  2026-09-10-order-list-query           ✓ Complete    2026/9/10
  ...

3.6 Practice Results

Check Result
openspec validate python-order-get-by-id --type change valid (INFO: skip_specs)
openspec validate --specs --report findings 7/7, no findings
openspec validate --archived 6/6
Node npm test 18/18
Python pytest 7/7
New Python endpoint GET /api/orders/{id}, 200/404

4. Takeaways and Open Observations

4.1 The Value of This Release Range Is “Error Out on Boundary Violations”

The changes from v1.13.1 to v1.14.3 look scattered, but they share one principle: the tool must not silently accept out-of-bounds input. Configuration values cannot inject instructions, globs cannot escape the change directory, symlinks cannot point outside the project, unknown metadata cannot be silently ignored, and archive cannot silently drop text. For SDD, the spec is the single source of truth; any path that “reports success while producing the wrong result” is more dangerous than a crash.

4.2 The Boundary of skip_specs

This practice used skip_specs: true for the first time. It fits changes where the behavior contract is unchanged and only the implementation is being completed; it does not fit cases where the requirements themselves are still moving. Even when using it, keep the full proposal/design/tasks and state “no new or modified capabilities” with a reason in the proposal’s Capabilities section — so readers know the omission is deliberate, not forgotten.

4.3 Profiles Are an Explicit Choice

The default core profile keeps six commands, reducing day-to-day cognitive load; expanded workflows such as verify, continue, and ff require an explicit opt-in. This repository stays on core for now because the existing practice already covers the Explore → Propose → Apply → Archive main line. If we later need to verify “does the implementation really satisfy the artifacts,” enabling verify is worth evaluating separately.

4.4 Open Observations


This article is based on the python-order-get-by-id practice in the OpenSpec Practise repository (2026-10-19); full artifacts live under openspec/changes/archive/2026-10-19-python-order-get-by-id/.