Repository navigation
v1.1.0
v1.1.0
Feature release for the M7 / F3 wave: in-app notifications (F3), server-side audit
filters with redacted export (F4), a GitLab git provider (F6), and advisory task comments
with @mentions (F11). It builds on v1.0.1 with three new migrations (008/009/010)
and a targeted grants change that operators must re-run after migrate. Prefer
digest-pinned images from the GitHub Release; do not install from a floating latest tag.
Highlights
- F3 — in-app notification center + unread badge (US-20). A per-user projection of the
project event feed:emitEventwrites each recipient's notification row in the same
transaction as the business change, so the unread badge can never disagree with the
facts it summarizes. Five types —TASK_ASSIGNED,REVIEW_REQUIRED,APPROVAL_PENDING,
TASK_BLOCKED,COMMENT_MENTION. Read state is per-user and durable across refresh;
retention is seven days, enforced at read time (no reaper). The bell sits next to the
connection-status indicator and polls on the existing F1 cadence (no new WebSocket/push
channel). Deep links focus the target: task →/projects/:p/tasks/:id, approval →
/projects/:p/approvals?approval=:id(opens the approval Modal and scrolls the card,
O-W11), mention → the task comment anchor. - F4 — server-side audit filters + redacted JSONL/CSV export (US-21). Project and
organization execution audit gainactor/task/action/from/tofilters
(cursor pagination preserved). New ADMIN-only project and org-ADMIN cross-project export
endpoints stream JSONL/CSV through a fixed field whitelist that never serializes the
rawdetailsjsonb, so a future detail field cannot silently leak. Each export writes
its own audit row (filter summary + row count + sha256 content hash). REVIEWER may list
but not export (the console hides the button and the server returns 403). No new
migration — filters and export are query-only. - F6 — GitLab git provider (US-23). Register a GitLab repository (full HTTPS URL or a
group/projectshort path), pull by pinned revision with the samecontent_digest
algorithm as GitHub, and run a read-only "test pull" that returns a digest/revision or a
classifiedAUTH/NOT_FOUND/NETWORKerror and never echoes the token. Per-repo
read-only credentials are stored encrypted at rest (AES-256-GCM via the existing
SessionSignerwith purposerepo_access_token), out of the repositories document jsonb
so the generic document-returning handlers can never echo them. GitHub behavior is
unchanged (still the server-levelACCP_GITHUB_TOKEN). - F11 — advisory task comments + @mentions (US-24). Human-to-human discussion on a
task that is never a state-transition channel:task_commentshas no FK or trigger to
task status/version, theCreateComment/EditCommentschemas are
additionalProperties:falsewith no status field, and comment handlers only ever write
the comments table plus the F3 projection. @mentions of active members fan out a
COMMENT_MENTIONnotification (invalid mention → 400, task untouched). Edits set an
"edited" marker; deletes are soft (tombstone; no hard delete). - Web O-W11 deep-link focus (
d04376e) — the approval deep link now opens the target
approval Modal and scrolls its card into view, flipping the filter to "all" if the
approval is not pending; the?approval=query is cleared after use.
All four Validate workflows ran green on a8be2a7: production foundation
40987101364,
control-plane 40987101258,
Web console 40987101344,
documentation 40987101423.
Compatibility
Supported upgrade-from: v1.0.1 (docs/releases/v1.0.1.md). Fresh install is also
supported.
- Upgrade from
v1.0.1: apply the three new migrate files008_notifications.sql,
009_repository_tokens.sql, and010_task_comments.sql, then re-run grants (see
Migrations / Grants). Re-running grants is required this release — the F3 and F11 tables
did not exist atv1.0.1, so a stale grant set leaves thenotificationsand
task_commentstables without the INSERT/UPDATE the API needs. - Installs older than
v1.0.1should first reachv1.0.1(apply006_task_query.sqland
007_org_admin.sqlper those notes) and then apply008/009/010.
Untagged or pre-RC builds should treat this as a new install after backup, or follow the
documented adopt path separately.
Migrations
Apply the normal production Compose sequence (migrate then grants) before returning
traffic. All three files are new on main relative to the v1.0.1 tag.
008_notifications.sql(F3): creates thenotificationstable and its two indexes
(newest-first keyset per recipient; partial index for the cheap unread-count summary).
Notifications are a per-user projection of the event feed with a seven-day retention
enforced at read time (occurred_at), so no separate reaper runs. Thetypecolumn is
constrained toTASK_ASSIGNED/REVIEW_REQUIRED/APPROVAL_PENDING/TASK_BLOCKED
/COMMENT_MENTION. A foreign key tomembershipsties each row to a real membership.009_repository_tokens.sql(F6): addsrepositories.access_token text. The value
is authenticated AES-256-GCM ciphertext (SessionSigner purposerepo_access_token),
stored out of the repositories document jsonb so the generic document-returning
list/get handlers can never echo it. It is only read server-side when selecting a
provider to verify or pull; it is never persisted in plaintext.010_task_comments.sql(F11): creates thetask_commentstable (advisory only; no
FK or trigger to task status/version) withmentions text[] NOT NULL DEFAULT '{}',
soft-delete (deletedtombstone with the body cleared) and aneditedmarker, plus a
chronological (oldest-first) keyset index for one task's thread. Foreign keys tie each
comment to its task and to a real membership.- No additional migrate files beyond current
mainare required for this tag once
008/009/010and grants have succeeded. Production dumps carry the schema so a
restore recreates these tables and indexes.
Grants / privileges
Production installs must apply deploy/production/grants.sql after migrate, and this
release requires re-running it on upgrade: the new F3/F11 tables did not exist at
v1.0.1, so an un-refreshed grant set leaves them without the privileges the API needs
and both features break silently in production. This release adds these targeted grants to
accp_api beyond v1.0.1:
notifications—INSERT(the same-transaction projection writes recipient rows)
andUPDATE(mark-read setsread_at). NoDELETE— notifications age out at read time
via the seven-day retention window.task_comments—INSERT(create a comment) andUPDATE(author edit sets
edited; author/ADMIN soft-delete clears the body and sets the tombstone). NoDELETE—
comments are soft-deleted, never hard-deleted.
repositories already carries INSERT for accp_api, which covers writing
access_token at register time; no new grant is required for F6. Least privilege is
preserved: runtime roles still receive SELECT on all tables, no DELETE on the two new
tables, and no UPDATE on human_users.is_org_admin.
deploy/production/check-privileges.sql now also asserts that accp_api has INSERT
and UPDATE on both notifications and task_comments, in addition to the existing
v1.0.1 boundary checks (UPDATE on human_users.active, no UPDATE on
human_users.is_org_admin, etc.).
Verify with:
accp-ops check --database-url-file /run/secrets/migrator_urlOn failure, re-run grants:
docker compose -f deploy/production/compose.yaml run --rm grantsSkipping grants on this upgrade silently breaks the F3 notification badge (no INSERT on
notifications) and F11 comment posting/editing (no INSERT/UPDATE on task_comments).
Config / secrets / compose
- No new secret file names and no new env vars for the F3, F4, or F11 features. GitHub
still uses the server-levelACCP_GITHUB_TOKEN, unchanged. - F6 GitLab credentials are per-repository, supplied at register time, not via a
server env var. They are encrypted at rest with the existing session-signing keys
(SessionSigner purposerepo_access_token); no new signing-key secret is introduced.
Editing a repository with a blank token leaves the stored credential unchanged, and no
handler echoes it back. - Production still pins
ACCP_IMAGE(and the ops image for backups) to Release digests;
keep the SPA client ID (ACCP_OIDC_CLIENT_ID) distinct from the API audience
(ACCP_OIDC_AUDIENCE).
Breaking / operator actions
- Apply
008/009/010and re-run grants before returning traffic. Re-running
grants is mandatory this release: the F3notificationsand F11task_commentstables
are new, so without a fresh grants run the API cannot insert notifications or write
comments. Confirm withaccp-ops check. - Pin
ACCP_IMAGE(and the ops image for backups) to the digests published on this
Release; do not use mutable local tags as the install identity. - After migrate, always run grants and confirm with
accp-ops checkbefore returning
traffic. - Do not use
down -vduring upgrade or maintenance; named volumes hold PostgreSQL,
JetStream, and Caddy state. - Task comments are advisory only. They never move a task, approval, Run, or owner;
the API rejects any status/version field on a comment. Do not build process automation
that expects a comment to drive state. - GitLab access tokens are per-repository and read-only. Provide a read-only token at
register time; it is stored encrypted and never echoed. The read-only "test pull" never
returns the token and does not auto-register the repository.
Known limits
- F6 live GitLab pull not exercised this wave. The GitLab provider ships with digest
contract and error-classification unit tests (httptest), but a real GitLab fixture-repo
trial pull with a live read-only token was not run — it needs an operator-provided
test repo and token. Treat live GitLab acceptance as pending until that credential is
available. - Live GitHub fixture sync remains an environment/token-hygiene issue
(TestGitHubLiveTokenSyncFixturefails whenACCP_GITHUB_TOKENis set but the live
fixture is unavailable). This is not a code defect introduced by this wave — the GitHub
fetch path is unchanged; the F6 change only adds an additive probe path. - Control-plane integration tests (
//go:build integration) and full-DOM e2e require
Docker/Postgres and a managed server; pure unit tests plus static review cover the
digest contract, redaction, comment status-invariance, and mention projection in their
absence.
Known follow-up / P1
- Live GitLab acceptance (F6): run the pinned-revision pull + digest check against a
dedicated private test repo with a read-only token once credentials are available. - Audit export ceiling: export is capped at 50000 rows (413 over the ceiling); there
is no byte cap or streaming yet. Revisit if journals grow. - Full-DOM comment/notification e2e (draft retained after a failed send, "@" opens the
picker, auto-scroll, REVIEWER no-export button, blob download) remains managed-server
e2e, deferred behind the pure-unit coverage.
Reviewed-against
- docs/releases/v1.0.1.md
- docs/product-delivery-plan.md
- docs/web-console-guide.md
- docs/production-deployment.md
- deploy/production/grants.sql
- deploy/production/check-privileges.sql
- internal/database/migrations/008_notifications.sql
- internal/database/migrations/009_repository_tokens.sql
- internal/database/migrations/010_task_comments.sql
Artifacts
Image digests, Bridge archives, and SHA256SUMS.txt are produced by the release workflow
on tag push and attached to the GitHub Release for this tag. Digests are not listed in
these notes in advance — read them from the published Release after the tag is pushed, and
use them in Compose (ACCP_IMAGE=ghcr.io/javaweh/accp@sha256:…) and backup --image /
--ops-image flags.
Published digests
{
"tag": "v1.1.0",
"accp": "ghcr.io/javaweh/accp@sha256:f252d3f50a6c5f34d8a2523452e5c6ff241bc618730d1006a382d21a21538b94",
"accp_ops": "ghcr.io/javaweh/accp-ops@sha256:a6bd936912e192b3acea70a55dff038e996a71676cfc2c46bd478af37da6310e"
}Bridge checksums
8f383b8ce3bd6dbcb828e28e1ff135b9271b252f5a010e1e5af5413ce980263d accp-bridge-v1.1.0-linux-amd64.tar.gz
210a655e6c4fe3e58d370ac42288ce8a26d4eb3c0c07a2eacdff825c9ac1dddb accp-bridge-v1.1.0-linux-arm64.tar.gz
c472f1e5bbc6bcfad23a6ab279f58119da598966aac6bf4a09329556817b32ab accp-bridge-v1.1.0-darwin-amd64.tar.gz
0b714c46b7cfd86d79a11510f7e8f9ff60f98f7b4dd5265f2616393fec155882 accp-bridge-v1.1.0-darwin-arm64.tar.gz
54f90e10029472eaf0150bc9e29ca6fa1875d0ab68828926572e4beb81c0e7cc accp-bridge-v1.1.0-windows-amd64.zip