: asapien/signet

commit 59a9e937a41ca88b7d0058a4d19f7f8b02906ec5
parent fada598d764a19e54394c045b81d5deed2bde796
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Mon, 23 Nov 2026 23:27:31 +0530

Finalize canonical checkout and deployment session handoff
6 files changed, 112 insertions(+), 106 deletions(-)
M
.scratch/beta-release/README.md
|
15
+++++++++------
M
.scratch/beta-release/rollout.md
|
40
++++++++++++++++++++++++----------------
M
.scratch/session-handoff.md
|
43
++++++++++++++++++++++++++++++++-----------
M
AGENTS.md
|
23
+++++++++++++----------
M
CLAUDE.md
|
56
+++++++-------------------------------------------------
M
HANDOFF.md
|
41
+++++++++++++++++++++++++++--------------
diff --git a/.scratch/beta-release/README.md b/.scratch/beta-release/README.md
@@ -6,13 +6,14 @@ beta deployment intent; it does not make the known failures disappear or authori
 an arbitrary server, production containers, client-supplied identity or changes to
 other applications. Owner subsequently confirmed **maa-1** and the Minci
 commit → CI run → deploy workflow, and explicitly requested merging all Signet
-work to main. No actual production deployment has been made. Read-only inspection
+work to main. This session did not run Minci CI or deploy to production. Read-only inspection
 found native Alpine/OpenRC and existing Authelia/authz services, but no Signet
 installation, CI enrollment or selected public domain. Owner has since supplied
 origin `git@nply.org:asapien/signet.git` and authorized push; GitHub is a secondary
-mirror, not the primary publication check. The installed
-Minci runner fc0ea0f lacks remote delivery; a separate dirty Minci checkout has
-uncommitted/uninstalled remote helpers. See29 before attempting a CI/deploy run.
+mirror, not the primary publication check. Consolidation fada598 was pushed and
+primary origin/main verified. The Minci fc0ea0f/local-only inventory dates2026-11-22;
+recheck its current installation and docs before treating that older observation
+as a blocker. See29 before attempting a CI/deploy run.
 
 ## Source preparation
 

@@ -59,8 +60,10 @@ root or successful push is not a CI run/deployment.
 
 Private evidence: `~/.local/var/signet-work/beta-preparation-20261122.xTja2j9w/`;
 `current-beta-preparation` points there. Those preparation logs predate the
-subsequent commit/main-merge request; current merge/deployment status belongs in
-`current-maa1-rollout`. No CI run/push/deployment is claimed here.
+subsequent commit/main-merge request. The cc9e4cf merge evidence is in
+`current-maa1-rollout`; the later clean-root/push/recovery evidence is in
+`current-canonical-root`. Main was pushed, but no actual CI run or deployment
+was performed. End-of-session status is in `.scratch/session-handoff.md`.
 
 ## Actionable tickets (stable tracker IDs)
 
diff --git a/.scratch/beta-release/rollout.md b/.scratch/beta-release/rollout.md
@@ -9,31 +9,39 @@ ban on production containers/Python or preservation of security/data/other apps.
 The owner subsequently selected **maa-1**, required Minci's commit → CI run →
 deploy workflow, and requested all scoped Signet work merged to main. Read-only
 inventory confirmed native Alpine/OpenRC with existing Authelia/authz services,
-but no Signet service/configuration. No remote changes or production deployment
-have been made. Main baseline64e43d2 already contains the full earlier integration;
-beta preparation is in the main-merged-20261119.yQc1lQ worktree, on feat/beta-release
-before its owner-authorized main merge.
+but no Signet service/configuration at that inspection. Source has been published,
+but this session performed no production-host configuration/data/service changes,
+Minci CI run or deployment. Main baseline64e43d2 contains the earlier integration;
+beta changes were committed/merged as cc9e4cf and clean-root consolidation as
+fada598, pushed to the supplied origin. The only active source is now
+`/Users/saikrupa/Projects/signet` on main; older linked trees are retired. Use Git
+HEAD for any later documentation-only commits.
 
-## Concrete Minci readiness gaps (read-only verified)
+## Minci inventory —2026-11-22; recheck before rollout
+
+This section records the earlier inspection, not current Minci release status.
+Separate work may have changed its implementation/installation. Start by reading
+current Minci docs and inspecting the actual selected runner/target; do not assume
+the old feature gap still applies, install another agent's WIP or bypass Minci.
 
 - Read `~/Projects/minci/README.md`, CONTEXT.md, docs/local-deployments.md,
   docs/package-namespaces.md and docs/movements-remote-execution-brief.md.
-- Installed cdg-1 launcher points at immutable fc0ea0fe64142af1170ebab45c9a0b2de979aba9.
-  It supports local recipes/namespaces, not remote target execution/publication.
-  No minci-remote.sh is installed in that release. Existing operator profiles have
-  no Signet repository or remote delivery target.
-- Local Minci is dirty: remote receiver/publisher/test files are untracked and
-  runner/helper changes are uncommitted. Do not adopt/overwrite that separate work
-  or claim it is installed just because a file exists locally. Coordinate a
-  verified Minci feature release before selecting its remote target interface.
+- At inspection cdg-1 used immutable fc0ea0fe64142af1170ebab45c9a0b2de979aba9,
+  supporting local recipes/namespaces, with no remote helper/Signet enrollment.
+  Verify the current release and operator grants rather than reusing this claim.
+- The local Minci remote receiver/publisher was separate uncommitted WIP then.
+  Preserve other agents' changes; adopt only a documented, verified installed
+  interface, not an arbitrary working file. If the feature is now released,
+  proceed using its current contract rather than reopening the old blocker.
 - The installed `/usr/local/sbin/minci-submit` wrapper launches the entire
   configured repository list, not a selected Signet run. Do NOT invoke it here.
   After enrollment use documented per-project run selection and exact revision.
 - At the initial inventory Signet had no Git remote. The owner has since supplied
   `git@nply.org:asapien/signet.git` as origin and authorized push; primary main was
-  read-only verified at cc9e4cf before canonical consolidation. Verify the next
-  normal push by the primary SHA; GitHub mirror errors are not primary failures.
-  CI enrollment/target setup and the public Signet domain remain pending.
+  verified at fada598 after the normal canonical-root push. Future pushes must
+  likewise verify the primary SHA; GitHub mirror errors are not primary failures.
+  CI enrollment/target setup still needs fresh verification and the public Signet
+  domain remains unconfirmed.
 - Do not sidestep the requested workflow with an application-owned SSH deployment
   script, production containers, a fake success record, or Debian-linked binaries
   on Alpine. Native build ABI and chosen package-root backend must match maa-1.
diff --git a/.scratch/session-handoff.md b/.scratch/session-handoff.md
@@ -14,25 +14,46 @@ cancelled-skill deletions are retained; local settings/tasks are preserved and
 ignored. No application/runtime change from cc9e4cf, no new CI/deployment claim.
 Read HANDOFF's canonical-checkout section before any historical resume block.
 
-## Current beta preparation — supersedes old resume/runtime pointers below
+## End-of-session checkpoint
+
+- Published consolidation: fada598 (main and primary origin/main matched). Use
+  Git HEAD for later docs-only commits, not a retired worktree or cached hash.
+- One clean root, no pending application changes; docs flush adds no runtime code.
+- Original root backup and both retired tree archives are private/recoverable via
+  current-canonical-root; local settings/tasks remain ignored at the root.
+- Owned r5 preview18095 and preserved8080/18087/18090 were left running, with no
+  host bind mounts. Verification stack18096 is stopped. Do not stop/upgrade user
+  previews merely to end this session.
+- No actual Minci CI run or maa-1 deployment. Public domain/auth policies and
+  selected-project CI/target setup need resolution if rollout resumes. Reinspect
+  current Minci installation/docs: the fc0ea0f inventory below dates2026-11-22.
+- Keep resource20/umbrella14 and tickets24–29 open. No real TSA configured; no
+  resource/native/SSO qualification inferred from the green fixture samples.
+
+Start next session in the root, check Git status/refs, read CONTEXT/HANDOFF/ADRs
+and the beta queue, then follow the owner's next decision. Source review and
+merging are finished; do not recreate parallel working trees or reapply the old
+prototype delta. No CI, provider setup or production changes during this flush.
+
+## Historical beta preparation —2026-11-22 (superseded by checkpoint above)
 
 Owner authorized a controlled beta despite unfinished sections and requested a
 BETA marker plus no username/groups browser prompts. Owner subsequently selected
 maa-1, required commit → Minci CI run → deploy, and requested merging all scoped
 Signet work to main. Read-only maa-1 inventory confirms Alpine/OpenRC and existing
 Authelia/authz but no Signet install. NO production deployment has occurred.
-Installed cdg-1 runner fc0ea0f has local recipes/namespaces only; Minci remote
-helpers are separate uncommitted/uninstalled WIP. Signet Git remote/CI enrollment
-and public domain remain pending. Read ticket29 and `current-maa1-rollout` evidence;
+At that inspection, cdg-1 runner fc0ea0f had local recipes/namespaces only and
+Minci remote helpers were separate uninstalled WIP. Recheck before rollout;
+origin was subsequently supplied and main pushed. CI/target/public-domain setup
+is not verified by this older inventory. Read29 and `current-maa1-rollout` evidence;
 do not invoke all-project minci-submit or invent an app-owned SSH deploy. Native-
 only production, trusted auth, data integrity and shared-service safety still apply.
 
 Main and feat/feature-first-roadmap were merged locally at64e43d2; merge evidence
-is `~/.local/var/signet-work/merge-main-20261119.1lCDRN/RESULT.md`. The ACTIVE beta
-worktree is `/Users/saikrupa/.local/var/signet-work/main-merged-20261119.yQc1lQ`,
-beta prepared on `feat/beta-release`; owner now authorizes commit and fast-forward
-main merge. Verify actual Git refs/status and current-maa1-rollout before work.
-Original dirty checkout remains preserved. Start with
+is `~/.local/var/signet-work/merge-main-20261119.1lCDRN/RESULT.md`. Beta was prepared
+in `main-merged-20261119.yQc1lQ` on feat/beta-release, then merged as cc9e4cf.
+That linked working tree is retired. The original dirty state is preserved in
+current-canonical-root's recovery archive; use only the canonical root now. Start with
 `.scratch/beta-release/README.md` and tickets14/20/24–29, not the older recovery
 HEAD/status below. Local merge is not a CI run/push/deployment; inspect the latest
 merge receipt rather than treating historical no-commit statements as current.

@@ -108,9 +129,9 @@ clock/known_hosts changes or browser/native acceptance. Next design must cover
 child buffering BEFORE parent readiness in both orders, not repeat parent-only
 locking. Existing no-publication/no-third-party-edit limits still apply.
 
-## Resume here
+## Historical recovery —2026-11-17 (not a resume instruction)
 
-Authoritative integration (recovered2026-11-17):
+Former integration (now retired):
 `/Users/saikrupa/.local/var/signet-work/integration-recovery-nQvIoiCL`, branch
 `feat/feature-first-roadmap`, HEAD9876b79 plus substantial UNCOMMITTED changes.
 The old `/tmp/signet-roadmap-20261112/integration` lost its `.git` and source
diff --git a/AGENTS.md b/AGENTS.md
@@ -5,7 +5,8 @@ Read `CONTEXT.md` first (the glossary — use its words), then `HANDOFF.md`
 the user-facing description and install guide. The invariants below are the
 required design, not a claim that the current code satisfies every one.
 See `HANDOFF.md` §4 for source-verified gaps and `docs/REBUILD.md` for the
-historical implementation plan.
+historical implementation plan. Resolve the active checkout from HANDOFF's
+canonical-checkout section; older worktree paths are historical.
 
 ## Hard constraints (from the owner; do not relax without asking)
 

@@ -111,13 +112,13 @@ sleep 6 && podman exec signet /src/test/e2e.sh        # must end with "all passe
   `podman cp www/app.js signet:/var/www/signet/app.js` (same for `style.css`).
   C changes need a rebuild of the image. A newly created container has fresh
   data; restarting an existing one preserves its initialized database.
-* Browser testing: http://localhost:8080. The current dev config does not
-  implement forward-auth. The client can send `Remote-User`/`Remote-Groups`
-  from `localStorage.signetDevIdentity` (`{"user":"asha","groups":"clerks"}`).
-  **Security gap:** `src/http.c` defaults missing headers to an admin identity
-  without checking `DEV_MODE`. Keep this stack isolated; see `TESTING-AUTH.md`.
-  Dev groups: `clerks` (drafter), `management` (signer), `signet-admins`
-  (admin + pim_admin). Signature files exist for `ceo` and `manager`.
+* Browser testing: use the owned disposable preview from HANDOFF; never run
+  destructive contracts against preserved previews or production. Missing/invalid
+  identity fails closed in both APIs; missing groups grant no roles. There are no
+  startup username/groups prompts. Deliberate `localStorage.signetDevIdentity`
+  test headers are loopback-only; they are not login or proxy-auth evidence.
+  Production must overwrite identity headers and prevent backend bypass. See
+  `TESTING-AUTH.md` for the isolated test facility and configurable example groups.
 * `curl` POSTs with no body get `411` from lighttpd — send `-d ''`.
 * All state-changing requests need `X-Requested-With: signet`.
 * Portable files can be syntax-checked on macOS:

@@ -140,8 +141,10 @@ the visual check (edit mode vs. proof vs. stamped copy, both pages).
   the owner asks; branch first if on the default branch. Preserve unrelated
   working-tree changes.
 * `vendor/` and `www/vendor/` are third-party, fetched verbatim — do not edit.
-* `test/fixtures/` are generated by `test/make-fixtures.py` (dev machine only);
-  they contain no real signatures or data. Never commit real signature images.
+* Existing `test/fixtures/` contain synthetic data only. Their historical
+  `test/make-fixtures.py` is not permission to execute Python; per-use approval
+  is required by the owner's policy. Prefer existing native fixture facilities.
+  Never commit real signature images.
 
 ## Agent skills
 
diff --git a/CLAUDE.md b/CLAUDE.md
@@ -1,51 +1,9 @@
-<!-- agent-lsp:rules:start -->
-## agent-lsp Skills
+# Signet agent entrypoint
 
-agent-lsp provides 66 code intelligence tools and 23 workflow skills.
-Prefer these tools over text search for code intelligence tasks.
+Follow `AGENTS.md` for repository rules and required context reads. Resolve the
+current checkout, recovery evidence and next work from `HANDOFF.md` and
+`.scratch/session-handoff.md` before editing.
 
-**Before editing code:** call `blast_radius` for blast-radius analysis.
-**Before applying edits:** call `preview_edit` to preview the diagnostic delta.
-**After any change:** call `get_diagnostics`, then `run_build` and `run_tests`.
-
-**Task-to-tool mapping (use these instead of Read/Grep for code):**
-
-| Task | Use this | Not this |
-|------|----------|----------|
-| See file structure | `list_symbols` | `Read` + manual scanning |
-| Find a symbol by name | `find_symbol` | `Grep` across files |
-| Find all usages | `find_references` | `Grep` for the name |
-| Understand a symbol | `inspect_symbol` | `Read` the file |
-| What calls this function | `find_callers` | `Grep` for the name |
-| Replace a function body | `replace_symbol_body` | `Edit` with text matching |
-| Delete unused symbol | `safe_delete_symbol` | `Edit` to remove lines |
-
-| Skill | Description |
-|-------|-------------|
-| `/lsp-architecture` | Generate a structural architecture overview of a codebase: languages, package map, entry points, dependency graph, an... |
-| `/lsp-concurrency-audit` | Concurrency safety audit for a type or file. Maps all fields, traces which are accessed from concurrent contexts (gor... |
-| `/lsp-cross-repo` | Cross-repository analysis — find all callers of a library symbol in one or more consumer repos. Use when refactorin... |
-| `/lsp-dead-code` | Enumerate exported symbols in a file and surface those with zero references across the workspace. Use when auditing f... |
-| `/lsp-docs` | Three-tier documentation lookup for any symbol — hover → offline toolchain doc → source definition. Use when ho... |
-| `/lsp-edit-export` | Safe workflow for editing exported symbols or public APIs. Use when changing a function signature, modifying a public... |
-| `/lsp-edit-symbol` | Edit a named symbol without knowing its file or position. Use when you want to change a function, type, or variable b... |
-| `/lsp-explore` | Tell me about this symbol": hover + implementations + call hierarchy + references in one pass — for navigating unfa... |
-| `/lsp-extract-function` | Extract a selected code block into a named function. Primary path uses the language server's extract-function code ac... |
-| `/lsp-fix-all` | Apply available quick-fix code actions for all current diagnostics in a file, one at a time with re-collection betwee... |
-| `/lsp-format-code` | Format a file or selection using the language server's formatter. Use before committing to apply consistent style, or... |
-| `/lsp-generate` | Trigger language server code generation — implement interface stubs, generate test skeletons, add missing methods, ... |
-| `/lsp-impact` | Blast-radius analysis for a symbol or file — shows all callers, type supertypes/subtypes, and reference count befor... |
-| `/lsp-implement` | Find all concrete implementations of an interface or abstract type. Use when you need to know what types satisfy an i... |
-| `/lsp-inspect` | Full code quality audit for a file, package, or directory. Supports batch mode (directory walk with --top ranking), c... |
-| `/lsp-local-symbols` | Fast file-scoped symbol analysis — find all usages of a symbol within the current file, list all symbols defined in... |
-| `/lsp-onboard` | First-session project onboarding. Explores the project structure, detects build system, test runner, entry points, an... |
-| `/lsp-refactor` | End-to-end safe refactor workflow — blast-radius analysis, speculative preview, apply to disk, verify build, run af... |
-| `/lsp-rename` | Two-phase safe rename across the entire workspace. Use when renaming any symbol, function, method, variable, type, or... |
-| `/lsp-safe-edit` | Wrap any code edit with before/after diagnostic comparison. Speculatively previews the change first (preview_edit), t... |
-| `/lsp-simulate` | Speculative code editing session — simulate changes in memory before touching disk. Use when planning edits that mi... |
-| `/lsp-test-correlation` | Find and run the tests that cover a source file. Use after editing a file to discover exactly which test files and te... |
-| `/lsp-understand` | Deep-dive exploration of unfamiliar code — given a symbol or file, builds a complete Code Map showing type info, im... |
-| `/lsp-verify` | Full three-layer verification after any change — LSP diagnostics + compiler build + test suite, ranked by severity.... |
-
-Call `prompts/get` with any skill name for full workflow instructions.
-<!-- agent-lsp:rules:end -->
+Use tools actually available in the current harness. The previous agent-lsp/skill
+setup was cancelled; its generated tool mandates are not active requirements.
+Do not reinstall or reconfigure that setup to follow historical instructions.
diff --git a/HANDOFF.md b/HANDOFF.md
@@ -13,7 +13,18 @@ agent settings/tasks and Finder metadata stay outside tracked product source.
 Application/runtime tests remain byte-identical to cc9e4cf. Origin is now
 `git@nply.org:asapien/signet.git`; the owner authorizes push and treating secondary
 GitHub mirror errors separately. Verify the primary remote SHA, not mirror output.
-This consolidation is not a production deployment or Minci CI acceptance.
+Consolidation commit fada598 was pushed and primary origin/main independently
+verified equal; secondary mirror errors were ignored as instructed. Current HEAD
+may include later documentation-only commits: Git is the source of truth. One
+registered working tree remains; local task/settings metadata is preserved and
+ignored. This consolidation is not a production deployment or Minci CI acceptance.
+
+**Resume:** the owner ended the session at a clean source-review checkpoint.
+Read CONTEXT.md, this handoff, ADRs and `.scratch/beta-release/README.md`. Continue
+rollout29 only when requested; verify current Minci capabilities/configuration
+before treating the older inventory below as a live blocker. Public Signet domain,
+per-app auth/role/write policies and actual source-bound CI/activation evidence
+still need resolution. Keep14/20 and24–29 open; TSA remains optional/disabled.
 
 Documentation reconciled against source and Git history on 2026-11-10;
 workflow implementation and verification updated 2026-11-12;

@@ -26,9 +37,9 @@ verification. Source inspection found material gaps against the agreed model;
 see §4. Fresh verification is recorded separately in
 `.scratch/roadmap/ticket-{10,11,12,13}.md`. Integration was merged locally to main
 at64e43d2265b96fad8e1bfaa8a9f1c21d860c6e36; the original dirty checkout remains
-preserved separately. Beta changes were prepared on `feat/beta-release`; the
-owner now requests committing and merging all scoped Signet work to main before
-CI/deployment. Check actual Git refs/status in the active worktree:
+preserved in the private recovery snapshot. Beta changes were committed and
+merged as cc9e4cf; canonical consolidation followed as fada598. Check actual Git
+refs/status in the active worktree:
 `/Users/saikrupa/Projects/signet`.
 
 **Latest owner request:** deploy a controlled beta despite unfinished sections,

@@ -39,13 +50,14 @@ Warning-clean isolated build/full E2E and native-Chrome logged-out bootstrap
 checks passed. No default identity or real SSO was introduced; production login
 must provide trusted identity. Owner confirmed **maa-1**, using Minci's
 commit → CI run → deploy workflow. Read-only inventory confirmed Alpine/OpenRC
-and existing Authelia/authz services, but no Signet installation. Installed cdg-1
-runner is fc0ea0f (local recipe delivery); remote-delivery helpers exist only in
-the separate dirty Minci worktree, not the installed release. No Signet Git remote
-or CI enrollment/public domain is configured. **No production deployment has
-occurred**; do not substitute an application-owned SSH deploy or invoke the
-unselected all-project `minci-submit` wrapper. See ticket29 for the concrete
-workflow blockers. This request supersedes historical
+and existing Authelia/authz services, but no Signet installation. That inventory
+was on2026-11-22: Minci fc0ea0f then provided local delivery, while remote helpers
+were separate uninstalled work. This is historical evidence, not a claim about
+Minci's current state; another agent may have advanced it. Origin is now supplied
+and main pushed. Signet CI enrollment/target capabilities and public domain still
+need fresh verification/configuration. **No production deployment or actual CI
+run was performed in this session**; use selected-project Minci, not an app-owned
+SSH deploy or the unselected all-project `minci-submit` wrapper. See ticket29. This request supersedes historical
 no-deployment intent, not the resource failure, security/data safeguards or
 native-only production policy. Owned r5 local preview18095 has only three beta
 static-asset overlays; its released synthetic PDF/metadata are byte-identical.

@@ -122,9 +134,10 @@ submits on one series.
 
 **Git history inspected on 2026-11-10:** rebuild tasks are committed through
 c0b1262; later commits on `main` add Authelia/test-container work through
-68ed63b. The working tree currently has uncommitted Authelia/dev-stack edits
-plus documentation changes and removal of project-local skills. Preserve
-unrelated changes; inspect `git status` for the live inventory.
+68ed63b. At that historical inspection the original root had uncommitted
+Authelia/dev-stack edits and local skill removals. The source/configuration delta
+is now privately archived; intentional metadata removals are committed. This is
+not the live inventory: use the canonical-checkout section and `git status`.
 
 ## 2. Decisions and their reasons