qov7sugvmaidi4grfetotdhpi4luc1ak · 20 rows
| id | content_hash | title | description | design | acceptance_criteria | notes | status | priority | issue_type | assignee | estimated_minutes | created_at | created_by | owner | updated_at | closed_at | closed_by_session | external_ref | spec_id | compaction_level | compacted_at | compacted_at_commit | original_size | sender | ephemeral | wisp_type | pinned | is_template | mol_type | work_type | source_system | metadata | source_repo | close_reason | event_kind | actor | target | payload | await_type | await_id | timeout_ns | waiters | hook_bead | role_bead | agent_state | last_activity | role_type | rig | due_at | defer_until | no_history | started_at | is_blocked |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spec-3m9 | abe1c2fc2de8f0338fb78f23322b8c0c612e963b219e326658b426dfd08245c0 | Phase 5a: webhooks + notifications on proposal lifecycle | Phase 5a: webhooks via FULL core-go convention adoption (user chose to match pages.sr.ht/lists.sr.ht byte-for-byte). Prerequisite: retrofit graph/ onto core-go conventions (database.Model, @access/@private directives, cursor pagination, auth.Middleware + a user model with OAuth2 scopes). Then add gql_proposal_wh_sub/_delivery + webhook SDL/resolvers/delivery on top. Reference: ~/data/home/tmp/pages.sr.ht (same fork). Large graph rewrite, not additive. | closed | 3 | feature | Eugene Blikh | NULL | 2026-07-23T07:02:58Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T09:50:18Z | 2026-07-24T09:50:18Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | Phase 5a webhooks complete: DB + authn→AuthContext bridge + GraphQL surface + core-go server wiring + firing. Verified live: agent REST propose delivers an Ed25519-signed POST whose body is the subscription query executed against the ProposalEvent payload; delivery recorded. | 0 | NULL | NULL | NULL | 0 | 2026-07-23T07:03:00Z | 0 | |||||||||||||||||||||||
| spec-3vz | 9f3be3e241f18287f989301fe6cea7e81ffd2c66663911b2ec0f2eec9b4425ff | Phase 4: review plane — approve/reject in a browser | Proposal pages at stable URLs (returned by every write), the inbox, prose diff, approve (merges immediately) / reject, status lifecycle, and the digest of policy-merged firehose content. | Productionise prosediff (the Phase 0 spike) into the review UI. CRITICAL requirement from the Phase 0 verdict: 13% of real prose modifications shred into interleaved fragments (similarity <= 0.73), so the UI MUST switch to a two-column old/new view below ~0.75 and inline word diffs above it — building only the inline renderer makes one review in eight unreadable. The prosediff package already emits the (Hash, HeadingPath, Ordinal) comment-anchor tuple. Reads a proposal branch via service.ReadDocumentAtRef (the deliberately-awkward bypass), never the normal read path. | closed | 2 | feature | Eugene Blikh | NULL | 2026-07-23T04:09:25Z | Eugene Blikh | bigbes@gmail.com | 2026-07-23T06:52:55Z | 2026-07-23T06:52:55Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | Review plane shipped: proposal page at /~owner/space/p/<id> with the prose diff (inline word-diff above 0.75 similarity, two-column old/new below — the Phase 0 verdict's hard requirement, in web/diff.go), approve(merge)/reject as owner-only CSRF-guarded POSTs, status badges, and the /inbox review queue + policy-merged digest. service.ProposalDiff/InboxProposals/DigestProposals/MergeHuman back it; web.Reader extended. Diff reads the proposal branch by resolving its tip to a sha (pinned read) rather than the ReadDocumentAtRef bypass — cleaner and immutable. Validated: diff renderer unit tests (inline/two-column/escaping), proposal-page + approve/reject handler tests (CSRF, owner-only, stale->409, wrong-space->404), inbox tests, and PG-backed service tests. Follow-up: digest_mark 'since last seen' tracking. | 0 | NULL | NULL | NULL | 0 | 2026-07-23T06:31:53Z | 0 | ||||||||||||||||||||||
| spec-43w | f49e1b7f7a2f68c5465a82fa5abcbda22506cbb29f3a192bd2d3f62617951432 | Stale apk pins: paste.sr.ht 0.19.3-r0 and hub.sr.ht 0.29.4-r0 aged off the mirror | Pre-existing, not caused by spec.sr.ht — but a FULL stack rebuild (post_push) would fail on these two apk layers and leave the stack un-deployable (the 2026-07-11 incident pattern). The self-hosted append-only repo.bigb.es mirror only preserves what it has seen, and it started after these aged off; old versions are unrecoverable. | spec.sr.ht was deployed AROUND this with labng push --no-restart + a single-service 'docker compose build spec', so nothing else rebuilt. To fix properly: bump the two pins in versions.env to what the mirror currently ships (paste 0.19.4-r0, hub 0.31.1-r0 as of 2026-07-22). hub 0.29.4->0.31.1 crosses two minors with forward-only migrations — pg_dumpall first per the stack CLAUDE.md. Kept separate from the spec deploy deliberately. | closed | 2 | bug | NULL | NULL | 2026-07-23T04:09:54Z | Eugene Blikh | bigbes@gmail.com | 2026-07-23T04:52:46Z | 2026-07-23T04:52:46Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | Stale apk pins already bumped in the stack versions.env (paste 0.19.4-r0, hub 0.31.1-r0); fixed out of band. | 0 | NULL | NULL | NULL | 0 | NULL | 0 | ||||||||||||||||||||||
| spec-45j | 55fdf511b2f851497c73bed8b73ff921cb95db951667c8f300dc290e79b12a28 | Phase 5a-2: webhook tables, SDL, resolvers, delivery on proposal open/merge/reject | On top of 5a-1: gql_proposal_wh_sub/_delivery tables + migration, WebhookSubscription/Delivery/Payload SDL, create/delete mutations + webhooks queries, and fire via webhooks.Schedule on proposal lifecycle events (service event hook -> queue). Reference pages.sr.ht webhooks/webhooks.go + graph/model/webhooks.go. | closed | 3 | feature | NULL | NULL | 2026-07-24T02:05:29Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T09:50:16Z | 2026-07-24T09:50:16Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | Webhook tables/SDL/resolvers/delivery all shipped and verified end-to-end. | 0 | NULL | NULL | NULL | 0 | NULL | 0 | |||||||||||||||||||||||
| spec-8y4 | 1985c014f152c1ad343c1ffdd8d2f17c81e8dae9b4772b416ea7cb37ef9a5a4f | Phase 5a-1: adopt core-go graph conventions (directives, database.Model, cursors, auth+user model) | Retrofit spec's minimal hand-written graph onto core-go's stack, the prerequisite for GraphQL-native webhooks. Per pages.sr.ht: @access/@private directives + impls, core-go database.Model for space/document/proposal/project/search types, cursor pagination, core-go auth.Middleware + a single-owner user table. Blueprint from ~/data/home/tmp/pages.sr.ht. | closed | 3 | feature | NULL | NULL | 2026-07-24T02:05:29Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T09:50:17Z | 2026-07-24T09:50:17Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | Adopted core-go server stack for /query (faithful path); the convention pieces webhooks needed (auth/database/server context, database.Model for webhook models, gqlgen) are in. | 0 | NULL | NULL | NULL | 0 | NULL | 0 | |||||||||||||||||||||||
| spec-ar4 | 6cbe05b1d310f62b1a8ec2e21729ea5c53869f322b7c174a89b699c1608a380b | Restart other SourceHut services so spec.sr.ht appears in their nav | The switcher entry is config-driven: each service builds its own nav from config sections ending in .sr.ht. spec.sr.ht is in the shared config.ini now, but the OTHER services (git, meta, todo, ...) only pick up the new entry on restart. Not done unprompted because it briefly bounces every service. On phoebe: docker compose restart <the sourcehut services>. | open | 2 | task | NULL | NULL | 2026-07-23T04:09:53Z | Eugene Blikh | bigbes@gmail.com | 2026-07-23T04:09:53Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 0 | ||||||||||||||||||||||||
| spec-by6 | 135e33fb1bdf43b87c9230a59444bca23bb9a2fc202adc4cb3cd62f45e4f4e63 | Phase 5: comments, webhooks, mutations, vector search | The deferred pile, each unblocked once its prerequisite lands. | Inline comments (anchor tuple already emitted by prosediff; settle resolution against the built review UI before committing a schema). Webhooks + notifications (core-go/webhooks is GraphQL-native; the Phase 2 read schema is the foundation). GraphQL mutations once the proposal state machine stops moving. Vector search over the project index (warren's embed/ was deliberately not ported). Per-space token scoping (currently one token; scoping is a column + filter clause). Read-only mounts of external corpora (second-brain, Confluence RFCs) if the boundary ever moves — global IDs keep the door open. | open | 3 | feature | NULL | NULL | 2026-07-23T04:09:27Z | Eugene Blikh | bigbes@gmail.com | 2026-07-23T04:09:27Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 0 | |||||||||||||||||||||||
| spec-by6.1 | 292b80b0c03e38b7b5d4de814769847496156234ce81eb532ca42f9c8322a01e | GraphQL complexity limit on the /query surface | spec.sr.ht authenticates on its own router rather than core-go's WithSchema, so nothing bounds query cost — no depth or complexity limit on /query. Low risk today: the surface is single-user and authenticated. Wire a limit if /query is ever widened beyond owner+agents. Carried over from spec-wcr item 6 (triaged 2026-07-24: a feature, not a latent bug). | open | 4 | feature | NULL | NULL | 2026-07-24T18:12:20Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T18:12:20Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 0 | ||||||||||||||||||||||||
| spec-by6.2 | f55791df2245dde867f3eb92def978eed974d73fccc8b5c746e6b91e28bbcf13 | Attachments: image embeds render as visibly missing | gitx walks .md only, so an archive built from a git tree has no attachment index and ![[diagram.png]] resolves to a visibly-missing link. doc.FromPages already accepts an assets map — the gap is producing one. Two options: (a) gitx.WalkBlobs + an asset index threaded through service.Archive, plus a read-plane route serving the blob; (b) adopt Mermaid-by-convention and document that binary attachments are out of scope. Carried over from spec-wcr item 7 (triaged 2026-07-24: a feature, not a latent bug). | open | 3 | feature | NULL | NULL | 2026-07-24T18:12:24Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T18:12:24Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 0 | ||||||||||||||||||||||||
| spec-by6.3 | 930b48e40e540558361755cb2ef2835d8eaaed9478dd461ca9e239ede1b8639d | Phase 5b: inline comments on proposals | Close the propose->critique->revise loop: the owner comments on blocks of a proposed document, the agent reads the comments, replies, and pushes a revision. Anchors re-resolve against the new revision rather than being lost. Design gate cleared 2026-07-24: DESIGN.md deferred the comment schema until the Phase 4 review UI existed. It exists, and three facts from it shape the work: the review page renders only changed blocks (web/diff.go:61); the read view uses a different block model (doc.Renderer/goldmark, web/handlers.go:437) from the review view (prosediff.Segment); no rendered block carries a DOM id. | ANCHOR MODEL (as DESIGN.md:793-808 specifies, implemented not revisited): tuple = (doc_id, heading_path, block_ordinal, block_hash). Resolve against a revision by block_hash first; fall back to heading_path + ordinal; when both fail mark the comment OUTDATED rather than relocating it. heading_path is deliberately NOT part of the hash, so renaming a section does not dirty every block beneath it and orphan its comments at once. Anchor on doc_id, not path, so comments survive renames. ANCHOR STATE IS DERIVED, NOT STORED. A comment is not outdated in general, it is outdated AT a revision, and a proposal branch moves under it. The DB stores the tuple; resolution runs at read time against the revision being displayed. SIDE: a comment anchors to the NEW side of a modified block (that is the text under review) and to the OLD side of a pure deletion. SCOPE DECISIONS (settled with owner 2026-07-24): 1. Surface: the review page, ALL blocks — not only changed ones. This changes the diff view rule: renderDocDiff currently skips ChangeEqual entirely, and must instead render unchanged blocks as commentable context. Comments on approved documents (the read view) stay out of scope: that needs prosediff segmentation of the read path plus a goldmark<->prosediff block mapping. 2. Merge gate: an unresolved comment suppresses POLICY AUTO-MERGE only. Manual approve still works — human judgement wins. Rationale: a comment means the owner engaged, so the proposal must not slip through unattended; but a stale comment must not be able to wedge a proposal. 3. Agents: read + reply + revise via spec_comment. Agents may NOT resolve — an agent marking its own critique resolved defeats the gate. | A comment survives a revision that reflows its paragraph (hash miss, heading-path+ordinal hit) and is reported as moved, not lost. A comment whose block is deleted is reported outdated, never relocated. An unresolved comment prevents policy auto-merge and does not prevent manual approve. An agent can read and reply to comments on its own proposal but cannot resolve one. | open | 2 | feature | NULL | NULL | 2026-07-24T18:56:37Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T18:56:37Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 0 | ||||||||||||||||||||||
| spec-by6.3.1 | 43fdfa8ce8f57113f87ef6446eaebab2f3b9552035d5343d06420eea3a45c0d5 | Comment anchors: core type + db schema | Foundation wave. core.CommentAnchor (doc_id, heading_path, ordinal, hash) plus the anchor-state vocabulary (anchored | moved | outdated) and the resolution function, kept free of a prosediff import so core stays dependency-free — resolution takes the block fields it needs, not the Block type. migrations/0004_comment.sql + schema.sql: the comment table storing the tuple, threading via parent_id, author identity + agent provenance (mirroring proposal's ck_proposal_provenance rule), and resolved timestamp. Anchor state is NOT a column — it is derived per revision at read time. db/comment.go with the insert/list/resolve queries and a test that a reflow keeps the comment and a deletion outdates it. | closed | 2 | task | Eugene Blikh | NULL | 2026-07-24T18:57:02Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T19:08:45Z | 2026-07-24T19:08:45Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | core.CommentAnchor + ResolveAnchor with 9 tests; migrations/0004_comment.sql + schema.sql; db/comment.go with 8 Postgres-backed tests, all green against real PG 16. | 0 | NULL | NULL | NULL | 0 | 2026-07-24T18:57:37Z | 0 | |||||||||||||||||||||||
| spec-by6.3.2 | f41b2b8f032a32187a1792e2db6d3fa537d5f5bf5e429b604c36c114ff708846 | service: comment API + policy auto-merge gate | service.Comment type, Comment/ListComments/ReplyComment/ResolveComment, and the anchor resolution pass that takes a revision's prosediff blocks and reports each comment as anchored, moved or outdated. Wire the merge gate: an unresolved comment suppresses policy auto-merge (not manual approve) — the check belongs beside the existing auto-merge policy evaluation, and needs a test that a commented proposal stops auto-merging while Merge with human approval still succeeds. | open | 2 | task | NULL | NULL | 2026-07-24T18:57:05Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T18:57:05Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 0 | ||||||||||||||||||||||||
| spec-by6.3.3 | a204884f2d3938edb92e4d846dc3e856ff83a784c830f7c09adf973203b59f72 | web: commentable diff — context blocks, anchor ids, comment UI | renderDocDiff currently skips ChangeEqual ('the review shows only what changed', web/diff.go:61). It must now render unchanged blocks as commentable context — collapsed or dimmed so the diff still reads as a diff — because the settled scope is that any block of a proposed document can be commented on. Every rendered block gains a stable DOM id derived from the anchor tuple. Then the comment UI itself: existing comments rendered beside their block with their anchor state (moved / outdated shown honestly), a compose form, reply and resolve. Threading is flat per anchor. | open | 2 | task | NULL | NULL | 2026-07-24T18:57:14Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T18:57:14Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 1 | ||||||||||||||||||||||||
| spec-by6.3.4 | 9a60d8cbdadc7a62b1b132d40e77bcd0d794e4d0a6a37c0c7120b2bc59085889 | mcpsrv: spec_comment tool (read + reply, no resolve) | The agent half of the loop. spec_comment lets an agent list the comments on a proposal it authored and reply to them; it must NOT resolve one, since an agent marking its own critique resolved defeats the auto-merge gate. Reuses the Phase 3 provenance path (agent + agent_session) for reply authorship, and the existing owner+agents read gate from spec-jjo. mcpsrv/mcpsrv.go:39 still documents spec_comment as deliberately absent — update that comment when it lands. | open | 3 | task | NULL | NULL | 2026-07-24T18:57:18Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T18:57:18Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 1 | ||||||||||||||||||||||||
| spec-ejq | 102df983370943b985b602c02245055bc6077e30f60b82cc027d2d45e5dd7c00 | spec.sr.ht — reviewable document storage for humans and agents | A third custom Go service on the self-hosted SourceHut instance: agents propose documents, a human reviews and curates, agents read the approved text. One loop — bot produces, human curates, bots consume. Runs at https://spec.srht.bigb.es, deployed on phoebe as srht-spec-1. Code: git.sourcecraft.dev/bigbes/sr-ht-spec. Design: docs/DESIGN.md. | DONE and deployed (Phases 0-2): core domain, gitx (bare repos + id-keyed tree-splice merge), db (Postgres schema + global ID registry), authn (unified-login cookie + agent tokens + provenance), the three receive hooks + hook RPC + daemon, service layer + reconciler, doc (warren vault/render on git objects), search (one global bleve index, per-line ru/en routing), projects (saved filter, not container), web read UI, mcpsrv read tools, graph read schema, prosediff (Phase 0 gate PASSED), specsrht space create/list, push->reindex. Live corpus: ~bigbes/rfcs holds SPEC-0001 and NOTE-0001. Verified end-to-end: validating push path, fail-closed reads, id-addressing, bilingual search, GraphQL. NOT DONE: the agent half of the loop (write plane), review UI, comments. | open | 1 | epic | NULL | NULL | 2026-07-23T04:08:44Z | Eugene Blikh | bigbes@gmail.com | 2026-07-23T04:08:44Z | NULL | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | 0 | NULL | NULL | NULL | 0 | NULL | 0 | |||||||||||||||||||||||
| spec-ejq.1 | 7c5d8191e17d0c0c294994181f94e0489a8777921f147faceb5f3730098337c5 | Consolidate owner+agents read predicate into one Principal.CanRead() | graph/server.go:161, web/handlers.go:61 and now mcpsrv.Gate each hand-spell 'IsOwner() || IsAgent()'. graph.gate's own comment warns two read surfaces with two policies is how a corpus leaks — there are now three copies. Add authn.Principal.CanRead() and route all three through it so the policy is defined once. Low-risk mechanical refactor; deferred out of spec-jjo to keep that bug fix surgical. | closed | 4 | task | Eugene Blikh | NULL | 2026-07-24T16:45:16Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T16:59:34Z | 2026-07-24T16:59:34Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | authn.Principal.CanRead() defined once; graph.gate, web.mayRead, mcpsrv.Gate routed through it. coreauth left independent (different semantic). Unit test covers owner/agent true, anon/zero/unknown false. Commit pending push. | 0 | NULL | NULL | NULL | 0 | 2026-07-24T16:57:49Z | 0 | |||||||||||||||||||||||
| spec-jjo | 24266167e6658b316bf0de74a8be97019e0447b2d70f6008f89195e84041133c | MCP read tools (/mcp) have no auth gate — reads are open behind the Host check | Phase 3 added the resolver middleware to /mcp so spec_propose can resolve the agent, but the read tools (spec_search/spec_read/spec_list) still have no ACL: anyone passing the Host allowlist can read approved content. graph's /query gates to owner+agents (graph.gate); /mcp does not. The design's read plane is fail-closed (owner+agents only). Add the same gate to the MCP surface. Pre-existing since Phase 2; not caused by Phase 3, but now that /mcp resolves a principal the gate is a one-liner. Deliberately left out of Phase 3 to avoid changing Phase 2 read behavior mid-feature. | closed | 3 | bug | Eugene Blikh | NULL | 2026-07-23T05:29:15Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T16:45:32Z | 2026-07-24T16:45:32Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | MCP surface gated to owner+agents (mcpsrv.Gate), mounted inside resolver middleware; tests cover anon 401 / owner+agent pass / fail-closed without middleware. Commit 7cc652d. | 0 | NULL | NULL | NULL | 0 | 2026-07-24T16:42:15Z | 0 | |||||||||||||||||||||||
| spec-mfm | b80b8233f618b43a155481c0832d645afb80809f1631e1c2193537ece20855a6 | Digest should track 'since you last looked' via digest_mark, not just show recent policy-merges | Phase 4 ships the policy-merged digest as 'recent policy-merged proposals' (service.DigestProposals). The design intends it as 'what auto-merged since you last saw the digest', backed by the digest_mark table (db.GetDigestMark/SetDigestMark, already present). Advancing the mark is a write, and the inbox GET is deliberately kept pure, so this needs either a POST 'mark as seen' action or an accepted side-effecting GET. Low priority: the digest already surfaces auto-merged content, which is its core purpose. | closed | 3 | feature | Eugene Blikh | NULL | 2026-07-23T06:52:53Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T16:54:07Z | 2026-07-24T16:54:07Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | Inbox GET reads digest_mark to flag/count new-since-last-looked auto-merges + divider (pure read); explicit POST /inbox/seen advances the mark behind owner-only + same-origin guard. service.DigestMark/MarkDigestSeen added. Commit 865a21f. | 0 | NULL | NULL | NULL | 0 | 2026-07-24T16:49:21Z | 0 | |||||||||||||||||||||||
| spec-wcr | 49e00deebe86e55d30ead451d2a2418250908bba4a3cc686046e357c75088b29 | Loose ends from Phases 1-2 (latent bugs, no user impact yet) | Real issues agents flagged and deliberately left alone during the parallel build. None blocks anything today; each is a trap for a later phase. | 1. ProposalBranch derived THREE ways: core.ProposalBranch (canonical), and a third copy in SQL — db.OpenProposal concatenates prefix||serial in its INSERT to allocate id+branch atomically. Shares the prefix constant but not the function; reconcile if they can ever diverge. 2. doc.linkHierarchy passes path.Dir(p.Path) i.e. '.' as fromDir where every other call site uses DirOf ('') — section-proximity lookup misses for root-level parent: targets. Latent; fixing changes resolution behaviour. 3. doc.SplitLog collides entry IDs within a space (two type:log docs -> identical IDs -> second silently overwrites first in one index). Defended in search/ but should be fixed at source in doc/. 4. doc.Scan/DocumentSource are production-dead after service.Archive landed — they're the documented seam but also the API that made web's layering violation writable; delete is a judgement call. 5. mcpsrv ships a beforeCAS test hook in production code (gitx too). 6. No GraphQL complexity limit — service authenticates on its own router, not core-go's WithSchema, so nothing bounds query cost; low risk on a single-user authed surface. 7. Attachments: gitx walks .md only, so image embeds render as visibly-missing; needs WalkBlobs + asset index, or prefer Mermaid by convention. | RESOLVED 2026-07-24. All 7 items dispositioned. #1 ProposalBranch 3rd copy in OpenProposal SQL — FIXED (e97532c), guard test. #2 linkHierarchy path.Dir vs DirOf — FIXED. Prior triage called this a judgement call that 'changes resolution behaviour'; that was wrong. Traced it: path.Dir and DirOf differ only for root-level documents, and there the section-proximity step (stemsIn[topSection(fromDir)+'/'+bare]) is subsumed by the same-directory step above it — stemsIn['/x'] is populated only by a root x.md, which byPath['x.md'] already returned. So '.' only ever skipped a lookup that had already answered. VERIFIED by reverting to path.Dir and re-running: identical results. Changed to DirOf as trap-removal, with TestParentResolvesLikeAWikilinkFromTheSameDocument pinning the invariant (parent: resolves to what the same wikilink in the body resolves to). #3 SplitLog id collision — WONTFIX. Already correctly defended in search/extract.go; 'fixing at source' would push index-keyspace uniqueness into doc/, which shouldn't know it is indexed into a shared space index. #4 delete doc.Scan/DocumentSource — DONE. Confirmed production-dead (only consumer was doc's own test fixture). Deleted both; doc/ now owns no way to read a revision, leaving service.Archive as the single route from rev to Archive — closing the seam that made web's layering violation writable. doc test fixture rewritten onto ListDocuments+FromDocuments; TestScanReportsGitErrors relocated to gitx as TestWalkOfAnUnknownRevisionFails (gitx had no unknown-rev coverage). #5 beforeCAS test hook — WONTFIX. Unexported, set only by same-package tests, cannot be set externally. Standard test-seam pattern; mcpsrv has no such hook. #6 GraphQL complexity limit — moved to spec-by6.1 (feature, Phase 5). #7 attachments — moved to spec-by6.2 (feature, Phase 5). | closed | 3 | chore | Eugene Blikh | NULL | 2026-07-23T04:09:52Z | Eugene Blikh | bigbes@gmail.com | 2026-07-24T18:12:42Z | 2026-07-24T18:12:42Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | All 7 items dispositioned: 2 fixed (#1,#2), 1 deleted (#4), 2 wontfix (#3,#5), 2 moved to Phase 5 (spec-by6.1, spec-by6.2). | 0 | NULL | NULL | NULL | 0 | 2026-07-24T18:07:15Z | 0 | |||||||||||||||||||||
| spec-zqb | c07464bc7a9591857c6b728007a315cf1ff427be76a0aa4c2f54c75081d776a2 | Phase 3: write plane — agents propose | The agent half of the loop, and the service's whole premise: an agent proposes a document change, gets back a link, a human approves in a browser. Until this ships, agents can only read. | Scope: proposals (branch proposals/<id> + Postgres row, state open->merged|rejected); the If-Match tree-splice merge with the four staleness cases and the ancestry check gitx flagged; the single agent token + mandatory provenance trailers; spec_propose / spec_comment over REST + MCP; every write response returns {proposal, url} so the agent can hand over a link. Prereqs found during Phases 1-2: (1) service.ListProposals(space, state) — graph proposal listing is stubbed and db only has ListProposalsByState; (2) IsAncestor(proposalHead, H) check before Merge so an already-merged proposal reports 'already merged' not a confusing 409; (3) auto-merge policy evaluation (.spec.yml AutoMerges) which the reconciler's 'approval=policy' inference also wants. Dispatch like Phases 1-2: proposal orchestration in service/ first and committed, then surface tools fan out. This is where the merge model and reconciler first run under real proposals rather than on paper. | closed | 1 | feature | Eugene Blikh | NULL | 2026-07-23T04:08:58Z | Eugene Blikh | bigbes@gmail.com | 2026-07-23T05:29:29Z | 2026-07-23T05:29:29Z | NULL | 0 | NULL | NULL | NULL | 0 | 0 | 0 | �{} | Write plane shipped: service.Propose/Merge/Reject/ListProposals with provenance trailers, auto-merge policy, If-Match staleness + already-merged ancestry check; surfaces graph (Proposals port), mcpsrv spec_propose, and new api/ REST PUT — every write returns {proposal, url}. Validated end-to-end against Postgres. spec_comment deliberately deferred to Phase 5 (spec-by6), which gates the comment schema on the Phase 4 review UI; the approve/reject browser UI is Phase 4 (spec-3vz). | 0 | NULL | NULL | NULL | 0 | 2026-07-23T04:52:59Z | 0 |