Files
AiSOC/docs/roadmap/capability-program.md
T
Beenu AroraandBeenu Arora 71d10b0764 chore: internal planning labels live in PR titles only — behaviour text everywhere else, plus the program index (#2015)
## What

WS workstream ids (`WS4.1`, `WS7.2`, …) and brief-internal rule numbers
("rule 14") had leaked into surfaces a reader actually ships or
publishes — and nothing in the tree defined them, because they come from
an uncommitted program brief. A reader of the published OpenAPI spec,
the changelog or a module docstring hit an opaque label.

Every citation is replaced by the behaviour it referred to, and a
neutral program index now exists at
**`docs/roadmap/capability-program.md`**: a WS1–WS8 table in neutral
language ("benchmarked against a reference managed agentic-security
service"), each row linked to its merged PRs (Phase 0
[#1997](https://github.com/beenuar/AiSOC/pull/1997); WS1.1
[#1998](https://github.com/beenuar/AiSOC/pull/1998); WS7.1–7.4
[#1999](https://github.com/beenuar/AiSOC/pull/1999)–[#2002](https://github.com/beenuar/AiSOC/pull/2002);
WS4.1/4.2/4.4
[#2003](https://github.com/beenuar/AiSOC/pull/2003)–[#2005](https://github.com/beenuar/AiSOC/pull/2005)),
with in-flight workstreams marked as such.

Comments/docstrings/prose only — zero behaviour change. No test file or
symbol is renamed.

## Labels removed, per surface

| Surface | Labeled lines rewritten |
|---|---|
| `docs/openapi.yaml` (regenerated, not hand-edited) | 3 (WS4.1, WS7.4,
WS4.4) |
| `.github/workflows/integration.yml` step comments | 3 |
| `CHANGELOG.md` — Unreleased section only | 10 |
| Code, tests, scripts, migrations (`--` comments),
`docs/architecture/SYSTEM_DESIGN.md` | 85 WS lines + 4 "rule 14" lines |

"rule 14" **does exist on main** (4 sites: `case_resolution.py`,
`models/case_resolution.py`, migration 166's `--` comment,
`test_case_resolution_contract.py`) and each is rewritten as the
behaviour it names ("new enforcement is opt-in"). Rule references that
*are* defined in-tree were deliberately left: `docs/cve-patch-policy.md
rule 5`, `event_warehouse/registry.py`'s self-numbered selection rules,
and the detection title "GCP Firewall Rule 0.0.0.0/0".

Two WS namespaces turned out to be live: the gap-closure program's, and
an **older integrations program** (connectors' "WS8: bidirectional
ticketing", `base.py`'s "WS4" push capabilities, oauth/wizard "WS5").
Both are scrubbed to behaviour text; the index covers the current
program only and says so.

## Spec is regenerated, not hand-edited

The three spec hits were traced to their source docstrings (`alerts.py`
DLP-finding route, `cases.py` attention-feed route,
`business_context.py` `ManagedRulesOut` model), the docstrings
rewritten, and the spec regenerated via `scripts/export_openapi.py`. The
resulting spec diff is **exactly those three description strings** —
nothing else moved — and `scripts/export_openapi.py --check` passes
(exit 0, "docs/openapi.yaml is up to date").

The vendored twin
`services/api/app/_vendor/action_contracts/capability_contracts.py` was
regenerated through `scripts/sync_vendored_action_contracts.py` from the
actions-side edit, byte-identical.

## Gates and tests (all run pipelessly, exit codes echoed)

| Check | Result |
|---|---|
| `scripts/export_openapi.py --check` | exit 0 |
| `scripts/check_competitor_names.py` | exit 0 (15,612 files scanned;
the new index passes) |
| `scripts/check_claim_gate_matrix.py` | exit 0 (410 rows — untouched,
no tally change) |
| `scripts/readme_gates.py` | exit 0 |
| `scripts/check_mypy_baseline.py` | exit 0 ("no tree got worse") |
| `ruff format --check` + `ruff check` on all 50 touched `.py` files |
exit 0 / exit 0 |
| API test subset (14 files covering every touched api module) | 303
passed |
| Actions subset (`test_sync_detection_rule_vendor_arms`,
`test_live_action_builtins`) | 21 passed |
| Connectors subset (`test_m365_audit_dlp_toggle`,
`test_push_capabilities`) | 38 passed |
| Agents subset (`test_business_context_managed_rules`,
`test_deep_investigation`) | 47 passed, 3 pre-existing skips |

## Deliberately left in place

- **Migration `035_case_external_refs.sql:106`** — `COMMENT ON TABLE …
IS 'WS8: …'` is *executed DDL* in an applied migration, not a code
comment; rewriting it would change what a fresh install runs versus an
upgraded one. Left as the one WS string in the tree outside the index; a
future migration can retitle the table comment if wanted.
- `WIN-WS42` in two agents tests — a fixture hostname, not a label.
- A base64 integrity hash in `services/realtime/package-lock.json` that
coincidentally contains `Ws41`.

## For the close-out sweep

- **Labels arriving with in-flight PRs get a follow-up sweep at program
close-out.** Open PRs #2006–#2012 and #2014 (other lanes) will merge
more labeled text; their branches were deliberately not touched.
- `apps/web` carries "VelvetEdge spec rule 2/3/7/10" comments citing the
UI program's spec, which is also not committed anywhere — same defect
class, different program namespace, outside this PR's surfaces. Recorded
here for the close-out sweep.

## Convention (stated in the index's footer as well)

Workstream ids and rule numbers live in **PR titles only** — never in
code, specs, workflows or the changelog. Those surfaces describe the
behaviour; `docs/roadmap/capability-program.md` is the one place ids are
defined.

Co-authored-by: Beenu Arora <beenu@cyble.com>
2026-11-22 18:32:40 -08:00

3.3 KiB

Capability program index

A capability-gap closure program, benchmarked against a reference managed agentic-security service, runs against this repository from a v23.6.1 baseline. Work ships as one pull request per workstream; the workstream ids those pull-request titles carry (WS1 … WS8, with dotted sub-items like WS4.1) are defined here and only here — no other file in the tree should need them.

Id Workstream Shipped so far
WS1 SIEM detection engineering on the customer's SIEM WS1.1 — sync_detection_rule reaches the vendor it names, verifies by read-back and rolls back (#1998)
WS2 Long-term lake: archive, rehydration, portability, legal holds in flight at the time of writing (#2007)
WS3 Phishing pipeline in flight at the time of writing (#2011)
WS4 DLP and insider risk WS4.1 — the normalized DLP finding, one vocabulary over three vendors (#2003) · WS4.2 — the M365 audit DLP.All per-instance switch (#2004) · WS4.4 — the insider watchlist as a real control: expiry, elevation, departure review, the HR door (#2005) · WS4.5 in flight (#2006)
WS5 AI-security runtime in flight at the time of writing (#2009)
WS6 Hunting campaigns in flight at the time of writing (#2010)
WS7 Resolution, not escalation WS7.1 — the evidence-backed case root-cause record (#1999) · WS7.2 — the resolution contract gating resolved (#2000) · WS7.3 — five investigator strategies for the reference-service surfaces (#2001) · WS7.4 — case ownership and the attention feed (#2002)
WS8 Team/provider operating model in flight at the time of writing (#2008)

Phase 0 — the baseline gap verification plus the neutral-reference gate entry — merged as #1997. Further WS1 sub-items are in flight as #2014. Rows marked in flight get their shipped descriptions here when their pull requests merge.

An earlier, unrelated program used the same WS<n> shorthand for the two-way SIEM/ITSM integration work (bidirectional ticketing, push capabilities, the connect wizard); those comments have likewise been rewritten to describe the behaviour, and nothing maps that retired namespace to this table.

Convention

Workstream ids and the program brief's rule numbers live in pull-request titles only — never in code comments, docstrings, the published OpenAPI spec, workflow files or the changelog. Those surfaces describe the behaviour itself; this index is the one place that maps an id to what shipped. Labels arriving with in-flight pull requests get a follow-up sweep at program close-out.