[{"data":1,"prerenderedAt":467},["ShallowReactive",2],{"doc-seo-\u002Fdocs\u002Fguide\u002Fworkspace-lifecycle":3,"content-query-36f3DyXvAo":6},{"title":4,"description":5},"Workspace Lifecycle","Policy ownership, SQLite database tables, source synchronization, and watcher coordination.",{"_path":7,"_dir":8,"_draft":9,"_partial":9,"_locale":10,"title":4,"description":5,"badge":11,"body":12,"_type":461,"_id":462,"_source":463,"_file":464,"_stem":465,"_extension":466},"\u002Fdocs\u002Fguide\u002Fworkspace-lifecycle","guide",false,"","Guide",{"type":13,"children":14,"toc":450},"root",[15,23,27,34,50,108,114,158,161,167,180,333,338,341,347],{"type":16,"tag":17,"props":18,"children":19},"element","p",{},[20],{"type":21,"value":22},"text","Septum coordinates domain policy, static AST indexing, and filesystem change tracking per workspace so architecture checks reflect current source files.",{"type":16,"tag":24,"props":25,"children":26},"hr",{},[],{"type":16,"tag":28,"props":29,"children":31},"h2",{"id":30},"policy-database-ownership",[32],{"type":21,"value":33},"Policy & Database Ownership",{"type":16,"tag":35,"props":36,"children":38},"h3",{"id":37},"policy-ownership-septumconfigjson-vs-sqlite",[39,41,48],{"type":21,"value":40},"Policy Ownership (",{"type":16,"tag":42,"props":43,"children":45},"code",{"className":44},[],[46],{"type":21,"value":47},"septum.config.json",{"type":21,"value":49}," vs. SQLite)",{"type":16,"tag":51,"props":52,"children":53},"ul",{},[54,90],{"type":16,"tag":55,"props":56,"children":57},"li",{},[58,60,65,67,73,75,80,82,88],{"type":21,"value":59},"When ",{"type":16,"tag":42,"props":61,"children":63},{"className":62},[],[64],{"type":21,"value":47},{"type":21,"value":66}," exists in the workspace root, it acts as the authoritative policy owner. Registering domains via ",{"type":16,"tag":42,"props":68,"children":70},{"className":69},[],[71],{"type":21,"value":72},"septum_map(action: \"register\")",{"type":21,"value":74}," updates both ",{"type":16,"tag":42,"props":76,"children":78},{"className":77},[],[79],{"type":21,"value":47},{"type":21,"value":81}," (with exclusive locking and atomic rename) and SQLite (",{"type":16,"tag":42,"props":83,"children":85},{"className":84},[],[86],{"type":21,"value":87},"policy_owner: \"file\"",{"type":21,"value":89},").",{"type":16,"tag":55,"props":91,"children":92},{},[93,94,99,101,107],{"type":21,"value":59},{"type":16,"tag":42,"props":95,"children":97},{"className":96},[],[98],{"type":21,"value":47},{"type":21,"value":100}," does not exist, SQLite owns registered domains and dependency policies (",{"type":16,"tag":42,"props":102,"children":104},{"className":103},[],[105],{"type":21,"value":106},"policy_owner: \"database\"",{"type":21,"value":89},{"type":16,"tag":35,"props":109,"children":111},{"id":110},"database-location",[112],{"type":21,"value":113},"Database Location",{"type":16,"tag":51,"props":115,"children":116},{},[117,130],{"type":16,"tag":55,"props":118,"children":119},{},[120,122,128],{"type":21,"value":121},"Default path: ",{"type":16,"tag":42,"props":123,"children":125},{"className":124},[],[126],{"type":21,"value":127},"\u003Cworkspace_root>\u002F.septum\u002Fseptum.db",{"type":21,"value":129},".",{"type":16,"tag":55,"props":131,"children":132},{},[133,135,141,143,148,150,156],{"type":21,"value":134},"While ",{"type":16,"tag":42,"props":136,"children":138},{"className":137},[],[139],{"type":21,"value":140},"settings.db_path",{"type":21,"value":142}," supports custom paths, MCP initialization checks and generated hook wrappers look for ",{"type":16,"tag":42,"props":144,"children":146},{"className":145},[],[147],{"type":21,"value":47},{"type":21,"value":149}," or ",{"type":16,"tag":42,"props":151,"children":153},{"className":152},[],[154],{"type":21,"value":155},".septum\u002Fseptum.db",{"type":21,"value":157}," at the default location.",{"type":16,"tag":24,"props":159,"children":160},{},[],{"type":16,"tag":28,"props":162,"children":164},{"id":163},"stored-sqlite-tables",[165],{"type":21,"value":166},"Stored SQLite Tables",{"type":16,"tag":17,"props":168,"children":169},{},[170,172,178],{"type":21,"value":171},"The local database operates in WAL mode (",{"type":16,"tag":42,"props":173,"children":175},{"className":174},[],[176],{"type":21,"value":177},"PRAGMA journal_mode = WAL",{"type":21,"value":179},") with foreign keys enabled:",{"type":16,"tag":181,"props":182,"children":183},"table",{},[184,203],{"type":16,"tag":185,"props":186,"children":187},"thead",{},[188],{"type":16,"tag":189,"props":190,"children":191},"tr",{},[192,198],{"type":16,"tag":193,"props":194,"children":195},"th",{},[196],{"type":21,"value":197},"Table",{"type":16,"tag":193,"props":199,"children":200},{},[201],{"type":21,"value":202},"Stored Static Facts",{"type":16,"tag":204,"props":205,"children":206},"tbody",{},[207,225,242,259,276,293],{"type":16,"tag":189,"props":208,"children":209},{},[210,220],{"type":16,"tag":211,"props":212,"children":213},"td",{},[214],{"type":16,"tag":42,"props":215,"children":217},{"className":216},[],[218],{"type":21,"value":219},"domains",{"type":16,"tag":211,"props":221,"children":222},{},[223],{"type":21,"value":224},"Registered domain names, physical roots, and allowed\u002Fforbidden dependency policies.",{"type":16,"tag":189,"props":226,"children":227},{},[228,237],{"type":16,"tag":211,"props":229,"children":230},{},[231],{"type":16,"tag":42,"props":232,"children":234},{"className":233},[],[235],{"type":21,"value":236},"files",{"type":16,"tag":211,"props":238,"children":239},{},[240],{"type":21,"value":241},"Workspace-relative paths, content hashes, language metadata, and archetypes.",{"type":16,"tag":189,"props":243,"children":244},{},[245,254],{"type":16,"tag":211,"props":246,"children":247},{},[248],{"type":16,"tag":42,"props":249,"children":251},{"className":250},[],[252],{"type":21,"value":253},"symbols",{"type":16,"tag":211,"props":255,"children":256},{},[257],{"type":21,"value":258},"Extracted symbol names, kinds, signatures, and indexed line spans.",{"type":16,"tag":189,"props":260,"children":261},{},[262,271],{"type":16,"tag":211,"props":263,"children":264},{},[265],{"type":16,"tag":42,"props":266,"children":268},{"className":267},[],[269],{"type":21,"value":270},"dependencies",{"type":16,"tag":211,"props":272,"children":273},{},[274],{"type":21,"value":275},"Extracted import statements, resolved target references, and source lines.",{"type":16,"tag":189,"props":277,"children":278},{},[279,288],{"type":16,"tag":211,"props":280,"children":281},{},[282],{"type":16,"tag":42,"props":283,"children":285},{"className":284},[],[286],{"type":21,"value":287},"vertical_slices",{"type":16,"tag":211,"props":289,"children":290},{},[291],{"type":21,"value":292},"Stored static entrypoint records and relationship chains.",{"type":16,"tag":189,"props":294,"children":295},{},[296,305],{"type":16,"tag":211,"props":297,"children":298},{},[299],{"type":16,"tag":42,"props":300,"children":302},{"className":301},[],[303],{"type":21,"value":304},"repo_meta",{"type":16,"tag":211,"props":306,"children":307},{},[308,310,316,318,324,325,331],{"type":21,"value":309},"Sync status (",{"type":16,"tag":42,"props":311,"children":313},{"className":312},[],[314],{"type":21,"value":315},"running",{"type":21,"value":317},", ",{"type":16,"tag":42,"props":319,"children":321},{"className":320},[],[322],{"type":21,"value":323},"complete",{"type":21,"value":317},{"type":16,"tag":42,"props":326,"children":328},{"className":327},[],[329],{"type":21,"value":330},"error",{"type":21,"value":332},"), revisions, observed inputs, and diagnostics.",{"type":16,"tag":17,"props":334,"children":335},{},[336],{"type":21,"value":337},"Database records are a derivative static index, never authoritative application state. If a corrupt database file is encountered, initialization surfaces an error rather than silently overwriting the file.",{"type":16,"tag":24,"props":339,"children":340},{},[],{"type":16,"tag":28,"props":342,"children":344},{"id":343},"source-inventory-ingestion-watchers",[345],{"type":21,"value":346},"Source Inventory, Ingestion & Watchers",{"type":16,"tag":51,"props":348,"children":349},{},[350,361,379,440],{"type":16,"tag":55,"props":351,"children":352},{},[353,359],{"type":16,"tag":354,"props":355,"children":356},"strong",{},[357],{"type":21,"value":358},"Containment & Ignore Rules:",{"type":21,"value":360}," Source collection applies workspace containment (rejecting escaping symlinks and uncontained paths) and configured ignore patterns. Contained file symlinks are eligible; directory symlinks are not traversed.",{"type":16,"tag":55,"props":362,"children":363},{},[364,369,371,377],{"type":16,"tag":354,"props":365,"children":366},{},[367],{"type":21,"value":368},"Content-Verified Synchronization:",{"type":21,"value":370}," Warm ",{"type":16,"tag":42,"props":372,"children":374},{"className":373},[],[375],{"type":21,"value":376},"sync",{"type":21,"value":378}," verifies file metadata and hashes before skipping unchanged files; changed files are processed in bounded transactions.",{"type":16,"tag":55,"props":380,"children":381},{},[382,387,389,395,396,402,403,409,410,416,417,423,424,430,432,438],{"type":16,"tag":354,"props":383,"children":384},{},[385],{"type":21,"value":386},"Interpretation Inputs:",{"type":21,"value":388}," Supported manifest and project files (such as ",{"type":16,"tag":42,"props":390,"children":392},{"className":391},[],[393],{"type":21,"value":394},"package.json",{"type":21,"value":317},{"type":16,"tag":42,"props":397,"children":399},{"className":398},[],[400],{"type":21,"value":401},"Cargo.toml",{"type":21,"value":317},{"type":16,"tag":42,"props":404,"children":406},{"className":405},[],[407],{"type":21,"value":408},"go.mod",{"type":21,"value":317},{"type":16,"tag":42,"props":411,"children":413},{"className":412},[],[414],{"type":21,"value":415},"Gemfile",{"type":21,"value":317},{"type":16,"tag":42,"props":418,"children":420},{"className":419},[],[421],{"type":21,"value":422},"pyproject.toml",{"type":21,"value":317},{"type":16,"tag":42,"props":425,"children":427},{"className":426},[],[428],{"type":21,"value":429},"requirements*.txt",{"type":21,"value":431},", Maven\u002FGradle files, and ",{"type":16,"tag":42,"props":433,"children":435},{"className":434},[],[436],{"type":21,"value":437},".csproj",{"type":21,"value":439},") trigger watcher reconciliation when modified so static import resolution stays aligned.",{"type":16,"tag":55,"props":441,"children":442},{},[443,448],{"type":16,"tag":354,"props":444,"children":445},{},[446],{"type":21,"value":447},"MCP Workspace Manager:",{"type":21,"value":449}," Caches up to 4 active workspaces with active-use leases, orders tool calls through a bounded serial queue, debounces watcher events, and flushes pending watcher updates before dispatching queries.",{"title":10,"searchDepth":451,"depth":451,"links":452},3,[453,459,460],{"id":30,"depth":454,"text":33,"children":455},2,[456,458],{"id":37,"depth":451,"text":457},"Policy Ownership (septum.config.json vs. SQLite)",{"id":110,"depth":451,"text":113},{"id":163,"depth":454,"text":166},{"id":343,"depth":454,"text":346},"markdown","content:docs:guide:workspace-lifecycle.md","content","docs\u002Fguide\u002Fworkspace-lifecycle.md","docs\u002Fguide\u002Fworkspace-lifecycle","md",1795576106759]