Skip to content
quarry Artifact [1c92435560]
Login

Artifact [1c92435560]

Artifact 1c92435560c948d47e2ed6d78d9eb84e62aa199a5d6a738bc61ebd71d4476a44:

Ticket change [1c92435560] - Review ticket [e16ad1d395]: Rebuild diff rendering: structured model, syntax highlighting, word-level marking plus 2 other changes by dmestas on 2026-08-19 21:57:37.
D 2026-08-19T21:57:37.678
J icomment Built\s(cc6091b1),\son\sthe\smodel\sthis\sticket\sspecified.\n\n**internal/diff**\s—\sthe\sPierre-factored\smodel\sin\sGo:\sFileDiff\s(change\nkind:\schange/new/deleted,\s/dev/null\srecognised),\sHunk\s(starts\s+\nheader),\sLine\s(kind\s+\sold/new\snumbers),\sand\sPOSITIONAL\stokens\s—\sone\nsyntax\sclass\sand\sone\schange\sstate\sper\sspan,\sthe\sone\sidea\sworth\staking\nabove\sall\sothers.\sIntra-line\smarking\sis\san\sLCS\sover\sword\stokens\n(letters/digits\svs\spunctuation\ssplit\sseparately,\sso\sa\sparen\sedit\smarks\nthe\sparen,\snot\sthe\sword\sbeside\sit),\swith\sthe\srewrite\sguard:\slines\nsharing\sunder\sa\sthird\sof\stheir\swords\smark\sNOTHING\s—\sa\sfully-marked\npair\ssays\sless\sthan\splain\scolour.\sThe\schroma\ssplice\stracks\sbyte\noffsets\sand\ssplits\stokens\sat\smark\sboundaries;\sa\sreassembly\stest\spins\nthat\sthe\ssplice\snever\sloses\sor\sduplicates\sa\sbyte.\n\n**The\sop**\s—\scheckin.diff\sgains\s`structured`\s(files/hunks/lines/\ntokens);\s`unified`\sremains\sfor\sscripts.\sPrinciple\s5\sheld:\sthe\spage\nrenders\sthe\ssame\sshape\sthe\sAPI\sserves.\n\n**The\spage**\s—\sper-file\ssections\swith\schange-kind\sheaders\sand\sthe\sfile\nlist\sdoubling\sas\sanchor\snavigation;\shunk\sheaders\swith\sthe\s@@\scontext;\nline\snumbers\sand\sthe\s+/-\smarker\sin\suser-select:none\sgutters\sso\scopying\na\shunk\scopies\sclean\scode;\ssyntax\sclasses\sriding\sthe\schroma\sstylesheet\nalready\son\severy\spage;\smarks\sas\stinted\sranges\sinside\sadd/del\srows.\n\n**Verified\son\sthe\sticket's\sown\scase**\s—\spikchr\sa7f1c35b:\s`(including`\nis\sa\smarked\sspan,\severything\selse\son\sthat\sline\sis\snot;\s13\smarked\nranges\sacross\sthe\schangeset;\sgutters\snumber\sfrom\s5220.\sA\sGo\sdiff\ncarries\sfull\ssyntax\s(1.4k\sidentifier\sspans,\skeywords,\sstrings).\npikchr.y\sitself\sgets\sstructure\sand\smarks\sbut\splain\stokens\s—\schroma\shas\nno\syacc\slexer;\sdegrade-to-plain\sis\sthe\sdesigned\sbehavior.\n\n**Remainders,\shonestly:**\scontext\sexpansion\s(needs\sa\snew\sop\sserving\nfile\slines\sat\sa\srevision\splus\san\sexpand\saffordance)\sand\sa\sunified/\nsplit\stoggle\s—\sboth\slisted\sin\sthe\soriginal\sgaps,\sneither\sin\sthis\npass.\sLine-level\schroma\salso\scannot\ssee\smulti-line\sconstructs\s(a\nstring\sspanning\slines\stokenises\sper-line);\sthe\sprice\sof\snot\sfetching\nwhole\sfiles,\sdegrades\sto\splain.
J mimetype text/x-markdown
J status Review
K e16ad1d395752c1eb2ced0b324e096ffee618218
U dmestas
Z 1d72c33f550853c3456e4781ae179dba