The project page opens on a snapshot: revenue, direct costs, the contribution before overhead and its margin of revenue (a segment margin: revenue less every cost traced to the project, fixed and variable; B-37 item 7), in the black or red, and for on-spec work the cost unrecovered if repaid. To date or this fiscal year. By month, revenue and costs with the net to date in its own strip; costs by category; the list colors each net by its sign. books.project carries the same figures, and a parity test runs the viewer and the MCP on the same books to the cent. Tests honor TMPDIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T3gXMVt7XJPi6ens1or9Dj
This commit is contained in:
23 files changed
+2231
-246
No files matched your search
@@ -569,10 +569,17 @@ fn the_admin_socket_refuses_bad_requests_plainly() {
|
||||
assert!(server.close().success());
|
||||
}
|
||||
|
||||
/// Send `line` to the admin socket as is; the answer's text.
|
||||
/// Send `line` to the admin socket as is; the answer's text. Connects
|
||||
/// through `SocketPath`, as the server binds: under a long TMPDIR the
|
||||
/// socket's path is longer than a socket address holds (SUN_LEN).
|
||||
fn raw_admin(sock: &Path, line: &str) -> String {
|
||||
use std::io::{Read, Write};
|
||||
let mut s = std::os::unix::net::UnixStream::connect(sock).unwrap();
|
||||
let short = ledger_store::root::SocketPath::new(
|
||||
sock.parent().unwrap(),
|
||||
sock.file_name().unwrap().to_str().unwrap(),
|
||||
)
|
||||
.unwrap();
|
||||
let mut s = std::os::unix::net::UnixStream::connect(short.path()).unwrap();
|
||||
s.write_all(line.as_bytes()).unwrap();
|
||||
s.shutdown(std::net::Shutdown::Write).unwrap();
|
||||
let mut out = String::new();
|
||||
|
||||
Reference in new issue
Block a user