From 04022b7e0b0d33111aae8cf7589f1ad592281e13 Mon Sep 17 00:00:00 2001 From: Santhosh Janardhanan Date: Tue, 17 Feb 2026 02:10:23 -0500 Subject: [PATCH] Headroom - Foundation --- .opencode/command/opsx-apply.md | 149 +++ .opencode/command/opsx-archive.md | 154 +++ .opencode/command/opsx-bulk-archive.md | 239 ++++ .opencode/command/opsx-continue.md | 111 ++ .opencode/command/opsx-explore.md | 171 +++ .opencode/command/opsx-ff.md | 91 ++ .opencode/command/opsx-new.md | 66 + .opencode/command/opsx-onboard.md | 522 ++++++++ .opencode/command/opsx-sync.md | 131 ++ .opencode/command/opsx-verify.md | 161 +++ .../skills/openspec-apply-change/SKILL.md | 156 +++ .../skills/openspec-archive-change/SKILL.md | 114 ++ .../openspec-bulk-archive-change/SKILL.md | 246 ++++ .../skills/openspec-continue-change/SKILL.md | 118 ++ .opencode/skills/openspec-explore/SKILL.md | 290 ++++ .opencode/skills/openspec-ff-change/SKILL.md | 101 ++ .opencode/skills/openspec-new-change/SKILL.md | 74 ++ .opencode/skills/openspec-onboard/SKILL.md | 529 ++++++++ .opencode/skills/openspec-sync-specs/SKILL.md | 138 ++ .../skills/openspec-verify-change/SKILL.md | 168 +++ devnotes.md | 896 +++++++++++++ docs/README.md | 188 +++ docs/headroom-architecture.md | 1161 +++++++++++++++++ docs/headroom-decision-log.md | 840 ++++++++++++ docs/headroom-executive-summary.md | 637 +++++++++ docs/headroom-project-charter.md | 613 +++++++++ .../headroom-foundation/.openspec.yaml | 2 + .../changes/headroom-foundation/design.md | 559 ++++++++ .../changes/headroom-foundation/proposal.md | 68 + .../specs/actuals-tracking/spec.md | 78 ++ .../specs/allocation-reporting/spec.md | 74 ++ .../specs/allocation-validation/spec.md | 87 ++ .../specs/authentication/spec.md | 111 ++ .../specs/capacity-planning/spec.md | 99 ++ .../specs/cost-reporting/spec.md | 85 ++ .../specs/forecast-reporting/spec.md | 70 + .../specs/master-data-management/spec.md | 119 ++ .../specs/project-lifecycle/spec.md | 100 ++ .../specs/resource-allocation/spec.md | 111 ++ .../specs/role-based-access/spec.md | 105 ++ .../specs/team-member-management/spec.md | 60 + .../specs/utilization-calculations/spec.md | 91 ++ .../specs/utilization-reporting/spec.md | 71 + .../specs/variance-reporting/spec.md | 73 ++ openspec/changes/headroom-foundation/tasks.md | 441 +++++++ openspec/config.yaml | 20 + 46 files changed, 10488 insertions(+) create mode 100644 .opencode/command/opsx-apply.md create mode 100644 .opencode/command/opsx-archive.md create mode 100644 .opencode/command/opsx-bulk-archive.md create mode 100644 .opencode/command/opsx-continue.md create mode 100644 .opencode/command/opsx-explore.md create mode 100644 .opencode/command/opsx-ff.md create mode 100644 .opencode/command/opsx-new.md create mode 100644 .opencode/command/opsx-onboard.md create mode 100644 .opencode/command/opsx-sync.md create mode 100644 .opencode/command/opsx-verify.md create mode 100644 .opencode/skills/openspec-apply-change/SKILL.md create mode 100644 .opencode/skills/openspec-archive-change/SKILL.md create mode 100644 .opencode/skills/openspec-bulk-archive-change/SKILL.md create mode 100644 .opencode/skills/openspec-continue-change/SKILL.md create mode 100644 .opencode/skills/openspec-explore/SKILL.md create mode 100644 .opencode/skills/openspec-ff-change/SKILL.md create mode 100644 .opencode/skills/openspec-new-change/SKILL.md create mode 100644 .opencode/skills/openspec-onboard/SKILL.md create mode 100644 .opencode/skills/openspec-sync-specs/SKILL.md create mode 100644 .opencode/skills/openspec-verify-change/SKILL.md create mode 100644 devnotes.md create mode 100644 docs/README.md create mode 100644 docs/headroom-architecture.md create mode 100644 docs/headroom-decision-log.md create mode 100644 docs/headroom-executive-summary.md create mode 100644 docs/headroom-project-charter.md create mode 100644 openspec/changes/headroom-foundation/.openspec.yaml create mode 100644 openspec/changes/headroom-foundation/design.md create mode 100644 openspec/changes/headroom-foundation/proposal.md create mode 100644 openspec/changes/headroom-foundation/specs/actuals-tracking/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/allocation-reporting/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/allocation-validation/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/authentication/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/capacity-planning/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/cost-reporting/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/forecast-reporting/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/master-data-management/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/project-lifecycle/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/resource-allocation/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/role-based-access/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/team-member-management/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/utilization-calculations/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/utilization-reporting/spec.md create mode 100644 openspec/changes/headroom-foundation/specs/variance-reporting/spec.md create mode 100644 openspec/changes/headroom-foundation/tasks.md create mode 100644 openspec/config.yaml diff --git a/.opencode/command/opsx-apply.md b/.opencode/command/opsx-apply.md new file mode 100644 index 00000000..94b8c1ee --- /dev/null +++ b/.opencode/command/opsx-apply.md @@ -0,0 +1,149 @@ +--- +description: Implement tasks from an OpenSpec change (Experimental) +--- + +Implement tasks from an OpenSpec change. + +**Input**: Optionally specify a change name (e.g., `/opsx-apply add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes. + +**Steps** + +1. **Select the change** + + If a name is provided, use it. Otherwise: + - Infer from conversation context if the user mentioned a change + - Auto-select if only one active change exists + - If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select + + Always announce: "Using change: " and how to override (e.g., `/opsx-apply `). + +2. **Check status to understand the schema** + ```bash + openspec status --change "" --json + ``` + Parse the JSON to understand: + - `schemaName`: The workflow being used (e.g., "spec-driven") + - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others) + +3. **Get apply instructions** + + ```bash + openspec instructions apply --change "" --json + ``` + + This returns: + - Context file paths (varies by schema) + - Progress (total, complete, remaining) + - Task list with status + - Dynamic instruction based on current state + + **Handle states:** + - If `state: "blocked"` (missing artifacts): show message, suggest using `/opsx-continue` + - If `state: "all_done"`: congratulate, suggest archive + - Otherwise: proceed to implementation + +4. **Read context files** + + Read the files listed in `contextFiles` from the apply instructions output. + The files depend on the schema being used: + - **spec-driven**: proposal, specs, design, tasks + - Other schemas: follow the contextFiles from CLI output + +5. **Show current progress** + + Display: + - Schema being used + - Progress: "N/M tasks complete" + - Remaining tasks overview + - Dynamic instruction from CLI + +6. **Implement tasks (loop until done or blocked)** + + For each pending task: + - Show which task is being worked on + - Make the code changes required + - Keep changes minimal and focused + - Mark task complete in the tasks file: `- [ ]` → `- [x]` + - Continue to next task + + **Pause if:** + - Task is unclear → ask for clarification + - Implementation reveals a design issue → suggest updating artifacts + - Error or blocker encountered → report and wait for guidance + - User interrupts + +7. **On completion or pause, show status** + + Display: + - Tasks completed this session + - Overall progress: "N/M tasks complete" + - If all done: suggest archive + - If paused: explain why and wait for guidance + +**Output During Implementation** + +``` +## Implementing: (schema: ) + +Working on task 3/7: +[...implementation happening...] +✓ Task complete + +Working on task 4/7: +[...implementation happening...] +✓ Task complete +``` + +**Output On Completion** + +``` +## Implementation Complete + +**Change:** +**Schema:** +**Progress:** 7/7 tasks complete ✓ + +### Completed This Session +- [x] Task 1 +- [x] Task 2 +... + +All tasks complete! You can archive this change with `/opsx-archive`. +``` + +**Output On Pause (Issue Encountered)** + +``` +## Implementation Paused + +**Change:** +**Schema:** +**Progress:** 4/7 tasks complete + +### Issue Encountered + + +**Options:** +1.