Repository navigation
SOUR-108: server-side business object visibility authorization - #9133
Open
Souredfish wants to merge 12 commits into
Open
Souredfish wants to merge 12 commits into
Souredfish wants to merge 12 commits into
Conversation
|
Someone is attempting to deploy a commit to the IndexLabs Team on Vercel. A member of the Team first needs to authorize it. |
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Souredfish
force-pushed
the
sour108/server-auth-visibility
branch
from
October 9, 2026 00:22
282f307 to
0050396
Compare
Co-authored-by: multica-agent <github@multica.ai>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Existing Access rules determine whether a member may run an agent; they do not define visibility of business objects. This PR adds a dedicated server-side visibility authorization model for tasks, projects, squads, and their associated data.
The path from the product rule to the implementation is: derive each caller's visible subjects from the confirmed agent/squad mapping, apply the same authorization to object queries and writes, then carry that boundary through search, tables, associated resources, notifications, and realtime delivery. Owner/admin rescue access is audited, and lifecycle events preserve the authorized recipients computed before deletion or archive.
Related Issue
Multica issue: SOUR-108 (workspace issue ID
01a11c16-5cd2-7423-a999-a63d04c5cd12). No matching GitHub issue exists, so there is no GitHubCloses #...reference.Type of Change
Changes Made
server/internal/handler/object_visibility.goand handler entry points for tasks, projects, squads, and child resources.565_object_visibility_auditand566_business_visibility_functions; updated inbox/agent/workspace-delete SQL and generated sqlc files.How to Test
pgvector/pgvector:pg17) and Redis (redis:7-alpine) services. It runsgo build -race ./...,go vet -race -tags agentintegration ./...,go run ./cmd/migrate up, the Go test wrapper, andbash scripts/test-go.sh --race --only regular.make sqlc, then verifygit diff --exit-code -- server/pkg/db/generatedand that no untracked generated files remain.Local Go tests were unavailable because the authoring shell has no Go toolchain. CI run 37864431482 on head
0050396f7dfb9bcd2f08230b5dbb28ecaeab12f9: backend-tests (including migration up), sqlc-check, backend-agent-tests, Windows execenv, and frontend passed. The vulnerability scan failed on GO-2026-6617 in the Go 1.26.8 standard library (net/http); govulncheck reports Go 1.26.9 as the fixed version. This also causes the aggregate backend gate to fail; it is not introduced by this PR's changes.Checklist
AI Disclosure
AI tool used: Multica Agent (Codex)
Prompt / approach: Implement the approved server-side visibility rules without changing their semantics; inspect each read/write/event path, add centralized authorization and regression coverage, then use repository CI to validate backend tests, migrations, and generated SQL. Review findings were used to fix implementation/test issues and complete this PR description.
Screenshots
N/A — server-only change.