Expand model tag support: add GLM-5.1, simplify Anthropic IDs, scan tags anywhere in message

- Flink update_bars debouncing
- update_bars subscription idempotency bugfix
- Price decimal correction bugfix of previous commit
- Add GLM-5.1 model tag alongside renamed GLM-5
- Use short Anthropic model IDs (sonnet/haiku/opus) instead of full version strings
- Allow @tags anywhere in message content, not just at start
- Return hasOtherContent flag instead of trimmed rest string
- Only trigger greeting stream when tag has no other content
- Update workspace knowledge base references to platform/workspace and platform/shapes
- Hierarchical knowledge base catalog
- 151 Trading Strategies knowledge base articles
- Shapes knowledge base article
- MutateShapes tool instead of workspace patch
This commit is contained in:
2026-04-28 15:05:15 -04:00
parent d41fcd0499
commit 47471b7700
184 changed files with 9044 additions and 170 deletions

View File

@@ -0,0 +1,54 @@
---
description: "Purchase a distressed property at a substantial discount below market value, renovate it, and resell at a price sufficient to cover renovation costs and generate a profit."
tags: [real-estate, value, short-term]
---
# Fix-and-Flip
**Section**: 16.6 | **Asset Class**: Real Estate | **Type**: Value / Short-Term
## Overview
A short-term real estate investment strategy. The investor purchases a property that is typically in a distressed condition and requires renovations, at a substantial discount below market prices. After renovating the property, the investor resells it at a price high enough to cover the renovation costs and make a profit. Unlike most real estate strategies, this is explicitly short-term and transactional rather than buy-and-hold.
## Construction / Mechanics
The basic P&L structure is:
```
Profit = P_sell - P_buy - C_renovation - C_carry - C_transaction
```
- `P_buy` = purchase price (substantially below market value; property is in distressed condition)
- `C_renovation` = total cost of renovations (labor, materials, permits)
- `C_carry` = holding costs during renovation (financing costs, property taxes, insurance, utilities)
- `C_transaction` = transaction costs on both buy and sell (agent commissions, closing costs, transfer taxes)
- `P_sell` = resale price (must exceed all costs for the trade to be profitable)
Key requirement: `P_buy` must be sufficiently discounted relative to `P_sell` (post-renovation market value) to cover all renovation and carry costs with margin for profit.
## Return Profile
Returns are driven by three sources:
1. **Discount at acquisition**: buying below market value due to the distressed condition
2. **Value-add from renovation**: the increase in market value attributable to improvements exceeding renovation costs
3. **Market appreciation**: any general price appreciation in the local market during the renovation period (this is incidental and uncontrolled)
The strategy is short-term (typically 312 months per project) and highly transactional. Returns per project can be high in percentage terms but are concentrated in execution risk.
## Key Parameters / Signals
- **After-repair value (ARV)**: estimated market value of the property after renovation; the primary target price signal
- **Acquisition discount**: the percentage below estimated ARV at which the property is purchased; must be large enough to cover all costs plus profit margin
- **Renovation cost estimate**: accuracy is critical; cost overruns are a primary risk; experienced contractors and detailed scope-of-work essential
- **Days on market / local market conditions**: the resale market must have sufficient demand to sell within the planned timeline; holding period overruns increase carry cost
- **Financing cost**: if leveraged, the interest rate and origination fees on the bridge/hard-money loan directly impact profitability
## Variations
- **Wholesale flip**: assign the purchase contract to another investor for a fee without performing the renovation (lower return, zero renovation risk)
- **BRRRR (Buy, Rehab, Rent, Refinance, Repeat)**: renovate and then hold as a rental property rather than selling; transition to a buy-and-hold strategy post-renovation
- **Commercial fix-and-flip**: apply the same concept to commercial properties (offices, retail, industrial); higher deal sizes, longer timelines, more complex renovations
## Notes
- Execution risk is the primary risk: renovation cost overruns, contractor delays, and permitting issues can eliminate the profit margin
- Market timing risk: if the local market declines during the renovation period, `P_sell` may be insufficient to recover costs
- Liquidity risk: if the renovated property does not sell quickly, carry costs accumulate and erode returns; a forced discount sale may be needed
- Financing: fix-and-flip projects typically use hard money loans or bridge loans at high interest rates (812%+); cost of capital is a significant factor
- Requires local market expertise, contractor relationships, and permit/code knowledge; not scalable without operational infrastructure
- Tax treatment: profits from fix-and-flip are typically taxed as ordinary income (not capital gains) if the property is held for less than one year