Spaces:
Sleeping
Sleeping
|
Download docs/progress/slice-integration-overview.md from DecodeMarketing/decode_tools: direct link, hf CLI and curl.
- Browser
- Download file 5.67 kB
-
https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/docs/progress/slice-integration-overview.md
- Command line
-
hf download hf://spaces/DecodeMarketing/decode_tools/docs/progress/slice-integration-overview.md
-
curl -L -o slice-integration-overview.md https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/docs/progress/slice-integration-overview.md
5.67 kB
| # Slice integration overview | |
| _Last updated: 2026-05-29 (slices 1–3 merged; slice 4 in progress)._ | |
| This file tracks the decode-ai-standards remediation slices for `icat_app`. It is the in-repo working copy of the plan held in the audit work folder (`C:\Users\JulianeMatussek\decode-ai-standards-work\icat_app\remediation-plan.md`). | |
| ## Status snapshot | |
| Slices 1–3 are merged to `main` (PRs #7, #9, #10). Slice 4 (this PR) applies the | |
| upstream skill-system delta. A formal audit refresh against the post-slice-3 ref | |
| `2509f31` has **not** yet been re-run — it is tracked as issue #13, so the | |
| numeric readiness counts below are the last recorded values from `c7599a7` and | |
| understate the current (post-remediation) state. | |
| ## Last recorded readiness (from `audit-result.yaml` at `c7599a7`, pre-slices) | |
| - readiness: `at_risk` | |
| - `pass`: 0 / 36 | |
| - `partial`: 21 / 36 | |
| - `fail`: 15 / 36 | |
| Movement from the pre-hardening baseline at `2e95e07` (which scored 2 pass / 4 partial / 30 fail) is documented in the audit work folder's `delta-summary.md`. 14 checks moved from FAIL to PARTIAL because of the DECODE hardening commits (CLAUDE.md, .githooks, .claude/{hooks,skills,settings.json}, scripts/{setup,language-gate,reviewer-hash}.sh, gate.yml). Slices 1–4 then address the remaining partials/fails; the refresh (issue #13) will record where they land. | |
| ## Slices | |
| ``` | |
| [x] slice 1 orientation_and_deploy_boundary_slice (PR #7, merged 7a5c442) | |
| target checks: C01 C04 C09 C11 C12 C18 C21 C23 C25 C26 C27 C29 C31 C32 | |
| [x] slice 2 structure_and_dependency_slice (PR #9, merged 975d390) | |
| target checks: C03 C05 C06 C10 C28 C33 | |
| [x] slice 3 agent_contract_slice (shrunk) (PR #10, merged 2509f31) | |
| target checks: C13 C14 C15 C16 C17 C20 C22 C24 C30 C34 C36 | |
| [~] slice 4 skill_system_delta_slice (this PR) | |
| applies upstream 81c3f17..22b8883: C12 (domain + ADR), | |
| C15 (bootstrap record + skill registry), C16 (triage/diagnose/ | |
| handoff skills; test-first→tdd, prototype→deslop) | |
| [ ] deferred slice 2b workflow_hardening_slice (SHA-pin checkout + permissions blocks) | |
| [ ] deferred architecture_hardening_slice (split helper.py) | |
| [ ] deferred test_lane_slice (add pytest + integration tests) | |
| ``` | |
| ## Slice 1 — what it adds (this PR) | |
| - `AGENTS.md` (thin pointer to CLAUDE.md + docs/INDEX.md) | |
| - `SECURITY.md` | |
| - `docs/INDEX.md` | |
| - `docs/architecture/repository-erd.md` | |
| - `docs/architecture/active-surface.md` | |
| - `docs/reference/command-registry.md` | |
| - `docs/guides/review-workflow.md` | |
| - `docs/guides/protected-boundary-policy.md` | |
| - `docs/guides/git-and-pr-rules.md` | |
| - `docs/progress/slice-integration-overview.md` (this file) | |
| - `.github/pull_request_template.md` | |
| - `scripts/repo_validate.py` | |
| - `.github/workflows/repo_validate.yml` (PR-only — never on push to main) | |
| - README.md additive extensions: Verification, Branch & Deploy, Architecture pointer | |
| ## Slice 1 — what it does NOT touch | |
| Per the hard constraints in the audit work folder: | |
| - `app.py`, `helper.py`, `tab1.py`–`tab8.py` | |
| - `requirements.txt`, `runtime.txt`, `.streamlit/`, `.devcontainer/` | |
| - Existing files in `.github/workflows/`, `.githooks/`, `.claude/` | |
| - `CLAUDE.md`, `.gitignore` | |
| Only additions are allowed in `README.md`; no deletions/modifications of existing lines. | |
| ## Open items (need user/team confirmation) | |
| 1. **Branch promotion model** — `dev`, `staging`, `hardening/decode-gates`, `sandbox` exist on origin with no documented role. See `docs/guides/git-and-pr-rules.md` "Observed branches" table. | |
| 2. **Reviewer manifest source** — `feature-dev:code-reviewer` ships from the external plugin. Should slice 3 mirror it as `.claude/agents/findings_first_reviewer.json`, or accept the external plugin as canonical? | |
| 3. **HF Spaces SDK version pin duplication** — README frontmatter `sdk_version: 1.32.2` vs `requirements.txt` `streamlit==1.32.2`. Slice 2 picks one source of truth. | |
| 4. **Deploy trigger semantics** — `main` is currently the dev base AND the deploy trigger. See `docs/guides/protected-boundary-policy.md` "Why pushing to `main` is not the deploy trigger we want, long term". Out of scope for slice 1. | |
| ## Branch & PR strategy for the remediation itself | |
| - One slice per PR. PR title prefix: `[ai-standards][slice-N]`. | |
| - Slice 1 PR is docs-only / scripts-only / new-workflow-only — HF deploy on merge is a no-op. | |
| - After each merge, rerun the audit against `main` and emit a refreshed `delta-summary-<slice>.md` into the audit work folder. | |
| ## Next proof (after this PR merges) | |
| - Rerun `audit-result.yaml` against `main`. | |
| - Expected movement: | |
| - C01 partial → pass (README has explicit verification + branch + architecture sections) | |
| - C04 fail → pass (`docs/INDEX.md` + tree present) | |
| - C09 partial → pass (`scripts/repo_validate.py` exposed) | |
| - C11 partial → pass (`SECURITY.md` + `docs/guides/protected-boundary-policy.md`) | |
| - C12 fail → partial (architecture docs added; helper.py split still deferred) | |
| - C18 partial → pass (review-workflow.md exposes the contract) | |
| - C21 partial → pass (deploy-boundary confirmation rule written) | |
| - C23 fail → partial (git-and-pr-rules.md + PR template; promotion model still open) | |
| - C25 partial → pass (command-registry.md) | |
| - C26 partial → pass (repo_validate.py covers py_compile + manifest sanity) | |
| - C27 partial → pass (PR CI is no longer file-size-only) | |
| - C29 fail → partial (PR template added; branch protection still not configured) | |
| - C31 fail → partial (slice tracker in-repo) | |
| - C32 partial → pass (output contract exposed in review-workflow.md) | |