Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 60 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,61 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Live evidence preparation follow-up

- Prepare ordered masking variants only when discovered material grows;
reset them for every run. Preserve discovery, exact replacement behavior,
original HTTP values and normal authentication lifetimes.
- Enumerate actual dictionary keys with `PSBase.Keys` so a public JWKS
`keys` member cannot corrupt serialization or nested material discovery.
- Retain 213 prior redaction assertions and add 42 reuse/invalidation,
dictionary/discovery, ordered-plan, culture and array-shape controls:
255 PASS.
Ownership: 206 to 224 PASS. Actual nested-script
wiring: one Jest suite, nine tests PASS.
- A bounded 100-field/30-material probe reduces redundant JSON preparation
from 3,000 calls to zero, 1,330.49 ms to 416.16 ms. This is not an API
latency claim. The previous full live attempt aborted on token expiry
after 633 partial PASS lines. A second attempt was explicitly stopped after
1,255 partial PASS lines and one JWKS serialization FAIL, without a final
summary; exact disposable cleanup passed. Those failed receipts remain.
- A separate process-CPU experiment measured 546.875 ms before and 46.875 ms
after combining necessary-signal discovery guards and a small in-process
.NET ordered replacement loop. Either partial optimization missed the
local experimental goal. No CI timing gate or API latency claim is added.
- Preserve the existing regex culture semantics in the authorization fast
guard; a Turkish dotted-I RED/GREEN regression prevents an ordinal precheck
from skipping an otherwise matching authorization string.
- Preserve empty/singleton arrays by assigning dictionary/property values
inside branches rather than enumerating them through conditional-expression
output. Treat PowerShell-wrapped arrays as enumerables before custom-object
properties in both copying and material discovery, avoiding false cycles
through collection metadata. Both defects have focused RED/GREEN controls.
- Decode only the ownership admission copy of a byte HTTP response using
strict UTF-8. Preserve the actual response identity/body and existing UUID
guards; cover malformed JSON, unsupported types and invalid UTF-8.
- Clear the PATCH-profile endpoint reference only after successful early
deletion. Its `finally` block no longer issues a duplicate DELETE, while
the failure path retains retry and sticky failure evidence. The existing
9z.36 assertion now checks actual success rather than unconditional true.
- Four actual JWKS, two downloaded log-array checks, the actual early/finally
profile lifecycle and four nested correctness contracts pass before full
live execution. Complete PostgreSQL live exits zero: 169 sections,
1,845/1,845 assertions, zero failures, 2,060 flow steps, 450.6 seconds.
Fresh InMemory also completes: 169 sections, 1,845/1,845 assertions,
zero failures, 2,060 flow steps, 421.5 seconds, outer/child exit zero.
Exact owned cleanup and listener closure pass for both. The PostgreSQL
private outer verifier's redacted-timestamp parsing failure
is retained and independently reconciled using exact-target file freshness
and source hashes; it is not hidden as a successful original outer exit.
- This script-only follow-up changes no application version or dependency
lock. See [RCA and qualification limits](docs/LIVE_EVIDENCE_REDACTION.md#preparation-reuse-and-live-run-expiry).
- Original harness tip `a1f00397`: all 29 normal Fast gates and six exact-tip
PR checks PASS, API219/6272, reduced HTTP2519/45 known skips and web126/1664.
Integration preserves normally merged tooling PR284 and both documentation
histories. The combined tip requires its own normal checks before merge;
no shipping or deployment acceptance is inferred.

### Root documentation tooling security recovery

- Raise the root-only `markdown-it` floor from `^14.3.0` to `^14.3.3`,
Expand All @@ -19,8 +74,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Mermaid parser relocation. Fresh npm ci preserves imported bytes.
- Root audit moves from one High/one Moderate/two Low to zero High/one
Moderate/two Low. Normal bootstrap Fast: 220 API suites/6,273 tests and
reduced HTTP 120 suites/2,519 tests, 45 known skips. Final exact-tip gates,
CI and review remain pending; bootstrap is not final shipping acceptance.
reduced HTTP 120 suites/2,519 tests, 45 known skips. Final normal Fast:
all 29 gates, API220/6274 and reduced HTTP2519/45 known skips. All six
exact-tip PR checks PASS, web126/1664, test image/smoke and gated Trivy.
Normal PR284 merged at `36d07884` after recorded source self-review; no
independent approval or final shipping acceptance is claimed.
- Document rejected unseeded dependency drift, semantic parser-hoist
verification and unchanged tracked locks in the
[supply-chain RCA](docs/strategy/NPM_SUPPLY_CHAIN_QUARANTINE_POLICY.md#2026-11-23-root-markdown-tooling-recovery).
Expand Down
64 changes: 62 additions & 2 deletions Session_starter.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
## SCIMServer - Condensed Session Memory

### Live evidence preparation follow-up, 2026-11-23

Isolated harness-only work reduces repeated material preparation without
changing application source, version 0.55.70, token lifetime or assertions.
The unchanged full live attempt stopped on token expiry after 633 partial
PASS lines; no final success is claimed. Exact owned fixtures were removed.
Redaction contracts increased from 213 to 255 passing assertions, ownership
now has 224 passing assertions, and actual nested-script Jest wiring remains
nine passing tests. A 100-field/30-material probe drops repeated JSON encoding
from 3,000 calls to zero, 1,330.49 ms to 416.16 ms. A second full attempt was
explicitly stopped after 1,255 partial PASS lines and one JWKS serialization
FAIL, without a final summary. Both dictionary traversal sites now use
`PSBase.Keys` to avoid a payload member named `keys` shadowing the collection.
Focused RED/GREEN controls cover public JWKS shape and nested discovery.
All owned fixtures were removed, originals retained and listener absent.
A separate CPU experiment measured 546.875 ms before discovery guards plus a
small in-process ordered replacement loop, and 46.875 ms after. Either partial
optimization missed the local experimental goal; this is not a CI timing gate
or API improvement claim. Real-JWKS admission exposed array-shape loss; the
next early run exposed wrapped-array misclassification as a cyclic custom
object. Both have focused RED/GREEN controls, including secret discovery.
Fresh admission now passes four real JWKS plus two actual log-array evidence
checks. The repaired complete PostgreSQL live runner exited zero with
1,845/1,845 passing assertions, 169 sections, 2,060 flow steps and no cleanup
failures in 450.6 seconds. Exact fixture cleanup and listener closure passed.
The private outer verifier initially rejected an intentionally redacted ISO
timestamp; a separate receipt reconciles the complete result using its exact
target, file-write interval and executed source hashes, retaining the failed
outer receipt. Four wrong-target/stale/future/unchanged-file controls pass.
The corresponding fresh InMemory run also completed: 1,845/1,845 assertions,
169 sections and 2,060 flow steps in 421.5 seconds, outer/child exit zero.
Its exact container/client-directory cleanup, original identity retention
and listener closure pass. Both run-specific sanitized results are retained.
Strict UTF-8 web-response admission preserves original byte responses;
profile cleanup now clears a successfully deleted local handle rather than
issuing a duplicate DELETE in `finally`. Actual failure-path controls retain
the UUID for retry and preserve sticky cleanup failure evidence.
The initial root tooling audit separately reported a Markdown-it High. Separate
#284 normally merged at `36d07884` after its CI-authenticated patched lock,
zero High/Critical root audit, 29 normal Fast gates, six exact-tip checks and
recorded source self-review. No independent approval is claimed. Repository
protection requires strict CI checks, not an external approval; unavailable
Copilot review quota is not an extra merge gate. The original harness tip
`a1f00397` also passed all 29 normal Fast gates and six exact-tip checks.
This harness rollback unit changes no dependencies; the integration imports
the already-merged root lock and preserves both documentation histories.
Direct consolidation review found no new high-confidence production defect.
The combined tip still requires its own normal hook and exact-tip CI before
merge. No shipping or all-security-green claim.
See
[the current evidence boundary](docs/LIVE_EVIDENCE_REDACTION.md#preparation-reuse-and-live-run-expiry).

| Date | Summary |
|---|---|
| 2026-11-23 | Redaction 255 PASS, nested wiring nine PASS, ownership 224 PASS. Complete PostgreSQL and InMemory live each 1,845/1,845 PASS with exact cleanup; original PostgreSQL outer failure separately reconciled. Harness a1f00397 passes 29 normal Fast/six PR checks. Integrating normally merged tooling #284 at 36d07884; combined-tip gates remain required. No shipping or cloud acceptance. |

### Root Markdown tooling security recovery, 2026-11-23

Separate c52-based tooling-only rollback unit. Root `markdown-it` floor moves
Expand All @@ -16,14 +72,18 @@ complete package-map review admits only Markdown and exact parser relocation.
Fresh locked root installation preserves SHA-256
80a519be2009bd87db82fcdd5f6cff09dcb0bd9ceec2eb9fd8f178a674f75bc4.
Two Markdown unit tests pass; root audit now has zero High/Critical,
one Moderate and two Low. Final normal gates/CI/review remain pending.
one Moderate and two Low. Final normal Fast passes all 29 gates, API
220 suites/6,274 tests and reduced HTTP 2,519 passes/45 known skips. All six
exact-tip PR checks pass, including web 126 files/1,664 tests, image smoke and
gated Trivy. Recorded source self-review found no unresolved defect; normal
PR #284 merged at `36d07884`. No independent approval is claimed.
Application version/source,
API/web locks, runtime fixtures, Docker Desktop and other worktrees unchanged.
See [root tooling recovery and RCA](docs/strategy/NPM_SUPPLY_CHAIN_QUARANTINE_POLICY.md#2026-11-23-root-markdown-tooling-recovery).

| Date | Summary |
|---|---|
| 2026-11-23 | Root Markdown manifest/lock RED/GREEN, 23 artifact/installed-tree contracts and authenticated CI root lock accepted locally. Fresh npm ci preserves bytes; zero High/Critical root audit. Bootstrap normal Fast passed; final exact-tip gates/review pending, not shipping acceptance. |
| 2026-11-23 | Root Markdown manifest/lock RED/GREEN, 23 tooling contracts and authenticated CI lock. Final Fast 29/29 and exact-tip PR six/six PASS; normal reviewed-source merge #284 at 36d07884. Zero High/Critical root audit, with Moderate/Low retained. Not shipping acceptance. |

### POST User correction in qualification, 2026-11-23

Expand Down
37 changes: 34 additions & 3 deletions docs/CONTEXT_INSTRUCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,43 @@

## Active Delivery Process

**Unreleased root-tooling security recovery:** `markdown-it` manifest floor
**Unreleased live-harness recovery:** The isolated follow-up retains all prior
redaction controls and now passes 255 assertions, with nine nested-script
wiring tests and 224 ownership checks. It caches material preparation,
reduces measured text-loop cost, traverses actual dictionary keys and
preserves empty/singleton and PowerShell-wrapped arrays. Real JWKS and
downloaded log-array admission, byte-response registration and actual profile
early/finally cleanup controls precede full execution. The PostgreSQL runner
completed 1,845/1,845 assertions with exit zero and exact cleanup. A private
outer timestamp parse failed on redacted evidence; separate exact-target,
file-write-window and source-hash reconciliation retains that failed receipt.
Fresh InMemory also completes 1,845/1,845 assertions with outer/child exit zero
and exact cleanup. No parent fixture remains; shipping and deployment remain
blocked by separate acceptance requirements.
The initial root tooling graph separately reported a Markdown-it High.
Separate #284 normally merged at `36d07884`, with an authenticated CI lock,
zero High/Critical root audit, 29 final normal Fast gates, all six exact-tip
checks and a recorded source self-review. Original harness tip `a1f00397`
also passes 29 normal Fast gates and all six PR checks. The integration
preserves both changes and must pass normal gates and exact new-tip CI before
its own merge. The harness changes no dependencies; the merged root repair
supplies its own authenticated lock. Direct review found no unresolved defect.
No independent approval or all-security-green claim is made. The actual
repository policy/protection requires green exact-tip CI and resolved review
findings, not an external approval or a specific review service. Copilot
quota exhaustion is retained as a service limitation, not an extra merge gate.
Application version 0.55.70, token lifetimes, HTTP values and assertions remain
unchanged. See [RCA and qualification limits](LIVE_EVIDENCE_REDACTION.md#preparation-reuse-and-live-run-expiry).

**Merged root-tooling security recovery:** `markdown-it` manifest floor
is `^14.3.3` after observed manifest/lock RED/GREEN. Authenticated root-only
CI run45275004952 artifact is imported unchanged; fresh npm ci preserves its
bytes. Two focused units and 23 artifact/installed-tree controls pass; root
audit now has zero High/Critical, one Moderate and two Low. Normal bootstrap
Fast passed all29 gates; final gates/CI/review remain pending.
audit now has zero High/Critical, one Moderate and two Low. Final normal Fast
passes all29 gates, API220/6274 and reduced HTTP2519/45 known skips. All six
exact-tip checks pass, including web126/1664, test image/smoke and gated Trivy.
Source self-review is recorded as COMMENTED, not independent approval.
Normal PR284 merged at `36d07884`; shipping and deployment remain separate.
API/web dependencies and application version
0.55.70 remain unchanged. See
[root-tooling RCA](strategy/NPM_SUPPLY_CHAIN_QUARANTINE_POLICY.md#2026-11-23-root-markdown-tooling-recovery).
Expand Down
Loading
Loading