openspec/initiatives/context-store-and-initiatives/work-items/11-manual-beta-reality-pass/notes.md
Use this as the scratchpad while trying the beta flow.
openspec context-store setup team-context --init-git from inside the
OpenSpec repo created the store at
~/.local/share/openspec/context-stores/team-context instead of nesting it in
the repo.agent-trace-hooks in the correct
context-store location:
~/.local/share/openspec/context-stores/team-context/initiatives/agent-trace-hooks.XDG_CONFIG_HOME, XDG_DATA_HOME) instead of letting the user just run the
beta locally. Strong reaction: this should work as a normal local workflow.openspec context-store setup with no args feels like it should start an
interactive setup, but it does not. The command name itself creates that
expectation.openspec context-store setup team-context --init-git created
team-context/ inside the current OpenSpec repo because the default path is
./<id>. User expected a default outside the current repo, not a new Git repo
nested in whatever directory they happened to run from.context-store
exposes setup/register/list/doctor, but no unregister/remove command, so
cleanup required removing the folder and editing the registry manually.context-store setup --init-git initializes Git, but leaves
.openspec-store/ and new initiatives untracked. That may be fine, but the
beta flow does not tell the user or agent whether to stage/commit the shared
context store.openspec workspace open with no arguments prompts only for known local
workspace views. It does not show registered context stores or initiatives, so
team-context is absent even though the next guide step is opening an
initiative from that store. This is technically consistent with the current
implementation, but confusing in the beta flow because the command name reads
like the broad "open something OpenSpec-related" entrypoint.workspace open should either offer an "open initiative from
context store" path when registered initiatives exist, or make the zero-arg
prompt text explicit that it is selecting an existing local workspace view
only. If it offers initiatives, it should likely list references like
team-context/agent-trace-hooks, not just the store id.team-context/agent-trace-hooks, suggest a workspace name from the initiative
id, optionally link existing repo/folder paths, choose an opener, then create
the workspace view.openspec workspace open initiative-aware. The picker should show
existing local workspace views and registered initiatives that can create a
local view on selection, with labels that preserve the distinction between
"workspace" and "initiative."initiative.yaml, requirements.md, design.md, decisions.md,
questions.md, and tasks.md, but docs describe the Markdown files as
"typical" or "then edit" rather than naming the contract clearly.contracts/ content.context-store setup does
not create repo-local guidance, and workspace open --initiative cannot run
until the initiative exists. A fresh agent needs either an explicit pasted
mini-playbook, installed OpenSpec skills, or CLI output that prints the exact
next agent prompt/command.initiative create --help, then
created the initiative with --store team-context --title ... --summary ... --json. It correctly resolved the store and did not create files in the
OpenSpec repo.TBD placeholders with useful short content,
which suggests the templates give enough structure but not enough guidance.
There is no CLI option to seed richer content beyond title and summary.initiative create --json reports created_files as relative names. Agents
have to combine those with the returned root to get absolute paths.delivery acts like a generated-artifact cleanup switch. That is too
low-level for the user-facing choice.skills: install the baseline guide skill plus workflow skills.commands: install the baseline guide skill plus workflow slash commands.both: install the baseline guide skill plus workflow skills and workflow
slash commands.openspec initiative list --json, openspec list --json, and workspace
state when available. If still ambiguous, ask: "Should these OpenSpec
artifacts live outside the repo in a context store, or inside this repo as a
repo-local implementation change?"--initiative <store>/<initiative>.openspec initiative create currently creates a full six-file planning
packet with TBD placeholders. That is too eager for the intended audience:
PMs, designers, architects, and agents facilitating early product/architecture
thinking.initiative.yaml plus either:
brief.md seeded from title/summary/current understanding; orrequirements.md with no TBD placeholders and no claims of
accepted requirements until the content has been reviewed.requirements.md: accepted high-level requirements, goals, non-goals,
unresolved product questions.design.md: reviewed product/UX/architecture direction and tradeoffs.questions.md: optional question log when questions need tracking.decisions.md: optional decision log appended only after decisions happen.tasks.md; implementation tasks belong in repo-local changes.
If initiative-level coordination is needed later, use clearer language like
workstreams.md, milestones.md, or coordination.md.requirements and design,
where design depends on requirements. decisions and questions are living
logs, so file-existence completion semantics may not fit them.schema: field in
initiative.yaml until metadata compatibility is designed. If a schema hint
needs persistence, store it under metadata or keep the default implicit../<id> relative to the current working
directory. That needs to be explicit if the default remains../<id> and documented
the managed local data location instead.--initiative is passed. The guide should make that
explicit: "Create or open a local workspace view for the initiative." It
should also warn that bare openspec workspace open selects existing
workspace views only and will not list context stores like team-context.workspace open for reopening an
existing workspace view.workspace open --initiative <store>/<initiative> as the explicit
create-or-reuse path, but make bare interactive workspace open show
initiatives as selectable targets. Selecting an initiative should say it is
creating/opening a local workspace view.openspec context-store setup interactive when no id is provided:
prompt for store id, default path, and Git initialization; keep --json /
non-interactive behavior deterministic with a helpful fix message../<id> only after an interactive
confirmation that names the full target path.
--path for explicit locations.openspec context-store unregister <id> or remove <id> for local
registry cleanup, with an explicit choice about whether to delete files or
only forget the local registration.openspec workspace setup with initiative selection, add
openspec workspace setup --initiative <store>/<initiative>, or introduce a
clearer workspace create command. The key UX requirement is that a fresh
user can run an interactive command after initiative creation and be led to
"create a local workspace view for this initiative" without knowing
--initiative or the derived workspace-name convention.workspace open picker as the smallest product fix:
on bare interactive open, list local workspaces plus registered initiatives.
If the user selects an initiative, feed it through the existing
--initiative create/reuse path. Do not auto-create workspaces during
context-store setup or initiative creation, and do not make workspaces 1:1
with initiatives.
workspace open now shows
registered initiatives that do not already have a known local view, and
selecting one creates/reuses the initiative-bound workspace view.workspace open
now runs the same repo/folder link prompt as workspace setup before
creating the workspace view. This avoids opening an empty workspace and
makes the first-run path collect implementation roots at the moment the
user expects it.use-openspec skill could be installed whenever a selected
agent supports skills, even if workflow delivery is set to commands-only, so
"commands only" means "workflow actions are slash commands" rather than "the
agent gets no OpenSpec context."use-openspec as a normal managed skill bundled
with the configurator and installed by default. Keep it skill-only even if it
is presented as part of the default profile, so it does not create a slash
command, workflow artifact, or user-facing workflow action.openspec initiative create as a sparse, schema-led container
instead of a fully scaffolded planning packet. Initial create should likely
write only initiative.yaml plus a short brief.md seeded from title and
summary. Follow-up agent/CLI actions can add requirements.md, design.md,
questions.md, decisions.md, or coordination artifacts when there is
reviewed content to capture. Avoid default TBD sections, fake decisions,
and default initiative-level tasks.md that may be confused with repo-local
implementation tasks.agent-trace-hooks initiative to the
proposed sparse shape: kept initiative.yaml, added brief.md, and removed
the eager generated planning files. initiative show still resolves because
current initiative identity depends on initiative.yaml.work-items/15-context-store-project-roots-and-schema-led-initiatives/:
context stores should behave like OpenSpec roots for shared context, with
store-local config, schemas, and sparse schema-led initiative artifacts.AGENTS.md, workspace.yaml, and <workspace>.code-workspace) without a
default changes/ directory or generated .gitignore; VS Code multi-root
views should show linked repos first, then initiative context, then the small
OpenSpec workspace folder.openspec new change or cd into implementation repos.