5D Library › 一人公司自动化架构、数字人直播漏斗与任务级人工智能套利 · English
第七章 《史记·货殖列传》的白圭、《考工记》的百工分职与科斯《企业的性质》
为什么在这里读这些原典
本书的三个问题(企业能小到什么程度,一个人该怎样经营与用人,工作怎样分工)各有古典的对应。司马迁在《货殖列传》中称白圭为治生之祖;附在《周礼》中的《考工记》,统计了官府作坊里各门专业工匠;科斯 1937 年的论文给出了企业边界在哪里的现代解释。核对后要说明两点。第一,商业文章中常与白圭相连的「精兵简政」,根本不在《史记》里,它是二十世纪四十年代的口号;《史记》说的是他「与用事僮仆同苦乐」。第二,白圭「人弃我取」的规则,在价格会回归的市场有效,在别的市场则不然。
白圭:人弃我取
原典
司马迁《史记·货殖列传》
白圭,周人也。当魏文侯时,李克务尽地力,而白圭乐观时变,故人弃我取,人取我与。
能薄饮食,忍嗜欲,节衣服,与用事僮仆同苦乐,趋时若猛兽挚鸟之发。
盖天下言治生祖白圭。
(司马迁 1959)
这是一条逆向的存货规则,可以检验。
推导
# Chapter 7. p13: "Take what others discard, give what others take."
# A trader holds at most 10 lots of a stored good. Monthly log price:
# x' = x + k (0 - x) + 0.08 e, price = 100 exp(x); k = 0.15 is a market
# that swings back (harvests come and go), k = 0 a random walk. Rules:
# contrarian (buy a lot when price is under 92, sell one when over 108),
# momentum (buy after a 5% monthly rise, sell after a 5% fall), and
# holding 10 lots throughout. Storage costs 0.3 a lot a month.
# Profit over 120 months, 5,000 paths each (seed 90).
import math
import random
def run(rule, k, rng, months=120):
x, inv, cash = 0.0, (10 if rule == "hold" else 0), 0.0
prev = 100.0
if rule == "hold":
cash -= 10 * 100.0
for _ in range(months):
x += k * (0 - x) + 0.08 * rng.gauss(0, 1)
p = 100 * math.exp(x)
if rule == "contrarian":
if p < 92 and inv < 10:
inv, cash = inv + 1, cash - p
elif p > 108 and inv > 0:
inv, cash = inv - 1, cash + p
elif rule == "momentum":
if p > prev * 1.05 and inv < 10:
inv, cash = inv + 1, cash - p
elif p < prev * 0.95 and inv > 0:
inv, cash = inv - 1, cash + p
cash -= inv * 0.3
prev = p
return cash + inv * p
if __name__ == "__main__":
for k, label in ((0.15, "price swings back"), (0.0, "random walk")):
print(" {} (k = {:.2f}):".format(label, k))
for rule in ("contrarian", "momentum", "hold"):
rng = random.Random(90)
r = [run(rule, k, rng) for _ in range(5000)]
loss = sum(1 for v in r if v < 0) / len(r)
print(" {:10s}: mean profit {:7.1f}, losing paths {:.3f}"
.format(rule, sum(r) / len(r), loss))
# price swings back (k = 0.15):
# contrarian: mean profit 399.0, losing paths 0.029
# momentum : mean profit -380.1, losing paths 0.997
# hold : mean profit -349.1, losing paths 0.979
# random walk (k = 0.00):
# contrarian: mean profit -48.9, losing paths 0.392
# momentum : mean profit 97.7, losing paths 0.721
# hold : mean profit 111.2, losing paths 0.637在价格会回到正常水平的市场(如丰年与歉年之间的粮价),逆向规则十年平均获利 399.0,只有 0.029 的路径亏损,而追涨与长期持有几乎每条路径都亏损。在价格是随机游走的市场,同一规则平均亏损(-48.9),有 0.392 的路径亏损。按司马迁的说法,白圭的本事在于「乐观时变」:知道一个市场会不会回归是前提,规则只是它的结果。
《考工记》:一器而工聚焉
原典
《周礼·冬官·考工记》
国有六职,百工与居一焉。
知者创物,巧者述之守之,世谓之工。
凡攻木之工七,攻金之工六,攻皮之工五,设色之工五,刮摩之工五,搏埴之工二。
故一器而工聚焉者,车为多。
一辆车至少需要轮人、舆人、辀人,各自按书中记录的固定比例制作。这正是这里要紧的一点:按成文标准工作的工匠,不必与其他每一门工匠逐一商量。
推导
# Chapter 7. p14: The Kaogongji's crafts and the cost of talking.
# The Kaogongji counts 7 woodworking, 6 metal, 5 leather, 5 colouring,
# 5 polishing and 2 clay crafts: 30 in all. A chariot alone gathers
# three wood crafts (wheel, box, shaft) and others besides. If every
# pair of crafts working on one product must agree on its interface,
# there are n(n-1)/2 channels; if each craft works to one written
# standard, n. Each channel independently goes wrong with probability
# 0.02. The same count applies to a team of AI agents.
CRAFTS = {"wood": 7, "metal": 6, "leather": 5, "colour": 5,
"polish": 5, "clay": 2}
if __name__ == "__main__":
n_all = sum(CRAFTS.values())
print(" crafts in the Kaogongji: {}".format(n_all))
print(" n pairwise standard P(no slip) pairwise standard")
for n in (3, 5, 8, 12, n_all):
pairs = n * (n - 1) // 2
print(" {:2d} {:8d} {:8d} {:15.5f} {:8.5f}".format(
n, pairs, n, 0.98 ** pairs, 0.98 ** n))
# crafts in the Kaogongji: 30
# n pairwise standard P(no slip) pairwise standard
# 3 3 3 0.94119 0.94119
# 5 10 5 0.81707 0.90392
# 8 28 8 0.56798 0.85076
# 12 66 12 0.26359 0.78472
# 30 435 30 0.00015 0.54548《考工记》的工种共 30 门。如果参与一件产品的每两门工匠都要商定接口,30 门工匠有 435 条渠道,每条渠道出错的概率为 0.02 时,完全不出错的概率是 0.00015;如果各自按同一标准工作,只有 30 个接口,概率是 0.54548。8 个智能体时,分别是 28 条对 8 条渠道,0.56798 对 0.85076。成文的规格之于智能体团队,正如《考工记》的比例之于造车作坊。
科斯:企业在哪里止步
科斯写道:企业会扩张,直到在企业内部多组织一笔交易的成本,等于在公开市场上通过交换完成同一笔交易的成本 (Coase 1937)。第一章在此之外加入了科斯当年没有的第三种选择:由软件完成交易,它既不是雇员,也不是市场上的供应商。当这种选择很便宜时,企业的边界向内收缩,向创始人靠拢,直到创始人自己的审核时间成为起约束作用的成本。
假说 · 尚未验证
作者的诠释(尚未验证): 为每个智能体的产出写下规格(格式、检查项、验收标准)的创始人,一个月后每件交付物的审核时间,比逐件纠正产出的创始人至少少三分之一。什么会证明它错: 在记录的审核时间中,成文规格使每件交付物的审核时间减少不到三分之一。
小结
白圭的「人弃我取」在价格会回归的市场有效,在随机游走的市场失效;《史记》称道的节俭,是与做事的僮仆同甘共苦,而不是不用人。《考工记》的 30 门工匠,没有标准时需要 435 条渠道,有标准时只要 30 条。当软件成为完成交易最便宜的方式,科斯的边界就向一个人收缩,并在创始人的审核时间成为约束时止步。
参考文献
Fan, Y. (2026). One-Person Enterprise Automation, Avatar Livestream Funnels and Task-Exposure Arbitrage: Coasean Transaction-Cost Collapse, Cyclic Script Retention and High-Margin Solopreneur Portfolios [一人公司自动化架构、数字人直播漏斗与任务级人工智能套利] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090235 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).